Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#13394 closed defect (fixed)

BUG: hdf5 - wrong dependencies in libtool library file

Reported by: master@… Owned by: macports-tickets@…
Priority: Low Milestone:
Component: ports Version: 1.5.2
Keywords: Cc: persquare@…, simon@…, mww@…, jochen@…
Port:

Description

in libhdf5.la file, installed by the hdf5 port in library folder one can find # Libraries that this one depends upon. dependency_libs=' -R/opt/local/lib/lib -R/opt/local/lib -L/opt/local/lib -L/opt/local/lib/lib -lz -lm'

Note the references to nonexistent directory /opt/local/lib/lib.

It is a result of the following incorrect Portfile line configure.args --enable-cxx --with-zlib=${prefix}/lib

--with-zlib=${prefix}/lib should be changed to --with-zlib=yes or completely dropped, since it is the default. (Or at least, changed to --with-zlib=${prefix}.)

configure results in

--with-zlib=${prefix}/lib CPPFLAGS: -UH5_DEBUG_API -DNDEBUG -I/opt/local/lib/include -I/opt/local/include

LDFLAGS: -L/opt/local/lib -L/opt/local/lib/lib

--with-zlib=${prefix} CPPFLAGS: -UH5_DEBUG_API -DNDEBUG -I/opt/local/include -I/opt/local/include

LDFLAGS: -L/opt/local/lib -L/opt/local/lib

--with-zlib=yes CPPFLAGS: -UH5_DEBUG_API -DNDEBUG -I/opt/local/include

LDFLAGS: -L/opt/local/lib

In any case the ports version of zlib is linked against.

The same holds (I hope, did not check) for --with-szlib in szlib variant.

Attachments (1)

Portfile.diff (964 bytes) - added by jochen@… 17 years ago.
patch for Portfile

Download all attachments as: .zip

Change History (4)

Changed 17 years ago by jochen@…

Attachment: Portfile.diff added

patch for Portfile

comment:1 Changed 17 years ago by jochen@…

I can check in the changes if the maintainer agrees.

comment:2 Changed 17 years ago by jochen@…

Resolution: fixed
Status: newclosed

Fixed in r31457

comment:3 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.