build error

Don Stark stark at ucar.edu
Mon Jul 9 16:36:12 PDT 2007


I'm working an a G4 mac running 10.4.10. I'm trying to build and  
install NCO. When the build gets to the stage of "make all" in the  
nco directory I receiving the error "internal link edit command  
failed".  I'm not certain how to proceed. What does the community  
suggest? The full build output is attached below.
--
---------------------------------------------------------------
Don Stark, PhD                          stark at ucar.edu
NCAR, Boulder CO
303.497.2472
---------------------------------------------------------------

$ sudo  /opt/local/bin/port install nco
--->  Fetching expat
--->  Attempting to fetch expat-2.0.1.tar.gz from http:// 
downloads.sourceforge.net/expat
--->  Verifying checksum(s) for expat
--->  Extracting expat
--->  Configuring expat
--->  Building expat with target all
--->  Staging expat into destroot
--->  Installing expat 2.0.1_0
--->  Activating expat 2.0.1_0
--->  Cleaning expat
--->  Fetching libiconv
--->  Attempting to fetch libiconv-1.11.tar.gz from http:// 
ftp.gnu.org/gnu/libiconv
--->  Verifying checksum(s) for libiconv
--->  Extracting libiconv
--->  Configuring libiconv
--->  Building libiconv with target all
--->  Staging libiconv into destroot
--->  Installing libiconv 1.11_4+darwin_8
--->  Activating libiconv 1.11_4+darwin_8
--->  Cleaning libiconv
--->  Fetching gettext
--->  Attempting to fetch gettext-0.16.1.tar.gz from http:// 
ftp.gnu.org/gnu/gettext
--->  Verifying checksum(s) for gettext
--->  Extracting gettext
--->  Applying patches to gettext
--->  Configuring gettext
--->  Building gettext with target all
--->  Staging gettext into destroot
--->  Installing gettext 0.16.1_0
--->  Activating gettext 0.16.1_0
--->  Cleaning gettext
--->  Fetching m4
--->  Attempting to fetch m4-1.4.9.tar.bz2 from http://ftp.gnu.org/ 
gnu/m4
--->  Verifying checksum(s) for m4
--->  Extracting m4
--->  Configuring m4
--->  Building m4 with target all
--->  Staging m4 into destroot
--->  Installing m4 1.4.9_0
--->  Activating m4 1.4.9_0
--->  Cleaning m4
--->  Fetching bison
--->  Attempting to fetch bison-2.3.tar.bz2 from http://ftp.gnu.org/ 
gnu/bison
--->  Verifying checksum(s) for bison
--->  Extracting bison
--->  Configuring bison
--->  Building bison with target all
--->  Staging bison into destroot
--->  Installing bison 2.3_0
--->  Activating bison 2.3_0
--->  Cleaning bison
--->  Fetching pkgconfig
--->  Verifying checksum(s) for pkgconfig
--->  Extracting pkgconfig
--->  Configuring pkgconfig
--->  Building pkgconfig with target all
--->  Staging pkgconfig into destroot
--->  Installing pkgconfig 0.21_0
--->  Activating pkgconfig 0.21_0
--->  Cleaning pkgconfig
--->  Fetching zlib
--->  Attempting to fetch zlib-1.2.3.tar.bz2 from http://www.zlib.net/
--->  Verifying checksum(s) for zlib
--->  Extracting zlib
--->  Applying patches to zlib
--->  Configuring zlib
--->  Building zlib with target all
--->  Staging zlib into destroot
--->  Installing zlib 1.2.3_1
--->  Activating zlib 1.2.3_1
--->  Cleaning zlib
--->  Fetching curl
--->  Attempting to fetch curl-7.16.2.tar.bz2 from http:// 
curl.haxx.se/download/
--->  Verifying checksum(s) for curl
--->  Extracting curl
--->  Configuring curl
--->  Building curl with target all
--->  Staging curl into destroot
--->  Installing curl 7.16.2_0+darwin_8
--->  Activating curl 7.16.2_0+darwin_8
--->  Cleaning curl
--->  Fetching libxml2
--->  Attempting to fetch libxml2-2.6.28.tar.gz from http:// 
xmlsoft.org/sources/
--->  Verifying checksum(s) for libxml2
--->  Extracting libxml2
--->  Configuring libxml2
--->  Building libxml2 with target all
--->  Staging libxml2 into destroot
--->  Installing libxml2 2.6.28_1
--->  Activating libxml2 2.6.28_1
--->  Cleaning libxml2
--->  Fetching openssl
--->  Attempting to fetch openssl-0.9.8e.tar.gz from http:// 
www.openssl.org/source/
--->  Verifying checksum(s) for openssl
--->  Extracting openssl
--->  Applying patches to openssl
--->  Configuring openssl
--->  Building openssl with target all
--->  Staging openssl into destroot
--->  Installing openssl 0.9.8e_0+darwin_8
--->  Activating openssl 0.9.8e_0+darwin_8
--->  Cleaning openssl
--->  Fetching libdap
--->  Attempting to fetch libdap-3.7.5.tar.gz from ftp:// 
ftp.unidata.ucar.edu/pub/opendap/source/
--->  Attempting to fetch libdap-3.7.5.tar.gz from ftp:// 
ftp.unidata.ucar.edu/pub/opendap/source/o
ld/
--->  Verifying checksum(s) for libdap
--->  Extracting libdap
--->  Configuring libdap
--->  Building libdap with target all
--->  Staging libdap into destroot
--->  Installing libdap 3.7.5_0
--->  Activating libdap 3.7.5_0
--->  Cleaning libdap
--->  Fetching gmp
--->  Attempting to fetch gmp-4.2.1.tar.bz2 from http://ftp.gnu.org/ 
gnu/gmp
--->  Verifying checksum(s) for gmp
--->  Extracting gmp
--->  Configuring gmp
--->  Building gmp with target all
--->  Staging gmp into destroot
--->  Running ranlib on static libraries
--->  Installing gmp 4.2.1_4+test
--->  Activating gmp 4.2.1_4+test
--->  Cleaning gmp
--->  Fetching mpfr
--->  Attempting to fetch patch01 from http://www.mpfr.org/mpfr-2.2.1/
--->  Attempting to fetch patch02 from http://www.mpfr.org/mpfr-2.2.1/
--->  Attempting to fetch patch03 from http://www.mpfr.org/mpfr-2.2.1/
--->  Attempting to fetch patch04 from http://www.mpfr.org/mpfr-2.2.1/
--->  Attempting to fetch patch05 from http://www.mpfr.org/mpfr-2.2.1/
--->  Attempting to fetch mpfr-2.2.1.tar.bz2 from http://www.mpfr.org/ 
mpfr-2.2.1/
--->  Verifying checksum(s) for mpfr
--->  Extracting mpfr
--->  Applying patches to mpfr
--->  Configuring mpfr
--->  Building mpfr with target all
--->  Staging mpfr into destroot
--->  Installing mpfr 2.2.1_1+darwin_8
--->  Activating mpfr 2.2.1_1+darwin_8
--->  Cleaning mpfr
--->  Fetching gcc40
--->  Attempting to fetch gcc-core-4.0.4.tar.bz2 from ftp:// 
gcc.gnu.org/pub/gcc/releases/gcc-4.0.4
/
--->  Attempting to fetch gcc-fortran-4.0.4.tar.bz2 from ftp:// 
gcc.gnu.org/pub/gcc/releases/gcc-4.
0.4/
--->  Attempting to fetch gcc-g++-4.0.4.tar.bz2 from ftp:// 
gcc.gnu.org/pub/gcc/releases/gcc-4.0.4/
--->  Attempting to fetch gcc-java-4.0.4.tar.bz2 from ftp:// 
gcc.gnu.org/pub/gcc/releases/gcc-4.0.4
/
--->  Attempting to fetch gcc-objc-4.0.4.tar.bz2 from ftp:// 
gcc.gnu.org/pub/gcc/releases/gcc-4.0.4
/
--->  Verifying checksum(s) for gcc40
--->  Extracting gcc40
--->  Configuring gcc40
--->  Building gcc40 with target profiledbootstrap
--->  Staging gcc40 into destroot
--->  Installing gcc40 4.0.4_0+darwin_8
--->  Activating gcc40 4.0.4_0+darwin_8
--->  Cleaning gcc40
--->  Fetching libnc-dap
--->  Attempting to fetch libnc-dap-3.7.0.tar.gz from ftp:// 
ftp.unidata.ucar.edu/pub/opendap/sourc
e/
--->  Verifying checksum(s) for libnc-dap
--->  Extracting libnc-dap
--->  Applying patches to libnc-dap
--->  Configuring libnc-dap
--->  Building libnc-dap with target all
--->  Staging libnc-dap into destroot
--->  Installing libnc-dap 3.7.0_1
--->  Activating libnc-dap 3.7.0_1
--->  Cleaning libnc-dap
--->  Fetching netcdf
--->  Attempting to fetch netcdf-3.6.2.tar.bz2 from ftp:// 
ftp.unidata.ucar.edu/pub/netcdf/
--->  Verifying checksum(s) for netcdf
--->  Extracting netcdf
--->  Configuring netcdf
--->  Building netcdf with target all
--->  Staging netcdf into destroot
--->  Installing netcdf 3.6.2_0
--->  Activating netcdf 3.6.2_0
--->  Cleaning netcdf
--->  Fetching perl5.8
--->  Attempting to fetch perl-5.8.8.tar.bz2 from http://www.cpan.org/ 
src/5.0/
--->  Verifying checksum(s) for perl5.8
--->  Extracting perl5.8
--->  Applying patches to perl5.8
--->  Configuring perl5.8
--->  Building perl5.8 with target all
--->  Staging perl5.8 into destroot
--->  Installing perl5.8 5.8.8_0+darwin_8
--->  Activating perl5.8 5.8.8_0+darwin_8
--->  Cleaning perl5.8
--->  Fetching udunits
--->  Attempting to fetch udunits.tar.Z from ftp:// 
ftp.unidata.ucar.edu/pub/udunits/
--->  Verifying checksum(s) for udunits
--->  Extracting udunits
--->  Configuring udunits
--->  Building udunits with target all
--->  Staging udunits into destroot
--->  Installing udunits 1.12.4_0
--->  Activating udunits 1.12.4_0
--->  Cleaning udunits
--->  Fetching nco
--->  Attempting to fetch nco-3.1.9.tar.gz from http:// 
nco.sourceforge.net/src/
--->  Verifying checksum(s) for nco
--->  Extracting nco
--->  Applying patches to nco
--->  Configuring nco
--->  Building nco with target all
Error: Target com.apple.build returned: shell command " cd "/opt/ 
local/var/db/dports/build/_opt_lo
cal_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_sc 
ience_nco/work/nco-3.1.9"
&& make all " returned error 2
Command output:  gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/ 
malloc -I/opt/local/include -I
/opt/local/include/libnc-dap -DNC_64BIT_OFFSET -fno-common -O2 - 
std=c99 -D_BSD_SOURCE -c nco_var_l
st.c -o nco_var_lst.o >/dev/null 2>&1
/bin/sh ../../libtool --tag=CXX --tag=CXX --preserve-dup-deps -- 
tag=CC --mode=compile gcc -DHAVE_C
ONFIG_H -I. -I. -I../..   -I/usr/include/malloc -I/opt/local/include - 
I/opt/local/include/libnc-da
p -DNC_64BIT_OFFSET  -fno-common -O2 -std=c99 -D_BSD_SOURCE  -c -o  
nco_var_rth.lo nco_var_rth.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/malloc -I/opt/ 
local/include -I/opt/local/inclu
de/libnc-dap -DNC_64BIT_OFFSET -fno-common -O2 -std=c99 -D_BSD_SOURCE  
-c nco_var_rth.c  -fno-commo
n -DPIC -o .libs/nco_var_rth.o
In file included from nco_var_rth.h:20,
                  from nco_var_rth.c:9:
