On 4/30/12 7:57 AM, spandre wrote:
> I am trying to install CERNLIB with the command "sudo fink install
> cernlib"  on Mac OS X 10.6.8 but I get the following error:
> 
> sw64/src/fink.build/gcc46-4.6.3-1000/darwin_objdir/./prev-gcc/xgcc
> -B/sw64/src/fink.build/gcc46-4.6.3-1000/darwin_objdir/./prev-gcc/
> -B/sw64/lib/gcc4.6/x86_64-apple-darwin10.8.0/bin/
> -B/sw64/lib/gcc4.6/x86_64-apple-darwin10.8.0/bin/
> -B/sw64/lib/gcc4.6/x86_64-apple-darwin10.8.0/lib/ -isystem
> /sw64/lib/gcc4.6/x86_64-apple-darwin10.8.0/include -isystem
> /sw64/lib/gcc4.6/x86_64-apple-darwin10.8.0/sys-include    -c 
> -DIN_GCC_FRONTEND -g -O2 -mdynamic-no-pic -gtoggle -DIN_GCC   -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.3/gcc
> -I../../gcc-4.6.3/gcc/fortran -I../../gcc-4.6.3/gcc/../include
> -I../../gcc-4.6.3/gcc/../libcpp/include -I/sw64/include -I/sw64/include 
> -I../../gcc-4.6.3/gcc/../libdecnumber
> -I../../gcc-4.6.3/gcc/../libdecnumber/dpd -I../libdecnumber
> -I/sw64/include  -I/sw64/include -DCLOOG_INT_GMP -DCLOOG_ORG
> -I/sw64/include ../../gcc-4.6.3/gcc/fortran/module.c -o fortran/module.o
> ../../gcc-4.6.3/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 /tmp/fink.PRScy failed, exit code 2
> Removing runtime build-lock...
> Removing build-lock package...
> /sw64/bin/dpkg-lockwait -r fink-buildlock-gcc46-4.6.3-1000
> (Reading database ... 9216 files and directories currently installed.)
> Removing fink-buildlock-gcc46-4.6.3-1000 ...
> Failed: phase compiling: gcc46-4.6.3-1000 failed
> 
> 
> Package manager version: 0.32.6
> Distribution version: selfupdate-rsync Mon Apr 30 15:57:52 2012, 10.6,
> x86_64
> Trees: local/main stable/main stable/crypto unstable/main unstable/crypto
> Xcode: 3.2.5
> Max. Fink build jobs: 1
> 
> What shall I do?
> thanks
> Gloria
> 
> -- 
> Dr. Gloria Spandre
> E-Mail:      [email protected]
> Business phone:    +39 050 2214382
> Fax number:        +39 050 2214460
> Business address:
> Istituto nazionale di Fisica Nucleare - Sez. di Pisa
> Largo Bruno Pontecorvo, 3
> I-56127 Pisa
> 
> 
> 

Your problem is with gcc46, not cernlib, and the issue has been
discussed before.

The error looks like https://trac.macports.org/ticket/24541, and that
was due to the presence of a /usr/include/malloc.h ->
/usr/include/malloc/malloc.h symlink.

If you have that symlink, get rid of it.
-- 
Alexander Hansen, Ph.D.
Fink User Liaison
http://finkakh.wordpress.com/2012/02/21/got-job/

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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