From: SourceForge.net <no...@so...> - 2008-10-26 18:13:44
|
Bugs item #1913986, was opened at 2008-03-13 20:21 Message generated for change (Comment added) made by cbagwell You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110706&aid=1913986&group_id=10706 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Jan (janx2) Assigned to: Nobody/Anonymous (nobody) Summary: Error during make of static sox Initial Comment: Today I tried building a static version of sox on Mac OS X 10.4.11. After building all of the necessary libraries as static I moved on building sox using ./configure --disable-shared --enable-static and make This resulted in an error that I could limit to libao (The fix I used is from here: http://www.advogato.org/person/MichaelCrawford/diary.html?start=219). Trying again with the fixed libao resulted in this: /bin/sh ../libtool --silent --tag=CC --silent --mode=link gcc -g -O2 -Wall -W -Wmissing-prototypes -Wstrict-prototypes -pedantic -L/usr/local/lib -o libsfx.la -rpath /usr/local/lib libsfx_la-biquad.lo libsfx_la-biquads.lo libsfx_la-chorus.lo libsfx_la-compand.lo libsfx_la-compandt.lo libsfx_la-dcshift.lo libsfx_la-dither.lo libsfx_la-earwax.lo libsfx_la-echo.lo libsfx_la-echos.lo libsfx_la-effects.lo libsfx_la-fade.lo libsfx_la-FFT.lo libsfx_la-filter.lo libsfx_la-flanger.lo libsfx_la-key.lo libsfx_la-ladspa.lo libsfx_la-mcompand.lo libsfx_la-mixer.lo libsfx_la-noiseprof.lo libsfx_la-noisered.lo libsfx_la-pad.lo libsfx_la-pan.lo libsfx_la-phaser.lo libsfx_la-pitch.lo libsfx_la-polyphas.lo libsfx_la-rabbit.lo libsfx_la-rate.lo libsfx_la-repeat.lo libsfx_la-resample.lo libsfx_la-reverb.lo libsfx_la-reverse.lo libsfx_la-silence.lo libsfx_la-skeleff.lo libsfx_la-speed.lo libsfx_la-stat.lo libsfx_la-stretch.lo libsfx_la-swap.lo libsfx_la-synth.lo libsfx_la-tempo.lo libsfx_la-tremolo.lo libsfx_la-trim.lo libsfx_la-vibro.lo libsfx_la-vol.lo libsox.la /bin/sh ../libtool --silent --tag=CC --silent --mode=link gcc -g -O2 -Wall -W -Wmissing-prototypes -Wstrict-prototypes -pedantic -L/usr/local/lib -o sox sox.o libsox.la libsfx.la ../libgsm/libgsm.la ../lpc10/liblpc10.la -L/usr/local/lib -lsndfile -lid3tag -lmp3lame -lao /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: multiple definitions of symbol _gsm_create ./.libs/libsox.a(gsm_create.o) definition of _gsm_create in section (__TEXT,__text) /usr/local/lib/libsndfile.a(gsm_create.o) definition of _gsm_create in section (__TEXT,__text) /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: multiple definitions of symbol _predictor_pole ./.libs/libsox.a(libsox_la-g72x.o) definition of _predictor_pole in section (__TEXT,__text) /usr/local/lib/libsndfile.a(lt1-g72x.o) definition of _predictor_pole in section (__TEXT,__text) /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: multiple definitions of symbol _predictor_zero ./.libs/libsox.a(libsox_la-g72x.o) definition of _predictor_zero in section (__TEXT,__text) /usr/local/lib/libsndfile.a(lt1-g72x.o) definition of _predictor_zero in section (__TEXT,__text) /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: multiple definitions of symbol _quantize ./.libs/libsox.a(libsox_la-g72x.o) definition of _quantize in section (__TEXT,__text) /usr/local/lib/libsndfile.a(lt1-g72x.o) definition of _quantize in section (__TEXT,__text) /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: multiple definitions of symbol _reconstruct ./.libs/libsox.a(libsox_la-g72x.o) definition of _reconstruct in section (__TEXT,__text) /usr/local/lib/libsndfile.a(lt1-g72x.o) definition of _reconstruct in section (__TEXT,__text) /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: multiple definitions of symbol _step_size ./.libs/libsox.a(libsox_la-g72x.o) definition of _step_size in section (__TEXT,__text) /usr/local/lib/libsndfile.a(lt1-g72x.o) definition of _step_size in section (__TEXT,__text) /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: multiple definitions of symbol _update ./.libs/libsox.a(libsox_la-g72x.o) definition of _update in section (__TEXT,__text) /usr/local/lib/libsndfile.a(lt1-g72x.o) definition of _update in section (__TEXT,__text) collect2: ld returned 1 exit status make[1]: *** [sox] Error 1 make: *** [all-recursive] Error 1 After not understanding a word I tried limiting the cause down to a specific library. I finally managed to do so using ./configure --disable-shared --enable-static --without-sndfile make As I wanted to have libsndfile included I tried to use the latest dev version of it I could find: libsndfile-1.0.18pre20 instead of the libsndfile-1.0.17 I was using before. The result is the same. It's possible that this is libsndfile's fault, but I don't think so as it's a very widely used lib that has been stable for quite some time. I could be wrong ;) ---------------------------------------------------------------------- >Comment By: Chris Bagwell (cbagwell) Date: 2008-10-26 13:13 Message: The errors may be corrected with latest CVS. I was able to compile under MacOS X 10.5 with no issues. I had no optional libraries installed though. It seems your compile failure is at a place with no optional features though. I'll try to soon install libsndfile/ogg/etc and see how things go. ---------------------------------------------------------------------- Comment By: Jan (janx2) Date: 2008-03-28 23:10 Message: Logged In: YES user_id=1389764 Originator: YES This is the current state of affairs: /bin/sh ../libtool --silent --tag=CC --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -DLADSPA_PATH="\"/usr/local/lib/ladspa\"" -DPKGLIBDIR="\"/usr/local/lib/sox\"" -I/usr/local/include -g -O2 -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wstrict-prototypes -pedantic -MT libsox_la-adpcms.lo -MD -MP -MF .deps/libsox_la-adpcms.Tpo -c -o libsox_la-adpcms.lo `test -f 'adpcms.c' || echo './'`adpcms.c In file included from adpcms.c:19: sox_i.h:123: error: parse error before 'off_t' sox_i.h:123: warning: function declaration isn't a prototype sox_i.h:143: error: parse error before 'off_t' sox_i.h:143: warning: function declaration isn't a prototype make[1]: *** [libsox_la-adpcms.lo] Error 1 make: *** [all-recursive] Error 1 ---------------------------------------------------------------------- Comment By: Jan (janx2) Date: 2008-03-21 20:50 Message: Logged In: YES user_id=1389764 Originator: YES This time it got stuck here (after following exactly the same steps as before): /bin/sh ../libtool --silent --tag=CC --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -DLADSPA_PATH="\"/usr/local/lib/ladspa\"" -DPKGLIBDIR="\"/usr/local/lib/sox\"" -I/usr/local/include -g -O2 -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wstrict-prototypes -pedantic -MT libsox_la-adpcms.lo -MD -MP -MF .deps/libsox_la-adpcms.Tpo -c -o libsox_la-adpcms.lo `test -f 'adpcms.c' || echo './'`adpcms.c In file included from adpcms.c:19: sox_i.h:123: error: parse error before 'off_t' sox_i.h:123: warning: function declaration isn't a prototype sox_i.h:143: error: parse error before 'off_t' sox_i.h:143: warning: function declaration isn't a prototype make[1]: *** [libsox_la-adpcms.lo] Error 1 make: *** [all-recursive] Error 1 I am not much of a programer, but what is "ladspa" doing there when I am not actually using it at the moment. Nor have I compiled even compiled it, yet. I was planning to, though. How does it know? ;) Thanks for all your help! ---------------------------------------------------------------------- Comment By: robs (robs) Date: 2008-03-21 18:19 Message: Logged In: YES user_id=27473 Originator: NO Okay, looks like another change got in the way. Hopefully, the other change will now work on your system, however it seems that the changes I made to try to get rid of the duplicate symbols may not have gone far enough---we're still looking at how to come up with a complete solution for this one. ---------------------------------------------------------------------- Comment By: Jan (janx2) Date: 2008-03-21 11:18 Message: Logged In: YES user_id=1389764 Originator: YES OK. I did the following just now: grab source from CVS (minutes ago) $ cd to the directory $ autoreconf -i configure.ac:18: installing `./compile' configure.ac:8: installing `./missing' configure.ac:8: installing `./install-sh' libgsm/Makefile.am: installing `./depcomp' Makefile.am:24: Inference rules can have only one target before the colon (POSIX). Makefile.am:30: Inference rules can have only one target before the colon (POSIX). $ ./configure --disable-shared --enable-static --- snip --- $ make --- snip --- gcc -DHAVE_CONFIG_H -I. -DLADSPA_PATH="\"/usr/local/lib/ladspa\"" -DPKGLIBDIR="\"/usr/local/lib/sox\"" -Wconversion -g -O2 -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wstrict-prototypes -pedantic -MT sox.o -MD -MP -MF .deps/sox.Tpo -c -o sox.o sox.c In file included from sox.c:26: sox.h:360: error: parse error before 'off_t' sox.h:360: warning: no semicolon at end of struct or union sox.h:361: warning: type defaults to 'int' in declaration of 'data_start' sox.h:361: warning: data definition has no type or storage class sox.h:363: error: parse error before '}' token sox.h:363: warning: ISO C does not allow extra ';' outside of a function sox.c: In function 'cleanup': sox.c:164: error: dereferencing pointer to incomplete type sox.c:166: error: dereferencing pointer to incomplete type sox.c:170: error: dereferencing pointer to incomplete type sox.c: In function 'play_file_info': sox.c:197: error: dereferencing pointer to incomplete type sox.c:197: error: dereferencing pointer to incomplete type sox.c:201: error: dereferencing pointer to incomplete type sox.c:202: error: dereferencing pointer to incomplete type sox.c:203: error: dereferencing pointer to incomplete type sox.c:203: error: dereferencing pointer to incomplete type sox.c:204: error: dereferencing pointer to incomplete type sox.c:208: error: dereferencing pointer to incomplete type sox.c:209: error: dereferencing pointer to incomplete type sox.c:211: error: dereferencing pointer to incomplete type sox.c:213: error: dereferencing pointer to incomplete type sox.c:218: error: dereferencing pointer to incomplete type sox.c:218: error: dereferencing pointer to incomplete type sox.c:220: error: dereferencing pointer to incomplete type sox.c:223: error: dereferencing pointer to incomplete type sox.c:229: error: dereferencing pointer to incomplete type sox.c:231: error: dereferencing pointer to incomplete type sox.c:242: error: dereferencing pointer to incomplete type sox.c:247: error: dereferencing pointer to incomplete type sox.c:247: error: dereferencing pointer to incomplete type sox.c:248: error: dereferencing pointer to incomplete type sox.c: In function 'display_file_info': sox.c:265: error: dereferencing pointer to incomplete type sox.c:265: error: dereferencing pointer to incomplete type sox.c:266: error: dereferencing pointer to incomplete type sox.c:266: error: dereferencing pointer to incomplete type sox.c:267: error: dereferencing pointer to incomplete type sox.c:274: error: dereferencing pointer to incomplete type sox.c:275: error: dereferencing pointer to incomplete type sox.c:276: error: dereferencing pointer to incomplete type sox.c:278: error: dereferencing pointer to incomplete type sox.c:278: error: dereferencing pointer to incomplete type sox.c:278: error: dereferencing pointer to incomplete type sox.c:279: error: dereferencing pointer to incomplete type sox.c:279: error: dereferencing pointer to incomplete type sox.c:282: error: dereferencing pointer to incomplete type sox.c:283: error: dereferencing pointer to incomplete type sox.c:284: error: dereferencing pointer to incomplete type sox.c:284: warning: format '%u' expects type 'unsigned int', but argument 4 has type 'sox_size_t' sox.c:286: error: dereferencing pointer to incomplete type sox.c:288: error: dereferencing pointer to incomplete type sox.c:289: error: dereferencing pointer to incomplete type sox.c:292: error: dereferencing pointer to incomplete type sox.c:296: error: dereferencing pointer to incomplete type sox.c:296: error: dereferencing pointer to incomplete type sox.c:298: error: dereferencing pointer to incomplete type sox.c:299: error: dereferencing pointer to incomplete type sox.c:303: error: dereferencing pointer to incomplete type sox.c:304: error: dereferencing pointer to incomplete type sox.c:313: error: dereferencing pointer to incomplete type sox.c:313: error: dereferencing pointer to incomplete type sox.c:314: error: dereferencing pointer to incomplete type sox.c:315: error: dereferencing pointer to incomplete type sox.c:320: error: dereferencing pointer to incomplete type sox.c: In function 'display_error': sox.c:343: error: dereferencing pointer to incomplete type sox.c:343: error: dereferencing pointer to incomplete type sox.c:344: error: dereferencing pointer to incomplete type sox.c:345: error: dereferencing pointer to incomplete type sox.c:345: error: dereferencing pointer to incomplete type sox.c: In function 'progress_to_file': sox.c:355: error: dereferencing pointer to incomplete type sox.c:355: error: dereferencing pointer to incomplete type sox.c:363: error: dereferencing pointer to incomplete type sox.c: In function 'sox_read_wide': sox.c:369: error: dereferencing pointer to incomplete type sox.c:369: error: dereferencing pointer to incomplete type sox.c:370: error: dereferencing pointer to incomplete type sox.c: In function 'balance_input': sox.c:377: error: dereferencing pointer to incomplete type sox.c: In function 'can_segue': sox.c:416: error: dereferencing pointer to incomplete type sox.c:416: error: dereferencing pointer to incomplete type sox.c:417: error: dereferencing pointer to incomplete type sox.c:417: error: dereferencing pointer to incomplete type sox.c: In function 'combiner_drain': sox.c:452: error: dereferencing pointer to incomplete type sox.c:454: error: dereferencing pointer to incomplete type sox.c:461: error: dereferencing pointer to incomplete type sox.c:462: error: dereferencing pointer to incomplete type sox.c:464: error: dereferencing pointer to incomplete type sox.c:464: error: dereferencing pointer to incomplete type sox.c:470: error: dereferencing pointer to incomplete type sox.c:471: error: dereferencing pointer to incomplete type sox.c: In function 'output_flow': sox.c:522: error: dereferencing pointer to incomplete type sox.c:524: error: dereferencing pointer to incomplete type sox.c: In function 'add_auto_effect': sox.c:548: error: dereferencing pointer to incomplete type sox.c: In function 'add_effects': sox.c:568: error: dereferencing pointer to incomplete type sox.c:573: error: dereferencing pointer to incomplete type sox.c:578: error: dereferencing pointer to incomplete type sox.c:582: error: dereferencing pointer to incomplete type sox.c:586: error: dereferencing pointer to incomplete type sox.c:588: error: dereferencing pointer to incomplete type sox.c:593: error: dereferencing pointer to incomplete type sox.c: In function 'total_clips': sox.c:609: error: dereferencing pointer to incomplete type sox.c: In function 'optimize_trim': sox.c:737: error: dereferencing pointer to incomplete type sox.c:737: error: dereferencing pointer to incomplete type sox.c:740: error: dereferencing pointer to incomplete type sox.c: In function 'open_output_file': sox.c:773: error: dereferencing pointer to incomplete type sox.c:795: error: dereferencing pointer to incomplete type sox.c:796: error: dereferencing pointer to incomplete type sox.c:797: error: dereferencing pointer to incomplete type sox.c:798: error: dereferencing pointer to incomplete type sox.c:808: error: dereferencing pointer to incomplete type sox.c:821: error: dereferencing pointer to incomplete type sox.c:822: error: dereferencing pointer to incomplete type sox.c: In function 'process': sox.c:846: error: dereferencing pointer to incomplete type sox.c:847: error: dereferencing pointer to incomplete type sox.c:860: error: dereferencing pointer to incomplete type sox.c:861: error: dereferencing pointer to incomplete type sox.c:861: error: dereferencing pointer to incomplete type sox.c:862: error: dereferencing pointer to incomplete type sox.c:862: error: dereferencing pointer to incomplete type sox.c:863: error: dereferencing pointer to incomplete type sox.c:863: error: dereferencing pointer to incomplete type sox.c:864: error: dereferencing pointer to incomplete type sox.c:864: error: dereferencing pointer to incomplete type sox.c:865: error: dereferencing pointer to incomplete type sox.c:867: error: dereferencing pointer to incomplete type sox.c:867: error: dereferencing pointer to incomplete type sox.c:869: error: dereferencing pointer to incomplete type sox.c:869: error: dereferencing pointer to incomplete type sox.c:869: error: dereferencing pointer to incomplete type sox.c:869: error: dereferencing pointer to incomplete type sox.c:921: error: dereferencing pointer to incomplete type sox.c: In function 'soxi1': sox.c:1579: error: dereferencing pointer to incomplete type sox.c:1579: error: dereferencing pointer to incomplete type sox.c:1579: error: dereferencing pointer to incomplete type sox.c:1581: error: dereferencing pointer to incomplete type sox.c:1582: error: dereferencing pointer to incomplete type sox.c:1583: warning: format '%u' expects type 'unsigned int', but argument 2 has type 'sox_size_t' sox.c:1584: error: dereferencing pointer to incomplete type sox.c:1584: error: dereferencing pointer to incomplete type sox.c:1585: error: dereferencing pointer to incomplete type sox.c:1586: error: dereferencing pointer to incomplete type sox.c:1587: error: dereferencing pointer to incomplete type sox.c:1588: error: dereferencing pointer to incomplete type sox.c: In function 'main': sox.c:1726: error: dereferencing pointer to incomplete type sox.c:1735: error: dereferencing pointer to incomplete type sox.c:1736: error: dereferencing pointer to incomplete type sox.c:1742: error: dereferencing pointer to incomplete type sox.c:1743: error: dereferencing pointer to incomplete type sox.c:1745: error: dereferencing pointer to incomplete type sox.c:1746: error: dereferencing pointer to incomplete type sox.c:1750: error: dereferencing pointer to incomplete type sox.c:1766: error: dereferencing pointer to incomplete type sox.c:1767: error: dereferencing pointer to incomplete type sox.c:1768: error: dereferencing pointer to incomplete type sox.c:1769: error: dereferencing pointer to incomplete type sox.c:1790: error: dereferencing pointer to incomplete type sox.c:1793: error: dereferencing pointer to incomplete type sox.c:1794: error: dereferencing pointer to incomplete type sox.c:1794: error: dereferencing pointer to incomplete type sox.c:1795: error: dereferencing pointer to incomplete type sox.c:1798: warning: format '%u' expects type 'unsigned int', but argument 2 has type 'sox_size_t' sox.c:1803: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'sox_size_t' make[1]: *** [sox.o] Error 1 make: *** [all-recursive] Error 1 ---------------------------------------------------------------------- Comment By: robs (robs) Date: 2008-03-21 08:45 Message: Logged In: YES user_id=27473 Originator: NO Fix attempted in CVS; please give it a try. ---------------------------------------------------------------------- Comment By: Jan (janx2) Date: 2008-03-18 20:35 Message: Logged In: YES user_id=1389764 Originator: YES To clear things up a bit: The problem here is that there is a collision between the in-tree libgsm and the one compiled into libsndfile. After reading through the configure files I tried various ways to resolve this. I could not find a way to disable libgsm in any of the two which is sort of deadlock situation. Any help is most welcome. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110706&aid=1913986&group_id=10706 |