Thread: Fwd: troubles compiling sac 101.3b on 64-bit linux (Fedora 11)

Started: 2010-02-22 23:43:55
Last activity: 2010-02-22 23:43:55
Topics: SAC Help
Hi Derek,

Over the last few days I have been attempting to move to a pure 64 bit
environment.  I am currently working with Ubuntu 9.10.  During the
process I have attempted to compile SAC as a pure 64 bit application.
I encountered a similar error to yours during the compile process.  I
have managed to successfully compile SAC by editing the following file
and commenting out the header code which defines getline on my system.

Comment out the following code from /usr/include/stdio.h
################ edit ################
extern _IO_ssize_t getline (char **__restrict __lineptr,
                           size_t *__restrict __n,
                           FILE *__restrict __stream) __wur;
################ edit ################

After the compilation I returned the stdio.h file to its original state.

I don't know if this will cause any problems with the functionality of
SAC, but, my results seem to be similar to utilizing the pre-comiled
SAC binaries up to this point.

Cheers!

--
Norman J. Heckscher
CODES
Private Bag 126
Hobart, 7001
AUSTRALIA



On 9 September 2009 03:07, Derek Schutt <derek.schutt<at>colostate.edu> wrote:
Hi,

I've been trying to install SAC on my Fedora 11 box (kernel
2.6.29.6-217.2.8.fc11.x86_64), but I've run into a compilation problem:

When I do a no-option configure, then type "make", I get:

make
Making all in libedit
make[1]: Entering directory `/usr/local/build/libedit'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/build/libedit'
Making all in utils
make[1]: Entering directory `/usr/local/build/utils'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/build/utils'
Making all in src
make[1]: Entering directory `/usr/local/build/src'
gcc -DHAVE_CONFIG_H -I. -I../../sac-101.3b/src -I../inc
-I../../sac-101.3b/inc -I../libedit/include  -c -o bbs/setbbv.o
../../sac-101.3b/src/bbs/setbbv.c
In file included from ../../sac-101.3b/src/bbs/setbbv.c:12:
../../sac-101.3b/inc/co.h:40: error: conflicting types for ‘getline’
/usr/include/stdio.h:653: note: previous declaration of ‘getline’ was here
make[1]: *** [bbs/setbbv.o] Error 1
make[1]: Leaving directory `/usr/local/build/src'
make: *** [all-recursive] Error 1

Any suggestions?

Also, by the way, the "Readme.buildsac" that comes with the source code
shows this as a configuration option:

--enable-matlab=/path/to/matlab     Where to find Matlab and its
libraries.  As of version 101.2, Matlab is only
available if requested.  See CHANGES (2008-04-01)
for further details.


I gather from looking at the configure script, that this flag should be
"--with-matlab=/path/to/matlab"

Right now, however, I'm trying just to get SAC to work without matlab.

Thanks.  I'm happy to e-mail the full output of "configure" if that would be
helpful.

-Derek Schutt


_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help




16:49:54 v.b3198453