SUMMARY: compiling INN1.5.1sec2 -

From: Marina Daniels (Marina.Daniels@ccd.tas.gov.au)
Date: Fri Aug 08 1997 - 00:45:06 CDT


please ignore the previous message, sorry for wasting your time.

I made it compile using the 'sun c' compiler rather than gcc. I have a feeling
gcc is no longer properly installed on my machine since the operating system
upgrade.

Marina

______________________________ Forward Header __________________________________
Subject: compiling INN1.5.1sec2 - AARRGGGHHH
Author: Marina Daniels at CCD
Date: 8/8/97 3:34 PM

I would appreciate any help on this (such as PATH or LD_LIBRARY_PATH settings or
whatever worked for you) as I am getting desparate after 2 days of trying to
make this stupid program compile, and am in danger of smashing this machine to
bits.

I am trying unsuccesfully to compile INN1.5.1sec2 for Solaris 2.5 (SUN5), using
GCC and I've set the new variables to indicate I want to build my own
snprintf. (I've read all the FAQ's repeatedly so please don't tell me to do
that)

***Is this happening to anybody else?

in snprintf directory, the vnprintf.c
function has a line which says include xstdio.h in that directory but
this seems to redefine variables in stdio.h from the gcc include
directory?
Why is this a problem? Normally warning messages aren't fatal when
compiling.
Should I have my LD_LIBRARY_PATH variable set to get around this, or
similar?

cd frontends ; make all ; cd ..
gcc -I../include -DSUNOS5 -O2 -c inews.c
(cd ../snprintf ; make install)
gcc -I../include -DSUNOS5 -O2 -Dsnprintf=__snprintf
-Dvsnprintf=__vsnprintf -c
 snprintf.c
gcc -I../include -DSUNOS5 -O2 -Dsnprintf=__snprintf
-Dvsnprintf=__vsnprintf -c
 vsnprintf.c
gcc -I../include -DSUNOS5 -O2 -Dsnprintf=__snprintf
-Dvsnprintf=__vsnprintf -c
 fvwrite.c
gcc -I../include -DSUNOS5 -O2 -Dsnprintf=__snprintf
-Dvsnprintf=__vsnprintf -c
 strtod.c
gcc -I../include -DSUNOS5 -O2 -Dsnprintf=__snprintf
-Dvsnprintf=__vsnprintf -c
 vfprintf.c
In file included from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2/include/
floatingpoint.h:33,
                 from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2/include/
math.h:206,
                 from vfprintf.c:202:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2/include/stdio.h:70:
warning: `
_IOFBF' redefined
xstdio.h:190: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2/include/stdio.h:71:
warning: `
_IOLBF' redefined
xstdio.h:191: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2/include/stdio.h:72:
warning: `
_IONBF' redefined

... lots more of the same....

xstdio.h:379: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2/include/stdio.h:276:
warning:
`fileno' redefined
xstdio.h:383: warning: this is the location of the previous definition
*** Error code 1

make: Fatal error: Command failed for target `vfprintf.o'
Current working directory /home/news/inn-1.5.1sec2/snprintf
*** Error code 1
make: Fatal error: Command failed for target `../libsnprintf.a'
Current working directory /home/news/inn-1.5.1sec2/frontends
*** Error code 1
make: Fatal error: Command failed for target `all'

*Thanks
Marina

(Marina.Daniels@ccd.tas.gov.au)



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:00 CDT