Login | Register
My pages Projects Community openCollabNet

Discussions > dev > stray '#' in program and environ undeclared

fsvs
Discussion topic

Back to topic list

stray '#' in program and environ undeclared

Author Alexander Skwar <alexanders dot mailinglists+nospam at gmail dot com>
Full name Alexander Skwar <alexanders dot mailinglists+nospam at gmail dot com>
Date 2007-12-07 03:31:11 PST
Message Hello once more...

Now I'm getting this compile error:

     CC export.c
     CC fsvs.c
fsvs.c: In function 'Version':
fsvs.c:539: error: stray '#' in program
fsvs.c:539: error: called object '"compile options:\012\011 HAVE_LOCALES=1 AC_CV_C_UINT32_T=uint32_t HAVE_STRUCT_STAT_ST_MTIM=1 O_DIRECTORY==(0)="' is not a function
fsvs.c:544: error: syntax error before string constant
fsvs.c: In function 'main':
fsvs.c:852: error: 'environ' undeclared (first use in this function)
fsvs.c:852: error: (Each undeclared identifier is reported only once
fsvs.c:852: error: for each function it appears in.)
gmake[1]: *** [fsvs.o] Error 1
gmake: *** [default-target] Error 2




line 539 is the line with STRINGIFY:
#ifdef O_DIRECTORY
                                STRINGIFY(O_DIRECTOR​Y=)#O_DIRECTORY
#endif



--(askwar@winds06)-(​98/pts/4)-(12:30:35/​2007-12-07)--
--($:~/Source/fsvs)-- /opt/csw/gcc4/bin/gcc --version
gcc (GCC) 4.0.2
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

--(askwar@winds06)-(​99/pts/4)-(12:30:39/​2007-12-07)--
--($:~/Source/fsvs)-- /opt/csw/gcc4/bin/cpp --version
cpp (GCC) 4.0.2
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

--(askwar@winds06)-(​100/pts/4)-(12:30:44​/2007-12-07)--
--($:~/Source/fsvs)-- /opt/csw/bin/gmake --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for sparc-sun-solaris2.8

Bye,
Alexander

« Previous message in topic | 1 of 5 | Next message in topic »

Messages

Show all messages in topic

stray '#' in program and environ undeclared Alexander Skwar <alexanders dot mailinglists+nospam at gmail dot com> Alexander Skwar <alexanders dot mailinglists+nospam at gmail dot com> 2007-12-07 03:31:11 PST
     Re: stray '#' in program and environ undeclared pmarek P.Marek 2007-12-07 03:58:37 PST
         Re: stray '#' in program and environ undeclared Alexander Skwar <alexanders dot mailinglists+nospam at gmail dot com> Alexander Skwar <alexanders dot mailinglists+nospam at gmail dot com> 2007-12-07 04:08:19 PST
             Re: stray '#' in program and environ undeclared pmarek P.Marek 2007-12-07 04:31:23 PST
                 Re: stray '#' in program and environ undeclared Alexander Skwar <alexanders dot mailinglists+nospam at gmail dot com> Alexander Skwar <alexanders dot mailinglists+nospam at gmail dot com> 2007-12-07 04:39:56 PST
Messages per page: