Healpix 2.15a compilation error

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
daan meerburg
Posts: 27
Joined: November 20 2007
Affiliation: Cambridge

Healpix 2.15a compilation error

Post by daan meerburg » September 13 2010

Hi there,
I am trying to install the latest version of Healpix (v2.15a) on a Macbook Pro running Snow Leopard v10.6.4. However I run into a, seemingly common, 'undefined symbol' issue:

gfortran -O3 -I/usr/local/src/Healpix_2.15a/include -DGFORTRAN -fno-second-underscore -o /usr/local/src/Healpix_2.15a/bin/anafast anafast.o -L/usr/local/src/Healpix_2.15a/lib -L/usr/local/lib -lhealpix -lhpxgif -lcfitsio
Undefined symbols:
"_cgetenvironment_", referenced from:
___extension__getenvironment in libhealpix.a(extension.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [/usr/local/src/Healpix_2.15a/bin/anafast] Error 1
make: *** [anafast] Error 2

I have not found any specific mention of this error on the web or on the healpix bug forum. The installation GUI mentions possibly related issues with 64 bit architecture as well as CFITSIO fortran wrappers, but I have tried all those i.e. I have downloaded the latest CFITSIO (v 3.25) and configured using

>./configure FC='gcc -m64'

I used the same optimization flag in the healpix configuration run.

Currently I have healpix 2.01 running on the old cfitsio libs and all works fine. I also compared the makefile in my old healpix with the new one, and I could not find any notable differences.

I hope somebody has an idea what might be the problem here.
Help is greatly appreciated
kind regards
daan meerburg

daan meerburg
Posts: 27
Joined: November 20 2007
Affiliation: Cambridge

Healpix 2.15a compilation error

Post by daan meerburg » September 14 2010

oops.
I ran trough my command log and found that I mistakingly
wrote

>./configure F='gcc -m64'

so cfitsio was not compiled correctly..
after reconfiguring and compiling cfitsio everything seems to work now.

Post Reply