Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#18028 closed defect (fixed)

xorg-liblbxutil can't build universal

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc:
Port: xorg-liblbxutil

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I'm on Mac OS X 10.4.11 Intel with Xcode 2.5 and MacPorts 1.7.0 and cannot build xorg-liblbxutil universal (i386 ppc). It fails with:

ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option

See the attached log.

Attachments (1)

xorg-liblbxutil.txt (31.3 KB) - added by ryandesign (Ryan Carsten Schmidt) 15 years ago.

Download all attachments as: .zip

Change History (8)

Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: xorg-liblbxutil.txt added

comment:1 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:2 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Here on 10.5:

~/src/macports-trunk/dports/x11/xorg-liblbxutil $ file /opt/local/lib/liblbxutil.dylib 
/opt/local/lib/liblbxutil.dylib: Mach-O universal binary with 2 architectures
/opt/local/lib/liblbxutil.dylib (for architecture ppc7400):	Mach-O dynamically linked shared library ppc
/opt/local/lib/liblbxutil.dylib (for architecture i386):	Mach-O dynamically linked shared library i386

comment:3 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Perhaps a Tiger-specific problem?

Searching Google, I see a suggestion to use -fno-common to fix this.

I see these lines in the output:

checking for /usr/bin/gcc-4.0 option to produce PIC... -fno-common
checking if /usr/bin/gcc-4.0 PIC flag -fno-common works... no
checking for /usr/bin/g++-4.0 option to produce PIC... -fno-common
checking if /usr/bin/g++-4.0 PIC flag -fno-common works... yes

But -fno-common isn't actually used to compile, perhaps causing the problem.

comment:4 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Hmm... can you try:

use_autoreconf yes autoreconf.args -fvi

Maybe an updated/smarter libtool will fix this...

comment:5 in reply to:  4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to jeremyhu@…:

use_autoreconf yes autoreconf.args -fvi

Yes, that works! Your favorite incantation saves the day yet again :)

comment:6 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

r45445

Thanks.

comment:7 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.