Mac OS X 10.2 compile problem


[ Follow Ups ] [ Post Followup ] [ AFNI Message Board ] [ Search ]

Posted by Morgan Hough on October 26, 2002 at 02:28:33:

I am trying to make an AFNI fink package file but I am running into an error I don't understand. Thanks in advance.

-Morgan

Here's what I did and the error:

Mac OS X 10.2.1

install latest fink from CVS

drop in .cshrc (fink instructions)

fink install xfree86-base xfree86-rootless lesstif/OpenMotif nano netpbm etc

download afni_src

added -I/sw/include, -L/sw/lib, -PL/sw/lib to Makefile.macosx_10.2 per Poldrack instructions

modify Makefile.INCLUDE per Inati instructions

also changed afni_plugin.h and NLfit_model.h with
dlcompat/dlfcn.h -> /sw/include/dlfcn.h

sudo make totality

error

[user-112uidi:~/AFNI/src] mhough% cc -O2 -ffast-math -DDARWIN -DNO_GAMMA -Wcomment -Wformat -DUSE_TRACING -DHAVE_XDBE -no-cpp-precomp -c Ifile.c -I. -I/usr/include/sys -I/usr/X11R6/include -I/sw/include
Ifile.c:603: parse error before '*' token
Ifile.c:603: warning: data definition has no type or storage class
Ifile.c:665: parse error before '*' token
Ifile.c: In function `Opendir':
Ifile.c:673: warning: return makes pointer from integer without a cast
Ifile.c:676: warning: return makes pointer from integer without a cast
Ifile.c: In function `glob3':
Ifile.c:1028: `DIR' undeclared (first use in this function)
Ifile.c:1028: (Each undeclared identifier is reported only once
Ifile.c:1028: for each function it appears in.)
Ifile.c:1028: `dirp' undeclared (first use in this function)
Ifile.c:1056: warning: assignment makes pointer from integer without a cast
[user-112uidi:~/AFNI/src] mhough%




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ AFNI Message Board ] [ Search ]