On 11/9/12 12:11 PM, Watson, David W. (MSFC-ES62) wrote:
>      Installing ccp4 fails with the following:
> 
>  cd $CLIB/libccp4
>       gfortran -m64 -fno-second-underscore -O2 -fno-second-underscore
> -L$CLIB -o data/fontpack data/fontpack.o -lccp4f -lccp4c
> Undefined symbols:
>   "__gfortran_transfer_array_write", referenced from:
>       _MAIN__ in fontpack.o
>       _MAIN__ in fontpack.o
>       _MAIN__ in fontpack.o
>       _MAIN__ in fontpack.o
>       _MAIN__ in fontpack.o
>       _MAIN__ in fontpack.o
>       _MAIN__ in fontpack.o
>   "__gfortran_set_options", referenced from:
>       _main in fontpack.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> ### execution of /tmp/fink.w2y5z failed, exit code 1
> ### execution of /tmp/fink.pBNG9 failed, exit code 1
> Removing runtime build-lock...
> Removing build-lock package...
> /sw/bin/dpkg-lockwait -r fink-buildlock-ccp4-6.3.0-5
> (Reading database ... 65471 files and directories currently installed.)
> Removing fink-buildlock-ccp4-6.3.0-5 ...
> Reading buildlock packages...
>     All buildlocks accounted for.
> /sw/bin/dpkg-lockwait -i
> /sw/fink/dists/stable/main/binary-darwin-x86_64/sci/gpp4-dev_1.2.0-31_darwin
> -x86_64.deb 
> /sw/fink/dists/stable/main/binary-darwin-x86_64/sci/ssm-dev_0.1-31_darwin-x8
> 6_64.deb 
> /sw/fink/dists/stable/main/binary-darwin-x86_64/sci/mmdb-dev_1.23.2-31_darwi
> n-x86_64.deb 
> /sw/fink/dists/stable/main/binary-darwin-x86_64/sci/clipper_2.1-31_darwin-x8
> 6_64.deb 
> /sw/fink/dists/stable/main/binary-darwin-x86_64/sci/clipper-dev_2.1-31_darwi
> n-x86_64.deb
> Selecting previously deselected package gpp4-dev.
> (Reading database ... 65470 files and directories currently installed.)
> Unpacking gpp4-dev (from .../gpp4-dev_1.2.0-31_darwin-x86_64.deb) ...
> Selecting previously deselected package ssm-dev.
> Unpacking ssm-dev (from .../ssm-dev_0.1-31_darwin-x86_64.deb) ...
> Selecting previously deselected package mmdb-dev.
> Unpacking mmdb-dev (from .../mmdb-dev_1.23.2-31_darwin-x86_64.deb) ...
> Selecting previously deselected package clipper.
> Unpacking clipper (from .../clipper_2.1-31_darwin-x86_64.deb) ...
> Selecting previously deselected package clipper-dev.
> Unpacking clipper-dev (from .../clipper-dev_2.1-31_darwin-x86_64.deb) ...
> Setting up gpp4-dev (1.2.0-31) ...
> Clearing dependency_libs of .la files being installed
> 
> Setting up ssm-dev (0.1-31) ...
> Clearing dependency_libs of .la files being installed
> 
> Setting up mmdb-dev (1.23.2-31) ...
> Clearing dependency_libs of .la files being installed
> 
> Setting up clipper (2.1-31) ...
> 
> Setting up clipper-dev (2.1-31) ...
> Clearing dependency_libs of .la files being installed
> 
> Failed: phase installing: ccp4-6.3.0-5 failed
> 
> Package manager version: 0.34.4
> Distribution version: selfupdate-rsync Fri Nov  9 12:16:58 2012, 10.6,
> x86_64
> Trees: local/main stable/main stable/crypto unstable/main unstable/crypto
> Xcode.app: 3.2.6
> Xcode command-line tools: 3.2.6
> ccp4-6.3.0-5 is set to build with only one job.
> 
> 
> David Watson
> NASA - MSFC
> Mail Code ES62
> Phone 256-544-1300
> FAX     256-544-2964
> [email protected]
> 
> 
> 

I show the following:

$ dpkg -L gcc47-shlibs | grep dylib | xargs nm -o | grep
__gfortran_transfer_array_write
/sw/lib/gcc4.7/lib/i386/libgfortran.3.dylib: 000ac320 T
__gfortran_transfer_array_write
/sw/lib/gcc4.7/lib/libgfortran.3.dylib: 00000000000c3250 T
__gfortran_transfer_array_write

I'd recommend checking "which gfortran" to verify what you're using.  If
it's not a Fink gfortran, then remove it from your PATH, at least
temporarily.

If it _is_ a Fink gfortran, then see what you get by running the same
command that I posted above.

====================

For the maintainer:

It might be possible to harden the build a little bit against
third-party compilers by using

export FC="%p/bin/gfortran-fsf-4.7"

in the CompileScript, and relax the BuildDepends: gcc47 to BuildDepends:
gcc47-compiler.

If that's unacceptable to the build for some strange reason (I've had a
package reportedly do weird things with second underscores when the
compiler wasn't literally "gfortran"), then an explicit
"%p/bin/gfortran" would still be good.

-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to