[csw-maintainers] Fwd: /usr/bin/env: No such file or directory

Peter FELECAN pfelecan at opencsw.org
Mon Jul 29 09:41:23 CEST 2013


"Maciej (Matchek) Bliziński" <maciej at opencsw.org> writes:

> 2013/7/29 rupert THURNER <rupert at opencsw.org>:
>> i found mongodb, and i tried to convert the Makefile to call scons
>> with the correct options. currently i am stuck at:
>>
>> scons: Building targets ...
>> cc -o context.o -c -std=c89 -Wdeclaration-after-statement
>> -Wmissing-prototypes -O2 -mt -DNDEBUG -DSOLARIS2=9
>> -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I.
>> -I/opt/csw/include -I/opt/csw/bdb48/include -I/usr/include context.c
>> cc: Warning: illegal option -d=c89
>> cc: illegal option -Wdeclaration-after-statement
>> scons: *** [context.o] Error 1
>>
>> SConstruct contains this in the lines of:
>> if sys.platform != 'win32':
>>   env.Append(CFLAGS='-std=c89')
>>   env.Append(CCFLAGS=[
>>                '-Wdeclaration-after-statement',
>>                '-Wmissing-prototypes',
>>              ])
>
> Looks like the build system assumes without testing that the compiler
> supports the listed flags. You have three options:
>
> 1. Patch the libserf build system so that it does not unconditionally add
> these flags to compiler invocations
> 2. Change the compiler to one that supports these flags
> 3. Talk to upstream about modifying the libserf build system to
> support our environment
>
> The third option usually requires the most effort, but is the best one
> in the long run.

And the second one is the more adequate in our context. I still don't
get why people bother to use SUN Studio. Because there is a choice?
-- 
Peter


More information about the maintainers mailing list