New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #16300 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

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@…
Port: e2fsprogs

Description (last modified by jmr@…) (diff)

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

patch-lib__Makefile.darwin-lib Download (0.6 KB) - added by niel.drummond@… 3 years ago.

Change History

  Changed 3 years ago by macsforever2000@…

  • owner changed from macports-tickets@… to misc@…
  • milestone set to Port Bugs

Assigning to maintainer.

  Changed 3 years ago by jmr@…

  • port set to e2fsprogs
  • description modified (diff)

in reply to: ↑ description   Changed 3 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.

  Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

Changed 3 years ago by niel.drummond@…

follow-up: ↓ 9   Changed 3 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 ).

  Changed 3 years ago by niel.drummond@…

  • cc niel.drummond@… added

Cc Me!

  Changed 3 years ago by blb@…

  • cc nils@… added

Cc reporter of dup #20548.

  Changed 3 years ago by ryandesign@…

  • summary changed from e2fsprogs-1.40.6 Configuration error - build failure to e2fsprogs: 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.

in reply to: ↑ 5   Changed 3 years ago by ryandesign@…

  • status changed from new to closed
  • cc ryandesign@… added
  • resolution set to fixed

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.