hi,

fyi, gregs response. somebody of you could help here as well?

rupert.



---------- Forwarded message ----------
From: Greg Stein <gst...@gmail.com>
Date: Mon, Jul 29, 2013 at 10:26 AM
Subject: Re: [serf-dev] building on solaris
To: serf-...@googlegroups.com, rupert.thur...@gmail.com


On Mon, Jul 29, 2013 at 4:03 AM, rupert.thur...@gmail.com
<rupert.thur...@gmail.com> wrote:
> hi, i m helping to maintain serf for the opencsw solaris build:
> http://www.opencsw.org/packages/CSWlibserf1-0/

Geez, I hate APR. Looking at that package dependency list... there is
no reason that trying to use serf should require LDAP and BDB. Gah!!!

> now than the build changed to scons, i have some difficulties to get it to
> compile again with an error:
>
>>> 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',
>>>              ])
>
> we use a Makefile based build system called mgar, for serf it looks like
> this:
> http://sourceforge.net/apps/trac/gar/browser/csw/mgar/pkg/libserf/trunk/Makefile
>
> as scons dummy user i am a little unsure how to either convince it to use
> gcc
> $ which gcc
> /opt/csw/bin/gcc
>
> or to convince it to use the compile flags of the solaris default compiler.

These kinds of refinements are just what we're looking for. I had
access to a sunos5 box, and it (theoretically) built there. But that
was a long while back. I'm trying to get back on that box, and will
refine the SConstruct to build there.

My hope would be to build on the native cc. If somebody tells it to
use gcc... that will likely be a bit more work.

We'll be releasing a 1.3.1 soon, and any suggestions/patches you may
have will be helpful. I'll try to get the build working on my solaris
box, and hope that it works for you too.

Thanks,
-g
_______________________________________________
maintainers mailing list
maintainers@lists.opencsw.org
https://lists.opencsw.org/mailman/listinfo/maintainers
.:: This mailing list's archive is public. ::.

Reply via email to