From: Robin C. <rc...@wy...> - 2004-10-08 04:20:55
|
I didn't really have a choice as I could not get the meschach code in the tarball to compile at all. If you are able to get that corrected I will use that instead. Thanks CuZnDragon Robin Cook On Thu, 2004-10-07 at 16:36 -0700, Jeff Welty wrote: > Robin, >=20 > I haven't had time to dig into this, but one thing for sure: >=20 > DO NOT USE ANOTHER DISTRIBUTION OF MESCHACH! >=20 > I fixed a serious memory leak in that code. I reported it to the=20 > maintainers > of the package, but I never saw they did anything about it. >=20 > I will try to find out how the meschach archive you found is different fr= om > the one I found (and fixed). At first glance it looks like someone clean= ed > it up to use ANSI-C, which is good, but I don't know if they fixed the=20 > memory > leak. >=20 > Cheers, > Jeff Welty >=20 > Robin Cook wrote: >=20 > >Ok I seem to have gotten it working by replacing the meschach that is in > >gwc-0.20-07.tgz with the mesch12b.tar.gz from > >http://www.math.uiowa.edu/~dstewart/meschach/ and changing the > >Makefile.in a bit more (see attached Makefile.in.diff.) > > > >Only difference from what I posted before is this > > > > > >@@ -46,7 +46,7 @@ > > cp meschach/meschach.a . > > > > meschach/meschach.a : > >- (cd meschach ; ./configure --with-sparse ; make part1 ; make > >part2 ; make part3 ; cp machine.h ..) > >+ (cd meschach ; ./configure --with-sparse --with-float ; make > >all ; cp machine.h ..) > > > > test : test.c > > $(CC) test.c $(LFLAGS) -g -lrfftw -lfftw -lm -o test > > > > > >Without changing the make parts to make all, I was getting a linking > >error of undefined zv_free and zm_free. I also set the --with-float > >since the fftw3 is also compiled that way. Not sure if that is correct > >or not. > > > >Though I don't think the configure for meschach 12b is working correctly > >because of this error.... > > > > > >cc -DCONFIGDIR=3D\"/gnome_wave_cleaner/config/\" -DDATADIR=3D\"/usr/shar= e\" > >-DLIBDIR=3D\"/usr/lib\" -DAPPNAME=3D\"gnome_wave_cleaner\" -O > >-march=3Dathlon-mp -mmmx -mfpmath=3Dsse -msse -m3dnow -pipe -O3 -Wall > >-DHAVE_ALSA -DHAVE_FFTW3 -DFFTWPREC=3D1 `pkg-config --cflags libgnome-2.= 0 > >libgnomeui-2.0 gtk+-2.0` `pkg-config --cflags sndfile` -c -o > >soundfile.o soundfile.c > >(cd meschach ; ./configure --with-sparse --with-float ; make all ; cp > >machine.h ..) > >creating cache ./config.cache > >checking for acc... no > >checking for cc... (cached) no > >checking for gcc... (cached) no > >checking for cc... (cached) no > >configure: error: no acceptable cc found in $PATH > >make[2]: Entering directory `/usr/src/gwc-0.20-07/meschach' > >make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent > >make rule. > > > > > >CuZnDragon > >Robin Cook > > > >On Wed, 2004-10-06 at 23:21 -0500, Robin Cook wrote: > > =20 > > > >>Compiling this with gcc 3.4.2 and glibc 2.3.3 with nptl enabled > >> > >>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > >> > >>This really doesn't effect the compiling error but something I needed t= o > >>do. > >> > >>Modified Makefile.in to not over write my environment variable CFLAGS > >>and to not install in /usr/local as this is for a distribution. > >> > >>see attached patch file Makefile.in.diff > >> > >>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > >> > >>Then was getting this error..... > >> > >>computing machine epsilon(s) > >>cc -o macheps dmacheps.c > >>./configure: line 675: macheps: command not found > >>./configure: line 679: macheps: command not found > >>./configure: line 679: macheps: command not found > >>./configure: line 679: macheps: command not found > >>cc -o macheps fmacheps.c > >>./configure: line 687: macheps: command not found > >>./configure: line 691: macheps: command not found > >>./configure: line 691: macheps: command not found > >>./configure: line 691: macheps: command not found > >>computing M_MAX_INT > >>cc -o maxint maxint.c > >>./configure: line 700: maxint: command not found > >>./configure: line 704: maxint: command not found > >>./configure: line 704: maxint: command not found > >>./configure: line 704: maxint: command not found > >>checking char \\0 vs. float zeros > >> > >> > >>Fixed by modifying configure in the meschach directory > >> > >>see attached patch file configure-mach.diff > >> > >>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >> > >>Now I am getting this error and not sure how to fix it. > >> > >>cp meschach/meschach.a . > >>cc dialog.o gwc.o audio_device.o audio_edit.o audio_util.o gtkled.o > >>gtkledbar.o preferences.o drawing.o amplify.o denoise.o undo.o declick.= o > >>sample_block.o decrackle.o stat.o dethunk.o i0.o i1.o chbevl.o markers.= o > >>encode.o soundfile.o -g `pkg-config --cflags --libs libgnome-2.0 > >>libgnomeui-2.0 gtk+-2.0` `pkg-config --libs sndfile` meschach.a -lasoun= d > >>-lfftw3f -lm -o gwc > >>meschach.a(memory.o)(.text+0xa0b): In function `m_resize': > >>: undefined reference to `MEM_COPY' > >>meschach.a(memory.o)(.text+0xaff): In function `m_resize': > >>: undefined reference to `MEM_COPY' > >>meschach.a(memory.o)(.text+0xc7b): In function `m_resize': > >>: undefined reference to `MEM_COPY' > >>meschach.a(matop.o)(.text+0x1055): In function `ms_mltadd': > >>: undefined reference to `MEM_COPY' > >>meschach.a(matop.o)(.text+0x109b): In function `ms_mltadd': > >>: undefined reference to `MEM_COPY' > >>meschach.a(matop.o)(.text+0x11ed): more undefined references to > >>`MEM_COPY' follow > >>meschach.a(machine.o)(.text+0xf9): In function `__zero__': > >>: undefined reference to `MEM_ZERO' > >>meschach.a(lufactor.o)(.text+0x68f): In function `m_inverse': > >>: undefined reference to `MEM_COPY' > >>meschach.a(lufactor.o)(.text+0x6ea): In function `m_inverse': > >>: undefined reference to `MEM_COPY' > >>meschach.a(lufactor.o)(.text+0x75f): In function `m_inverse': > >>: undefined reference to `MEM_COPY' > >>meschach.a(lufactor.o)(.text+0x86d): In function `m_inverse': > >>: undefined reference to `MEM_COPY' > >>make[1]: Leaving directory `/usr/src/gwc-0.20-07' > >>meschach.a(lufactor.o)(.text+0x956): In function `m_inverse': > >>: undefined reference to `MEM_COPY' > >>meschach.a(lufactor.o)(.text+0x9b1): more undefined references to > >>`MEM_COPY' follow > >>meschach.a(sprow.o)(.text+0x3e3): In function `sprow_xpd': > >>: undefined reference to `MEM_ZERO' > >>meschach.a(sprow.o)(.text+0x1db2): In function `sprow_set_val': > >>: undefined reference to `MEM_COPY' > >>meschach.a(iter0.o)(.text+0x552): In function `iter_copy2': > >>: undefined reference to `MEM_COPY' > >>meschach.a(iter0.o)(.text+0x69f): In function `iter_copy': > >>: undefined reference to `MEM_COPY' > >>meschach.a(copy.o)(.text+0xab): In function `_m_copy': > >>: undefined reference to `MEM_COPY' > >>meschach.a(copy.o)(.text+0x14c): In function `_v_copy': > >>: undefined reference to `MEM_COPY' > >>meschach.a(copy.o)(.text+0x205): more undefined references to `MEM_COPY= ' > >>follow > >>collect2: ld returned 1 exit status > >> =20 > >> > > > > =20 > > > >------------------------------------------------------------------------ > > > >--- Makefile.in.orig 2004-10-07 00:26:53.607824232 -0500 > >+++ Makefile.in 2004-10-07 00:27:59.232847712 -0500 > >@@ -4,7 +4,7 @@ > > PREFIX=3D/usr > > SYSCONFDIR=3D/etc > >=20 > >-CFLAGS =3D -DCONFIGDIR=3D\"/$(APPNAME)/config/\" -DDATADIR=3D\"$(DATADI= R)\" -DLIBDIR=3D\"$(LIBDIR)\" -DAPPNAME=3D\"$(APPNAME)\" -O3 -Wall @ALSAHDR= @ @FFTWHDR@ @FFTWPREC@ -mcpu=3D@UNAME_MACHINE@ -march=3D@UNAME_MACHINE@ `pk= g-config --cflags libgnome-2.0 libgnomeui-2.0 gtk+-2.0` `pkg-config --cflag= s sndfile` > >+CFLAGS =3D -DCONFIGDIR=3D\"/$(APPNAME)/config/\" -DDATADIR=3D\"$(DATADI= R)\" -DLIBDIR=3D\"$(LIBDIR)\" -DAPPNAME=3D\"$(APPNAME)\" @CFLAGS@ -Wall @AL= SAHDR@ @FFTWHDR@ @FFTWPREC@ `pkg-config --cflags libgnome-2.0 libgnomeui-2.= 0 gtk+-2.0` `pkg-config --cflags sndfile` > > LFLAGS =3D -g `pkg-config --cflags --libs libgnome-2.0 libgnomeui-2.0 g= tk+-2.0` `pkg-config --libs sndfile` > > LIBS=3D meschach.a @ALSALIB@ @FFTWLIB@ -lm > >=20 > >@@ -24,7 +24,7 @@ > > gwc : $(OBJS) meschach.a > > $(CC) $(OBJS) $(LFLAGS) $(LIBS) -o gwc > >=20 > >-DESTDIR=3D/usr/local > >+DESTDIR=3D/usr > > HELPDIR=3D$(DATADIR)/gnome/help/$(APPNAME) > >=20 > > install : gwc > >@@ -46,7 +46,7 @@ > > cp meschach/meschach.a . > >=20 > > meschach/meschach.a : > >- (cd meschach ; ./configure --with-sparse ; make part1 ; make part2 ; m= ake part3 ; cp machine.h ..) > >+ (cd meschach ; ./configure --with-sparse --with-float ; make all ; cp = machine.h ..) > >=20 > > test : test.c > > $(CC) test.c $(LFLAGS) -g -lrfftw -lfftw -lm -o test > > =20 > > >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out mo= re > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Gwc-general mailing list > Gwc...@li... > https://lists.sourceforge.net/lists/listinfo/gwc-general >=20 |