/opt/local/include/netcdf.h:95:1: warning: "NC_64BIT_OFFSET" redefined
<command line>:1:1: warning: this is the location of the previous  
definition
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/malloc -I/opt/ 
local/include -I/opt/local/inclu
de/libnc-dap -DNC_64BIT_OFFSET -fno-common -O2 -std=c99 -D_BSD_SOURCE  
-c nco_var_rth.c -o nco_var_
rth.o >/dev/null 2>&1
/bin/sh ../../libtool --tag=CXX --tag=CXX --preserve-dup-deps -- 
tag=CC --mode=compile gcc -DHAVE_C
ONFIG_H -I. -I. -I../..   -I/usr/include/malloc -I/opt/local/include - 
I/opt/local/include/libnc-da
p -DNC_64BIT_OFFSET  -fno-common -O2 -std=c99 -D_BSD_SOURCE  -c -o  
nco_var_scv.lo nco_var_scv.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/malloc -I/opt/ 
local/include -I/opt/local/inclu
de/libnc-dap -DNC_64BIT_OFFSET -fno-common -O2 -std=c99 -D_BSD_SOURCE  
-c nco_var_scv.c  -fno-commo
n -DPIC -o .libs/nco_var_scv.o
In file included from nco_var_scv.h:20,
                  from nco_var_scv.c:9:
