Opened 15 years ago

Closed 15 years ago

#19829 closed defect (fixed)

cdparanoia build fails on Tiger (common symbols not allowed with MH_DYLIB output format...)

Reported by: vinc17@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: pbedenbaugh@…, ctempleton3@…, neric27@…
Port: cdparanoia

Description

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

Attachments (1)

paranoia_paranoia.c.diff (509 bytes) - added by neric27@… 15 years ago.
patch for paranoia/paranoia.c

Download all attachments as: .zip

Change History (8)

comment:1 Changed 15 years ago by tobypeterson

Summary: cdparanoia build fails (common symbols not allowed with MH_DYLIB output format...)cdparanoia build fails on Tiger (common symbols not allowed with MH_DYLIB output format...)

comment:2 Changed 15 years ago by blb@…

Cc: pbedenbaugh@… added

Cc reporter of dup #19832.

comment:3 Changed 15 years ago by ctempleton3@…

Cc: ctempleton3@… added

Cc Me!

Changed 15 years ago by neric27@…

Attachment: paranoia_paranoia.c.diff added

patch for paranoia/paranoia.c

comment:4 Changed 15 years ago 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

comment:5 Changed 15 years ago by neric27@…

Cc: neric27@… added

Cc Me!

comment:6 Changed 15 years ago by ctempleton3@…

I was sent here from ticket 19831 comment 6. 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 or 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.
$

comment:7 Changed 15 years ago by blb@…

Resolution: fixed
Status: newclosed

neric27's patch added in r51830, thanks.

Note: See TracTickets for help on using tickets.