Opened 16 years ago

Closed 15 years ago

#17526 closed defect (fixed)

cdf 32 - build failure

Reported by: nicholas.d.pate@… Owned by: gwright@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: cdf symbol found gfortran opendx Cc: bitmail@…, ryandesign (Ryan Carsten Schmidt)
Port: cdf

Description

cdf fails to build with symbol(s) not found. This problem occurs on a PowerBook G4 running Leopard (10.5.5) with a fresh, default install of MacPorts. The relevant output from "sudo port -d -v install cdf" is as follows:

gfortran-mp-4.2 -o qst2f qst2f.o ../lib/libcdf.a -L/Developer/SDKs/MacOSX10.4u.sdk /opt/local/lib/gcc42/gcc/powerpc-apple-darwin9.5.0/4.2.4/libgcc.a -lm -lc -lSystemStubs
Undefined symbols:
  "_cdf_var_get_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_attr_num_", referenced from:
      _MAIN__ in qst2f.o
      _MAIN__ in qst2f.o
      _MAIN__ in qst2f.o
      _MAIN__ in qst2f.o
      _MAIN__ in qst2f.o
  "_cdf_var_hyper_put_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_set_checksum_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_create_", referenced from:
      _MAIN__ in qst2f.o
      _MAIN__ in qst2f.o
      _MAIN__ in qst2f.o
  "_cdf_var_hyper_get_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_doc_", referenced from:
      _MAIN__ in qst2f.o
  "_parse_epoch1_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_error_", referenced from:
      _MAIN__ in qst2f.o
  "_parse_epoch2_", referenced from:
      _MAIN__ in qst2f.o
  "_parse_epoch3_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_var_num_", referenced from:
      _MAIN__ in qst2f.o
      _MAIN__ in qst2f.o
      _MAIN__ in qst2f.o
      _MAIN__ in qst2f.o
      _MAIN__ in qst2f.o
      _MAIN__ in qst2f.o
  "_cdf_attr_put_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_var_create_", referenced from:
      _MAIN__ in qst2f.o
      _MAIN__ in qst2f.o
  "_cdf_attr_get_", referenced from:
      _MAIN__ in qst2f.o
  "_parse_epoch_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_attr_create_", referenced from:
      _MAIN__ in qst2f.o
  "_compute_epoch_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_var_rename_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_get_checksum_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_inquire_", referenced from:
      _MAIN__ in qst2f.o
      _MAIN__ in qst2f.o
  "_cdf_attr_entry_inquire_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_close_", referenced from:
      _MAIN__ in qst2f.o
      _MAIN__ in qst2f.o
  "_encode_epoch_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_var_inquire_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_open_", referenced from:
      _MAIN__ in qst2f.o
      _MAIN__ in qst2f.o
  "_epoch_breakdown_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_attr_inquire_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_attr_rename_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_var_put_", referenced from:
      _MAIN__ in qst2f.o
  "_encode_epoch1_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_delete_", referenced from:
      _MAIN__ in qst2f.o
      _MAIN__ in qst2f.o
  "_encode_epoch2_", referenced from:
      _MAIN__ in qst2f.o
  "_encode_epoch3_", referenced from:
      _MAIN__ in qst2f.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [qst2f] Error 1
make: *** [all.build] Error 2
Error: Target org.macports.build returned: shell command "make OS=macosx ENV=ppc FORTRAN=yes FC=gfortran-mp-4.2 all" returned error 2
Command output:       _MAIN__ in qst2f.o
      _MAIN__ in qst2f.o
  "_encode_epoch_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_var_inquire_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_open_", referenced from:
      _MAIN__ in qst2f.o
      _MAIN__ in qst2f.o
  "_epoch_breakdown_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_attr_inquire_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_attr_rename_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_var_put_", referenced from:
      _MAIN__ in qst2f.o
  "_encode_epoch1_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_delete_", referenced from:
      _MAIN__ in qst2f.o
      _MAIN__ in qst2f.o
  "_encode_epoch2_", referenced from:
      _MAIN__ in qst2f.o
  "_encode_epoch3_", referenced from:
      _MAIN__ in qst2f.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [qst2f] Error 1
make: *** [all.build] Error 2

Warning: the following items did not execute (for cdf): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Change History (9)

comment:1 Changed 16 years ago by blb@…

Owner: changed from macports-tickets@… to gwright@…

comment:2 Changed 16 years ago by nicholas.d.pate@…

cdf also fails to build on a MacBook running 10.5.6 with a fresh, updated install of MacPorts/DarwinPorts. If it won't compile for OS X on Intel or PPC, what is it doing here?

Output from 'sudo port -d -v install cdf' is as follows:

DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/science/cdf
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/science/cdf
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Requested variant darwin is not provided by port cdf.
DEBUG: Requested variant i386 is not provided by port cdf.
DEBUG: Requested variant macosx is not provided by port cdf.
DEBUG: Executing variant darwin_i386 provides darwin_i386
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/gcc42
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/gcc42
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: 'universal_variant no' specified, so not adding the default universal variant
DEBUG: Requested variant darwin is not provided by port gcc42.
DEBUG: Requested variant i386 is not provided by port gcc42.
DEBUG: Requested variant macosx is not provided by port gcc42.
DEBUG: Searching for dependency: gcc42
DEBUG: Found Dependency: receipt exists for gcc42
DEBUG: Executing org.macports.main (cdf)
--->  Fetching cdf
DEBUG: Executing org.macports.fetch (cdf)
--->  Verifying checksum(s) for cdf
DEBUG: Executing org.macports.checksum (cdf)
--->  Checksumming cdf32-dist-all.tar.gz
DEBUG: Correct (sha1) checksum for cdf32-dist-all.tar.gz
--->  Extracting cdf
DEBUG: Executing org.macports.extract (cdf)
--->  Extracting cdf32-dist-all.tar.gz
DEBUG: setting option extract.args to /opt/local/var/macports/distfiles/cdf/cdf32-dist-all.tar.gz
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_cdf/work" && gzip -dc /opt/local/var/macports/distfiles/cdf/cdf32-dist-all.tar.gz | /usr/bin/gnutar --no-same-owner -xf -'
DEBUG: Executing org.macports.patch (cdf)
--->  Applying patches to cdf
--->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/science/cdf/files/patch-Makefile
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_cdf/work/cdf32-dist-readonly" && patch -p0'
patching file Makefile
DEBUG: Executing proc-post-org.macports.patch-patch-0
--->  Configuring cdf
DEBUG: Using compiler 'Mac OS X gcc 4.0'
DEBUG: Executing org.macports.configure (cdf)
--->  Building cdf
DEBUG: Executing org.macports.build (cdf)
gcc-mp-4.2 -isysroot/Developer/SDKs/MacOSX10.4u.sdk -Di386 -D__MACH__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../include -c cdflib.c
In file included from cdflib.c:46:
../include/cdflib.h:480: error: redefinition of 'struct fp1struct4'
../include/cdflib.h:483: error: redefinition of 'struct fp2struct4'
../include/cdflib.h:486: error: redefinition of 'struct fp34struct4'
../include/cdflib.h:489: error: redefinition of 'struct fp1struct8'
../include/cdflib.h:493: error: redefinition of 'struct fp2struct8'
../include/cdflib.h:497: error: redefinition of 'struct fp3struct8'
../include/cdflib.h:501: error: redefinition of 'struct fp4struct8'
make[1]: *** [cdflib.o] Error 1
make: *** [all.build] Error 2

Error: Target org.macports.build returned: shell command "make OS=macosx ENV=i386 FORTRAN=yes FC=gfortran-mp-4.2 all" returned error 2
Command output: gcc-mp-4.2 -isysroot/Developer/SDKs/MacOSX10.4u.sdk -Di386 -D__MACH__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../include -c cdflib.c
In file included from cdflib.c:46:
../include/cdflib.h:480: error: redefinition of 'struct fp1struct4'
../include/cdflib.h:483: error: redefinition of 'struct fp2struct4'
../include/cdflib.h:486: error: redefinition of 'struct fp34struct4'
../include/cdflib.h:489: error: redefinition of 'struct fp1struct8'
../include/cdflib.h:493: error: redefinition of 'struct fp2struct8'
../include/cdflib.h:497: error: redefinition of 'struct fp3struct8'
../include/cdflib.h:501: error: redefinition of 'struct fp4struct8'
make[1]: *** [cdflib.o] Error 1
make: *** [all.build] Error 2

Warning: the following items did not execute (for cdf): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

comment:3 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:4 Changed 15 years ago by bitmail@…

When trying to install OpenDX, the build of dependency CDF fails on OSX 10.5.7 PPC too:

--->  Fetching cdf
--->  Verifying checksum(s) for cdf
--->  Extracting cdf
--->  Applying patches to cdf
--->  Configuring cdf
--->  Building cdf
Error: Target org.macports.build returned: shell command "make OS=macosx ENV=ppc FORTRAN=yes FC=gfortran-mp-4.2 all" returned error 2
Command output:       _MAIN__ in qst2f.o
      _MAIN__ in qst2f.o
  "_encode_epoch_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_var_inquire_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_open_", referenced from:
      _MAIN__ in qst2f.o
      _MAIN__ in qst2f.o
  "_epoch_breakdown_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_attr_inquire_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_attr_rename_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_var_put_", referenced from:
      _MAIN__ in qst2f.o
  "_encode_epoch1_", referenced from:
      _MAIN__ in qst2f.o
  "_cdf_delete_", referenced from:
      _MAIN__ in qst2f.o
      _MAIN__ in qst2f.o
  "_encode_epoch2_", referenced from:
      _MAIN__ in qst2f.o
  "_encode_epoch3_", referenced from:
      _MAIN__ in qst2f.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [qst2f] Error 1
make: *** [all.build] Error 2

comment:5 Changed 15 years ago by bitmail@…

Further Info:

$port version
Version: 1.710

I'm wondering if this error is related to the use of the MacOSX10.4u.sdk on the OSX10.5 platform. Is there a reason not to use the MacOSX10.5.sdk shipped now?

comment:6 Changed 15 years ago by bitmail@…

Cc: bitmail@… added

Cc Me!

comment:7 in reply to:  description ; Changed 15 years ago by caivega@…

Macos 10.5.8 got following error:

macbp:bin root# port install cdf
--->  Computing dependencies for cdf
--->  Applying patches to cdf
Error: Target org.macports.patch returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_cdf/work/cdf32-dist-readonly" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/ports/science/cdf/files/patch-Makefile'" returned error 1
Command output: patching file Makefile
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file Makefile.rej

Error: Status 1 encountered during processing.

comment:8 in reply to:  7 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Replying to caivega@…:

Reversed (or previously applied) patch detected! Assume -R? [n]

Fixed in r61057. The other issues likely still remain.

comment:9 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

This should be resolved by r61061 & r61062 in which I updated cdf to version 3.3.0.

Note: See TracTickets for help on using tickets.