Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#15546 closed defect (fixed)

e2fsprogs port bug

Reported by: groolot@… Owned by: misc@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: e2fsprogs library Cc: jmroot (Joshua Root)
Port: e2fsprogs

Description

Context

Under Mac OS X Leopard 10.5.3, I tried to do a standard install of the e2fsprogs port. Everything works fine until the launch of some binaries.

What happend ?

When I try to execute a binary from this port, such as mkfs.ext3, i found that :

dyld: Library not loaded: libext2fs.2.1.dylib
  Referenced from: /opt/local/sbin/mkfs.ext3
  Reason: image not found
  Trace/BPT trap

It seems to be an error inside the hardcoded Path of the library into libext2fs.2.1.dylib of the mkfs.ext3 prog. I look inside the prog with otool to find an effective answer :

opt/local/sbin/mkfs.ext3:
	libext2fs.2.1.dylib (compatibility version 1.0.0, current version 2.1.0)
	libcom_err.1.1.dylib (compatibility version 1.0.0, current version 1.1.0)
	libblkid.2.0.dylib (compatibility version 1.0.0, current version 2.0.0)
	libuuid.1.1.dylib (compatibility version 1.0.0, current version 1.1.0)
	libe2p.2.1.dylib (compatibility version 1.0.0, current version 2.1.0)
	/usr/local/lib/libintl.3.dylib (compatibility version 8.0.0, current version 8.3.0)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.1)

But mkfs.ext3 normally should expect that the libraries are not in the current directory ...

Reproductibility

Discussing primarly with Michael SCHERER, the maintainer of the port, he has experienced the same problem with the current version of the port (v. 1.40.6).

We have found some ways to make it functional :

  • doing cd /opt/local/bin and then launch mkfs.ext3
  • making some links from /opt/local/lib/needed_library to /opt/local/bin

What an idiot way of resolving the problem ...

Hope that could help you.

Change History (5)

comment:1 Changed 10 years ago by jmroot (Joshua Root)

  • Cc misc@… added; groolot@… removed

Cc maintainer.

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

  • Cc jmr@… added; misc@… removed
  • Owner changed from macports-tickets@… to misc@…

Has this been reported upstream?

comment:3 Changed 9 years ago by jmroot (Joshua Root)

  • Port e2fsprogs added

comment:4 Changed 9 years ago by tobypeterson

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r42623

comment:5 Changed 9 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.