-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 8/17/11 11:11 AM, Luigi Ernesto Zanotti wrote: > Hello, here is my machine cobfiguration: > > iMac with Mac OS X Lion (10.7) Fink manager version: 0.31.0 > Distribution version: selfupdate-rsync Mon Aug 15 21:26:49 2011, > 10.7, x86_64 Trees: local/main stable/main Xcode Version: 4.1-1 > > After the successful installation of "fink" I tried to install > "cernlib", that I need to keep operating some old codes, still > useful for my job. > > 1 - As indicated, I moved "/usr/local" to "/usr/local-old" 2 - I > launched then "fink install cernlib", from "su". The procedure > stopped after a time with the message error reported here: > > -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes > -Wmissing-prototypes -Wmissing-format-attribute -pedantic > -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings > -Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -I. -Ifortran > -I../../gcc-4.6.1/gcc -I../../gcc-4.6.1/gcc/fortran > -I../../gcc-4.6.1/gcc/../include > -I../../gcc-4.6.1/gcc/../libcpp/include -I/sw/include -I/sw/include > -I../../gcc-4.6.1/gcc/../libdecnumber > -I../../gcc-4.6.1/gcc/../libdecnumber/dpd -I../libdecnumber > -I/sw/include -I/sw/include -DCLOOG_INT_GMP -DCLOOG_ORG > -I/sw/include ../../gcc-4.6.1/gcc/fortran/module.c -o > fortran/module.o ../../gcc-4.6.1/gcc/fortran/module.c:110:1: error: > conflicting types for 'pointer_t' /usr/include/mach/vm_types.h:40:26: > note: previous declaration of 'pointer_t' was here make[3]: *** > [fortran/module.o] Error 1 make[3]: *** Waiting for unfinished > jobs.... rm gfortran.pod gcc.pod make[2]: *** [all-stage2-gcc] Error > 2 make[1]: *** [stage2-bubble] Error 2 make: *** [all] Error 2 ### > execution of /var/tmp/tmp.1.PlBSr4 failed, exit code 2 Removing > runtime build-lock... Removing build-lock package... > /sw/bin/dpkg-lockwait -r fink-buildlock-gcc46-4.6.1-1000 (Reading > database ... 8953 files and directories currently installed.) > Removing fink-buildlock-gcc46-4.6.1-1000 ... Failed: phase compiling: > gcc46-4.6.1-1000 failed > > 3 - I then checked the file "/usr/include/mach/vm_types.h", and > renemed it, just to see what could happen, to > "/usr/include/mach/vm_types-old.h": the procedure stopped again with > the following message: > > ranlib: file: .libs/libgfortran.a(_dim_i16.o) has no symbols ranlib: > file: .libs/libgfortran.a(_mod_i16.o) has no symbols libtool: link: ( > cd ".libs" && rm -f "libgfortran.la" && ln -s "../libgfortran.la" > "libgfortran.la" ) make: *** [all] Error 2 ### execution of > /var/tmp/tmp.1.bpqXKH failed, exit code 2 Removing runtime > build-lock... Removing build-lock package... /sw/bin/dpkg-lockwait -r > fink-buildlock-gcc46-4.6.1-1000 (Reading database ... 8953 files and > directories currently installed.) Removing > fink-buildlock-gcc46-4.6.1-1000 ... Failed: phase compiling: > gcc46-4.6.1-1000 failed > > The first two lines were preceded by many other similar ones. > > 4 - Being clearly the error due to tha absence of "vm_types.h", as a > last attempt, I simply removed 'pointer_t' from "vm_types.h" and > started again. This time the procedure ended without errors (at > least, so it seems). >
I'm splitting your message up into two parts. This part will address whether your gcc46 build is, in fact, sane. I didn't have to do anything special on my own 10.7 system to get gcc46 to build. The gcc46 maintainer (cc'ed) would be the best one to debug the issue--you shouldn't ever have to edit system-provided headers. - -- Alexander Hansen, Ph.D. Fink User Liaison http://finkakh.wordpress.com/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5MU0sACgkQB8UpO3rKjQ9hlwCgkRIIFJ5dQq2u8O0J5ns2UrAo 97UAn0HeapF4rFASW2ucXcGhPQhP1j5y =P1+2 -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ 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