/opt/local/include/netcdf.h:95:1: warning: "NC_64BIT_OFFSET" redefined
<command line>:1:1: warning: this is the location of the previous  
definition
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/malloc -I/opt/ 
local/include -I/opt/local/inclu
de/libnc-dap -DNC_64BIT_OFFSET -fno-common -O2 -std=c99 -D_BSD_SOURCE  
-c nco_var_scv.c -o nco_var_
scv.o >/dev/null 2>&1
/bin/sh ../../libtool --tag=CXX --tag=CXX --preserve-dup-deps -- 
tag=CC --mode=compile gcc -DHAVE_C
ONFIG_H -I. -I. -I../..   -I/usr/include/malloc -I/opt/local/include - 
I/opt/local/include/libnc-da
p -DNC_64BIT_OFFSET  -fno-common -O2 -std=c99 -D_BSD_SOURCE  -c -o  
nco_var_utl.lo nco_var_utl.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/malloc -I/opt/ 
local/include -I/opt/local/inclu
de/libnc-dap -DNC_64BIT_OFFSET -fno-common -O2 -std=c99 -D_BSD_SOURCE  
-c nco_var_utl.c  -fno-commo
n -DPIC -o .libs/nco_var_utl.o
In file included from nco_var_utl.h:26,
                  from nco_var_utl.c:9:
