Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#31415 closed defect (fixed)

netcdf 4.1.3 Error ld: library not found for -lsz

Reported by: ryan.manger@… Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: janderssen@…
Port: netcdf

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

OS version - Lion 10.7.1
XCode version 4.1 (4B110)

make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_science_netcdf/netcdf/work/netcdf-4.1.3/libcf/cfcheck'
depbase=`echo cfcheck.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
	/Developer/usr/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I. -I..  -I../src  -I../.. -I../../include -I../../liblib -I/opt/local/include -DNDEBUG  -pipe -O2 -fno-common -arch x86_64 -MT cfcheck.o -MD -MP -MF $depbase.Tpo -c -o cfcheck.o cfcheck.c &&\

	mv -f $depbase.Tpo $depbase.Po
/bin/sh ../libtool --tag=CC   --mode=link /Developer/usr/bin/llvm-gcc-4.2  -pipe -O2 -fno-common -arch x86_64  ../../liblib/libnetcdf.la  -L/opt/local/lib -lhdf5_hl -lhdf5 -lz -L/opt/local/lib -lsz -lm -L/opt/local/lib -arch x86_64 -L/opt/local/lib -o cfcheck cfcheck.o  
libtool: link: /Developer/usr/bin/llvm-gcc-4.2 -pipe -O2 -fno-common -arch x86_64 -arch x86_64 -o .libs/cfcheck cfcheck.o  ../../liblib/.libs/libnetcdf.dylib -L/opt/local/lib /opt/local/lib/libcurl.dylib /opt/local/lib/libidn.dylib /opt/local/lib/libintl.dylib -lc /opt/local/lib/libiconv.dylib -lssl -lcrypto /opt/local/lib/libhdf5_hl.dylib /opt/local/lib/libhdf5.dylib -lz -lsz -lm
ld: library not found for -lsz
collect2: ld returned 1 exit status
make[4]: *** [cfcheck] Error 1
make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_science_netcdf/netcdf/work/netcdf-4.1.3/libcf/cfcheck'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory 
`/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_science_netcdf/netcdf/work/netcdf-4.1.3/libcf'
make[2]: *** [all] Error 2
make[2]: Leaving directory`/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_science_netcdf/netcdf/work/netcdf-4.1.3/libcf'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_science_netcdf/netcdf/work/netcdf-4.1.3'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_science_netcdf/netcdf/work/netcdf-4.1.3'
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_science_netcdf/netcdf/work/netcdf-4.1.3" && /usr/bin/make -j4 -w all " returned error 2
Error: Target org.macports.build returned: shell command failed (see log for details)
DEBUG: Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for netcdf): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Log for netcdf is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_science_netcdf/netcdf/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Attachments (1)

main.log (346.6 KB) - added by ryan.manger@… 13 years ago.
Log File for netcdf install

Download all attachments as: .zip

Change History (8)

Changed 13 years ago by ryan.manger@…

Attachment: main.log added

Log File for netcdf install

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

Description: modified (diff)
Owner: changed from macports-tickets@… to takeshi@…
Port: netcdf added

Sounds like it needs a dependency on szip.

comment:2 Changed 13 years ago by macporter90210@…

Yes, installing szip fixes it.

comment:3 Changed 13 years ago by tenomoto (Takeshi Enomoto)

hdf5-18 depends upon szip.

comment:4 Changed 13 years ago by ryan.manger@…

Installing szip fixed it for me. Thank you.

comment:5 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: janderssen@… added

Has duplicate #31487.

Takeshi, hdf5-18 only depends on szip if the +szip variant is selected, otherwise it does not, and this variant is not on by default. If netcdf is going to always request szip functionality in its +netcdf4 variant (which it does, and this variant is on by default), then it should always declare a dependency on the szip port.

comment:6 Changed 12 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: newclosed

Fixed in r84889. Asked mmoll to consider making szip to be a default variant.

comment:7 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Has duplicate #31449.

Note: See TracTickets for help on using tickets.