[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    Bug#2185: compilation problem: kdemultimedia: kmidi, kmix
From:       Ralf Fassel <ralf () akutech ! de>
Date:       1999-10-22 10:33:41
[Download RAW message or body]


Package: kdemultimedia
Version 1.1.2
Subpackages: kmidi, kmix

Irix 6.5, gcc 2.95.1, kde 1.1.2

gmake[3]: Entering directory `/disk2/ralf/Software/kde/kdemultimedia-1.1.2/kmidi'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/software/kde/1.1.2/include -I/work/include    \
-I/work/include -DDEFAULT_PATH=\"/software/kde/1.1.2/share/apps/kmidi/config\" \
                -DKMIDI -O -c playmidi.c
playmidi.c: In function `recompute_amp':
playmidi.c:330: warning: comparison is always true due to limited range of data type
playmidi.c: At top level:
playmidi.c:1060: conflicting types for `gettimeofday'
/usr/include/sys/time.h:194: previous declaration of `gettimeofday'
gmake[3]: *** [playmidi.o] Error 1

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/software/kde/1.1.2/include -I/work/include    \
-I/work/include -DDEFAULT_PATH=\"/software/kde/1.1.2/share/apps/kmidi/config\" \
                -DKMIDI -O -c resample.c
resample.c: In function `update_vibrato':
resample.c:350: `PI' undeclared (first use in this function)
resample.c:350: (Each undeclared identifier is reported only once
resample.c:350: for each function it appears in.)
gmake[3]: *** [resample.o] Error 1

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/software/kde/1.1.2/include -I/work/include    \
-I/work/include -DDEFAULT_PATH=\"/software/kde/1.1.2/share/apps/kmidi/config\" \
                -DKMIDI -O -c mix.c
mix.c: In function `update_tremolo':
mix.c:170: `PI' undeclared (first use in this function)
mix.c:170: (Each undeclared identifier is reported only once
mix.c:170: for each function it appears in.)
gmake[3]: *** [mix.o] Error 1


/bin/sh ../libtool --silent --mode=link g++  -D_LANGUAGE_C_PLUS_PLUS -L/work/lib -o \
kmix -L/software/kde/1.1.2/IRIX-6/lib -L/work/lib   -rpath \
/software/kde/1.1.2/IRIX-6/lib -rpath /work/lib kmix.o mixer.o prefs.o docking.o \
                sets.o channel.o -lkdeui -lkdecore -lXext -lqt -lX11  
ld32: ERROR   33 : Unresolved text symbol "ALfreeconfig" -- 1st referenced by \
mixer.o.  Use linker option -v to see when and which objects, archives and dsos are \
                loaded.  
ld32: ERROR   33 : Unresolved text symbol "ALcloseport" -- 1st referenced by mixer.o.
	Use linker option -v to see when and which objects, archives and dsos are loaded.  
ld32: ERROR   33 : Unresolved text symbol "ALgetparams" -- 1st referenced by mixer.o.
	Use linker option -v to see when and which objects, archives and dsos are loaded.  
ld32: ERROR   33 : Unresolved text symbol "ALnewconfig" -- 1st referenced by mixer.o.
	Use linker option -v to see when and which objects, archives and dsos are loaded.  
ld32: ERROR   33 : Unresolved text symbol "ALopenport" -- 1st referenced by mixer.o.
	Use linker option -v to see when and which objects, archives and dsos are loaded.  
ld32: ERROR   33 : Unresolved text symbol "ALsetparams" -- 1st referenced by mixer.o.
	Use linker option -v to see when and which objects, archives and dsos are loaded.  
ld32: INFO    152: Output file removed because of error.
collect2: ld returned 2 exit status
gmake[3]: *** [kmix] Error 1
gmake[3]: Target `all-am' not remade because of errors.
gmake[3]: Leaving directory `/disk2/ralf/Software/kde/kdemultimedia-1.1.2/kmix'


All of these are solved by the patches below.

Regards
R'
-- 
All wiyht. Rho sritched mg kegtops awound?

*** kdemultimedia-1.1.2/kmidi/playmidi.c	Mon Mar 29 14:24:41 1999
--- kdemultimedia-1.1.2/kmidi/playmidi.c.atg	Fri Oct 22 12:14:20 1999
***************
*** 73,79 ****
  
  #ifndef ADAGIO
  Channel channel[MAXCHAN];
! char drumvolume[MAXCHAN][MAXNOTE];
  char drumpanpot[MAXCHAN][MAXNOTE];
  char drumreverberation[MAXCHAN][MAXNOTE];
  char drumchorusdepth[MAXCHAN][MAXNOTE];
--- 73,79 ----
  
  #ifndef ADAGIO
  Channel channel[MAXCHAN];
! signed char drumvolume[MAXCHAN][MAXNOTE];
  char drumpanpot[MAXCHAN][MAXNOTE];
  char drumreverberation[MAXCHAN][MAXNOTE];
  char drumchorusdepth[MAXCHAN][MAXNOTE];
***************
*** 1056,1062 ****
  static unsigned xxmp_epoch = 0;
  static unsigned time_expired = 0;
  static unsigned last_time_expired = 0;
! #if !defined( _UNIXWARE ) && ! defined(__hpux__) && ! defined (sun) && ! \
defined(_SCO_DS)  extern int gettimeofday(struct timeval *, struct timezone *);
  #endif
  static struct timeval tv;
--- 1056,1062 ----
  static unsigned xxmp_epoch = 0;
  static unsigned time_expired = 0;
  static unsigned last_time_expired = 0;
! #if !defined( _UNIXWARE ) && ! defined(__hpux__) && ! defined (sun) && ! \
defined(_SCO_DS) && ! defined (sgi)  extern int gettimeofday(struct timeval *, struct \
timezone *);  #endif
  static struct timeval tv;

Diff finished at Fri Oct 22 12:17:24

*** kdemultimedia-1.1.2/kmidi/playmidi.h~	Mon Jun 22 05:00:54 1998
--- kdemultimedia-1.1.2/kmidi/playmidi.h	Fri Oct 22 12:13:39 1999
***************
*** 128,134 ****
  
  #ifndef ADAGIO
  extern Channel channel[MAXCHAN];
! extern char drumvolume[MAXCHAN][MAXNOTE];
  extern char drumpanpot[MAXCHAN][MAXNOTE];
  extern char drumreverberation[MAXCHAN][MAXNOTE];
  extern char drumchorusdepth[MAXCHAN][MAXNOTE];
--- 128,134 ----
  
  #ifndef ADAGIO
  extern Channel channel[MAXCHAN];
! extern signed char drumvolume[MAXCHAN][MAXNOTE];
  extern char drumpanpot[MAXCHAN][MAXNOTE];
  extern char drumreverberation[MAXCHAN][MAXNOTE];
  extern char drumchorusdepth[MAXCHAN][MAXNOTE];

Diff finished at Fri Oct 22 12:15:21



*** kdemultimedia-1.1.2/kmidi/tables.h.kde	Thu Nov 27 06:13:57 1997
--- kdemultimedia-1.1.2/kmidi/tables.h	Fri Oct 22 12:25:26 1999
***************
*** 24,29 ****
--- 24,32 ----
  extern float sine(int x);
  #else
  #include <math.h>
+ #ifndef PI
+ #  define PI M_PI
+ #endif
  #define sine(x) (sin((2*PI/1024.0) * (x)))
  #endif
  

Diff finished at Fri Oct 22 12:25:31


*** kdemultimedia-1.1.2/kmix/Makefile.in.kde	Tue Sep  7 17:23:39 1999
--- kdemultimedia-1.1.2/kmix/Makefile.in	Fri Oct 22 12:29:53 1999
***************
*** 174,180 ****
  bin_PROGRAMS = kmix
  kmix_SOURCES = kmix.cpp mixer.cpp prefs.cpp docking.cpp sets.cpp channel.cpp
  noinst_HEADERS = kmix.h mixer.h prefs.h version.h docking.h sets.h channel.h
! kmix_LDADD = $(LIB_KDEUI)
  kmix_LDFLAGS = $(all_libraries) $(KDE_RPATH)
  
  METASOURCES = kmix.moc mixer.moc prefs.moc docking.moc
--- 174,180 ----
  bin_PROGRAMS = kmix
  kmix_SOURCES = kmix.cpp mixer.cpp prefs.cpp docking.cpp sets.cpp channel.cpp
  noinst_HEADERS = kmix.h mixer.h prefs.h version.h docking.h sets.h channel.h
! kmix_LDADD = $(LIB_KDEUI) $(LIBAUDIO)
  kmix_LDFLAGS = $(all_libraries) $(KDE_RPATH)
  
  METASOURCES = kmix.moc mixer.moc prefs.moc docking.moc

Diff finished at Fri Oct 22 12:30:06


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic