[MacPorts] #19829: cdparanoia build fails (common symbols not allowed with MH_DYLIB output format...)
#19829: cdparanoia build fails (common symbols not allowed with MH_DYLIB output format...) ---------------------------------+------------------------------------------ Reporter: vinc17@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: cdparanoia ---------------------------------+------------------------------------------ When building cdparanoia 10.2 under Mac OS X 10.4.11, I get the following error: {{{ /usr/bin/gcc-4.0 -dynamiclib -o libcdda_paranoia.0.10.2.dylib paranoia.o p_block.o overlap.o gap.o isort.o -L../interface -lcdda_interface -install_name /opt/local/lib/libcdda_paranoia.0.dylib ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option paranoia.o definition of common _paranoia_read_flags (size 4) /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: internal link edit command failed make[2]: *** [libcdda_paranoia.dylib] Error 1 make[1]: *** [slib] Error 2 make: *** [all] Error 2 }}} -- Ticket URL: <http://trac.macports.org/ticket/19829> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19829: cdparanoia build fails on Tiger (common symbols not allowed with MH_DYLIB output format...) ---------------------------------+------------------------------------------ Reporter: vinc17@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: cdparanoia ---------------------------------+------------------------------------------ -- Ticket URL: <http://trac.macports.org/ticket/19829#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19829: cdparanoia build fails on Tiger (common symbols not allowed with MH_DYLIB output format...) ---------------------------------+------------------------------------------ Reporter: vinc17@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: cdparanoia ---------------------------------+------------------------------------------ Changes (by blb@…): * cc: pbedenbaugh@… (added) Comment: Cc reporter of dup #19832. -- Ticket URL: <http://trac.macports.org/ticket/19829#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19829: cdparanoia build fails on Tiger (common symbols not allowed with MH_DYLIB output format...) ---------------------------------+------------------------------------------ Reporter: vinc17@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: cdparanoia ---------------------------------+------------------------------------------ Comment(by neric27@…): paranoia_read_flags is top level variable and isn't initialized.According to [http://gcc.gnu.org/ml/gcc/2005-06/msg00199.html] this promotes it to an extern declaration. paranoia_read_flags seems to be there only to declare an anonymous enum. Indeed, it's never used in any part of the coded (grep -R paranoia_read_flags cdparanoia-III-10.2 finds only one occurence). What worked for me was to initialize the variable with a random value from the enum. A patch is attached -- Ticket URL: <http://trac.macports.org/ticket/19829#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19829: cdparanoia build fails on Tiger (common symbols not allowed with MH_DYLIB output format...) ---------------------------------+------------------------------------------ Reporter: vinc17@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: cdparanoia ---------------------------------+------------------------------------------ Comment(by ctempleton3@…): I was sent here from ticket:19831:comment6. I am having the following build error. If this is not the correct ticket please let me know If I need to open a new ticket ort post on another ticket. {{{ $ sudo port clean cdparanoia && sudo port selfupdate && sudo port deactivate cdparanoia && sudo port install cdparanoia ---> Cleaning cdparanoia MacPorts base version 1.710 installed Downloaded MacPorts base version 1.710 The MacPorts installation is not outdated so it was not updated ---> Deactivating cdparanoia ---> Fetching cdparanoia ---> Verifying checksum(s) for cdparanoia ---> Extracting cdparanoia ---> Applying patches to cdparanoia ---> Configuring cdparanoia ---> Building cdparanoia Error: Target org.macports.build returned: shell command " cd "/opt/local/var/ma cports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_au dio_cdparanoia/work/cdparanoia-III-10.2" && nice -n 5 make all " returned error 2 Command output: cd paranoia && make all make libcdda_paranoia.a CFLAGS="-O2 -fsigned-char -O2" /usr/bin/gcc-4.0 -O2 -fsigned-char -O2 -c paranoia.c /usr/bin/gcc-4.0 -O2 -fsigned-char -O2 -c p_block.c /usr/bin/gcc-4.0 -O2 -fsigned-char -O2 -c overlap.c /usr/bin/gcc-4.0 -O2 -fsigned-char -O2 -c gap.c /usr/bin/gcc-4.0 -O2 -fsigned-char -O2 -c isort.c ar -r libcdda_paranoia.a paranoia.o p_block.o overlap.o gap.o isort.o ar: creating archive libcdda_paranoia.a ranlib libcdda_paranoia.a make lessmessy rm -f *.o *.t core *~ make libcdda_paranoia.dylib CFLAGS="-O2 -fsigned-char -O2 -fpic" /usr/bin/gcc-4.0 -O2 -fsigned-char -O2 -fpic -c paranoia.c paranoia.c:1: warning: -fpic is not supported; -fPIC assumed /usr/bin/gcc-4.0 -O2 -fsigned-char -O2 -fpic -c p_block.c p_block.c:1: warning: -fpic is not supported; -fPIC assumed /usr/bin/gcc-4.0 -O2 -fsigned-char -O2 -fpic -c overlap.c overlap.c:1: warning: -fpic is not supported; -fPIC assumed /usr/bin/gcc-4.0 -O2 -fsigned-char -O2 -fpic -c gap.c gap.c:1: warning: -fpic is not supported; -fPIC assumed /usr/bin/gcc-4.0 -O2 -fsigned-char -O2 -fpic -c isort.c isort.c:1: warning: -fpic is not supported; -fPIC assumed /usr/bin/gcc-4.0 -dynamiclib -o libcdda_paranoia.0.10.2.dylib paranoia.o p_block .o overlap.o gap.o isort.o -L../interface -lcdda_interface -install_name /opt/l ocal/lib/libcdda_paranoia.0.dylib ld: common symbols not allowed with MH_DYLIB output format with the -multi_modul e option paranoia.o definition of common _paranoia_read_flags (size 4) /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: internal link edit command failed make[2]: *** [libcdda_paranoia.dylib] Error 1 make[1]: *** [slib] Error 2 make: *** [all] Error 2 Error: Status 1 encountered during processing. $ }}} -- Ticket URL: <http://trac.macports.org/ticket/19829#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19829: cdparanoia build fails on Tiger (common symbols not allowed with MH_DYLIB output format...) ----------------------------------+----------------------------------------- Reporter: vinc17@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: fixed | Keywords: Port: cdparanoia | ----------------------------------+----------------------------------------- Changes (by blb@…): * status: new => closed * resolution: => fixed Comment: neric27's patch added in r51830, thanks. -- Ticket URL: <http://trac.macports.org/ticket/19829#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts