Opened 16 years ago

Closed 15 years ago

#16300 closed defect (fixed)

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

Reported by: joshua.friedman@… Owned by: misc@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: niel.drummond@…, nils@…, ryandesign (Ryan Carsten Schmidt)
Port: e2fsprogs

Description (last modified by jmroot (Joshua Root))

I'm on os x 10.4 and e2fsprogs is failing to link.

making all in lib/ext2fs
        GEN_BSD_SOLIB libext2fs.2.1.dylib
ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option
tdb.o definition of common _tdb_null (size 8)
/usr/bin/libtool: internal link edit command failed
make[2]: *** [libext2fs.2.1.dylib] Error 1
make[1]: *** [all-libs-recursive] Error 1
make: *** [all] Error 2

Attachments (1)

patch-lib__Makefile.darwin-lib (577 bytes) - added by niel.drummond@… 16 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 16 years ago by mf2k (Frank Schima)

Milestone: Port Bugs
Owner: changed from macports-tickets@… to misc@…

Assigning to maintainer.

comment:2 Changed 16 years ago by jmroot (Joshua Root)

Description: modified (diff)
Port: e2fsprogs added

comment:3 in reply to:  description Changed 16 years ago by bdenckla@…

Here's some observations I can add that are possibly useful: (a) I can reproduce this problem, (b) it goes away if I remove --enable-bsd-shlibs, and (c) it does not exist on 10.5.

comment:4 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Changed 16 years ago by niel.drummond@…

comment:5 Changed 16 years ago by niel.drummond@…

modified patch in /opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/e2fsprogs/files/patch-lib__Makefile.darwin-lib which passes compile ( reference http://www.mail-archive.com/gcc@gcc.gnu.org/msg05799.html ).

comment:6 Changed 16 years ago by niel.drummond@…

Cc: niel.drummond@… added

Cc Me!

comment:7 Changed 15 years ago by blb@…

Cc: nils@… added

Cc reporter of dup #20548.

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

Summary: e2fsprogs-1.40.6 Configuration error - build failuree2fsprogs: common symbols not allowed with MH_DYLIB output format with the -multi_module option

The problem is Tiger-specific and remains with 1.41.8 to which I just updated the port.

#20548 suggests the solution:

Add

CFLAGS = -O2 -fno-common

in file: lib/ext2fs/Makefile

I have not tested this.

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

Cc: ryandesign@… added
Resolution: fixed
Status: newclosed

Replying to niel.drummond@…:

modified patch in /opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/e2fsprogs/files/patch-lib__Makefile.darwin-lib which passes compile ( reference http://www.mail-archive.com/gcc@gcc.gnu.org/msg05799.html ).

I committed your update in r55267, which I agree does seem to allow the build on Tiger, and does not seem to affect the build on Leopard.

Note: See TracTickets for help on using tickets.