Compiling mod files on OS X 10.4.11

Post Reply
fb_usa
Posts: 1
Joined: Tue Mar 25, 2008 1:32 pm

Compiling mod files on OS X 10.4.11

Post by fb_usa »

I cannot compile mod files on my macbook. I have updated GCC, Neuron, and the X11 SDKs, but I still receiving the following error:

Creating umac directory for .o files.

/Users/dpk8/Desktop/Math_478/Neuron/patdemo
ca.mod cad.mod kca.mod km.mod kv.mod na.mod
ca.mod cad.mod kca.mod km.mod kv.mod na.mod
"/Applications/NEURON-6.1/nrn/umac/bin/nocmodl" ca
Translating ca.mod into ca.c
"/Applications/NEURON-6.1/nrn/share/nrn/libtool" --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I"/Applications/NEURON-6.1/nrn/include/nrn" -I"/Applications/NEURON-6.1/nrn/umac/lib" -arch ppc -arch i386 -c -o ca.lo ca.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I.. -I/Applications/NEURON-6.1/nrn/include/nrn -I/Applications/NEURON-6.1/nrn/umac/lib -arch ppc -arch i386 -c ca.c -fno-common -DPIC -o .libs/ca.o
ca.c:3:19: error: stdio.h: No such file or directory
ca.c:4:18: error: math.h: No such file or directory
In file included from /Applications/NEURON-6.1/nrn/include/nrn/section.h:36,
from ca.c:9:
/Applications/NEURON-6.1/nrn/include/nrn/hocdec.h:8:20: error: string.h: No such file or directory
ca.c:3:19: error: stdio.h: No such file or directory
ca.c:4:18: error: math.h: No such file or directory
In file included from /Applications/NEURON-6.1/nrn/include/nrn/section.h:36,
from ca.c:9:
/Applications/NEURON-6.1/nrn/include/nrn/hocdec.h:8:20: error: string.h: No such file or directory
ca.c: In function 'rates':
ca.c:325: warning: incompatible implicit declaration of built-in function 'pow'
ca.c: In function 'efun_ca':
ca.c:346: warning: incompatible implicit declaration of built-in function 'fabs'
ca.c: In function 'nrn_state':
ca.c:515: warning: incompatible implicit declaration of built-in function 'fprintf'
ca.c:515: error: 'stderr' undeclared (first use in this function)
ca.c:515: error: (Each undeclared identifier is reported only once
ca.c:515: error: for each function it appears in.)
ca.c: In function 'rates':
ca.c:325: warning: incompatible implicit declaration of built-in function 'pow'
ca.c: In function 'efun_ca':
ca.c:346: warning: incompatible implicit declaration of built-in function 'fabs'
ca.c: In function 'nrn_state':
ca.c:515: warning: incompatible implicit declaration of built-in function 'fprintf'
ca.c:515: error: 'stderr' undeclared (first use in this function)
ca.c:515: error: (Each undeclared identifier is reported only once
ca.c:515: error: for each function it appears in.)
lipo: can't figure out the architecture type of: /var/tmp//ccaq24nf.out
make: *** [ca.lo] Error 1
Press 'return' key to close

Any ideas of what I should do?
hines
Site Admin
Posts: 1600
Joined: Wed May 18, 2005 3:32 pm

Post by hines »

ca.c:3:19: error: stdio.h: No such file or directory
That is pretty definitive that the xcode development tools are not installed. Are you missing /usr/include? Try a full install of the xcode development environment.
Post Reply