/opt/local/include/netcdf.h:95:1: warning: "NC_64BIT_OFFSET" redefined
<command line>:1:1: warning: this is the location of the previous  
definition
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/malloc -I/opt/ 
local/include -I/opt/local/inclu
de/libnc-dap -DNC_64BIT_OFFSET -fno-common -O2 -std=c99 -D_BSD_SOURCE  
-c nco_var_utl.c -o nco_var_
utl.o >/dev/null 2>&1
/bin/sh ../../libtool --tag=CXX --tag=CXX --preserve-dup-deps -- 
tag=CC --mode=link gcc  -fno-commo
n -O2 -std=c99 -D_BSD_SOURCE   -L/opt/local/lib -o libnco.la -rpath / 
opt/local/lib -release 3.1.9
   nco_att_utl.lo nco_bnr.lo nco_cln_utl.lo nco_cnf_dmn.lo  
nco_cnf_typ.lo nco_cnv_arm.lo nco_cnv_cs
m.lo nco_ctl.lo nco_dbg.lo nco_dmn_utl.lo nco_fl_utl.lo nco_lmt.lo  
nco_lst_utl.lo nco_mmr.lo nco_m
sa.lo nco_mss_val.lo nco_netcdf.lo nco_omp.lo nco_pck.lo nco_prn.lo  
nco_rec_var.lo nco_rth_flt.lo
nco_rth_utl.lo nco_scl_utl.lo nco_scm.lo nco_sng_utl.lo  
nco_var_avg.lo nco_var_lst.lo nco_var_rth.
lo nco_var_scv.lo nco_var_utl.lo  -ludunits -lresolv -lintl -lm -lnc- 
dap -L/opt/local/lib -lnc-dap
   -L/opt/local/lib -ldap -ldapclient  -L/opt/local/lib -lcurl -L/opt/ 
local/lib -L/opt/local/lib -l
z -L/opt/local/lib -lxml2 -lz -lpthread -L/opt/local/lib -liconv -lm - 
lpthread  -ludunits
g++ -dynamiclib -single_module ${wl}-undefined ${wl}dynamic_lookup - 
o .libs/libnco-3.1.9.dylib  .l
ibs/nco_att_utl.o .libs/nco_bnr.o .libs/nco_cln_utl.o .libs/ 
nco_cnf_dmn.o .libs/nco_cnf_typ.o .lib
s/nco_cnv_arm.o .libs/nco_cnv_csm.o .libs/nco_ctl.o .libs/ 
nco_dbg.o .libs/nco_dmn_utl.o .libs/nco_
fl_utl.o .libs/nco_lmt.o .libs/nco_lst_utl.o .libs/nco_mmr.o .libs/ 
nco_msa.o .libs/nco_mss_val.o .
libs/nco_netcdf.o .libs/nco_omp.o .libs/nco_pck.o .libs/ 
nco_prn.o .libs/nco_rec_var.o .libs/nco_rt
h_flt.o .libs/nco_rth_utl.o .libs/nco_scl_utl.o .libs/nco_scm.o .libs/ 
nco_sng_utl.o .libs/nco_var_
avg.o .libs/nco_var_lst.o .libs/nco_var_rth.o .libs/ 
nco_var_scv.o .libs/nco_var_utl.o  -L/opt/loca
l/lib -ludunits -lresolv /opt/local/lib/libintl.dylib -lm /opt/local/ 
lib/libz.dylib /opt/local/lib
/libnc-dap.dylib /opt/local/lib/libdap.dylib /opt/local/lib/ 
libdapclient.dylib /opt/local/lib/libc
url.dylib -lz /opt/local/lib/libxml2.dylib -lz -lpthread /opt/local/ 
lib/libiconv.dylib -lm -lpthre
ad -ludunits  -install_name  /opt/local/lib/libnco-3.1.9.dylib
ld: flag: -undefined dynamic_lookup can't be used with  
MACOSX_DEPLOYMENT_TARGET environment variab
le set to: 10.1
/usr/bin/libtool: internal link edit command failed
make[3]: *** [libnco.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.




More information about the macports-users mailing list