Thread View: news.software.nntp
43 messages
43 total messages
Started by Eric Edwards
Sat, 18 Feb 2006 06:34
INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Eric Edwards
Date: Sat, 18 Feb 2006 06:34
Date: Sat, 18 Feb 2006 06:34
25 lines
1968 bytes
1968 bytes
# gmake
cd include && gmake all
gmake[1]: Entering directory `/local/app/inn-2.4.2/include'
../support/mksystem /usr/bin/awk config.h > inn/system.h
../support/mkversion '2.4.2' '' > inn/version.h
gmake[1]: Leaving directory `/local/app/inn-2.4.2/include'
cd lib && gmake all
gmake[1]: Entering directory `/local/app/inn-2.4.2/lib'
gcc -g -O2 -I../include -c setproctitle.c
In file included from ../include/inn/defines.h:50,
from ../include/config.h:20,
from setproctitle.c:15:
/usr/include/stdbool.h:42:2: #error "Use of <stdbool.h> is valid only in a c99 compilation environment."
In file included from setproctitle.c:19:
../include/inn/messages.h:73: error: syntax error before "bool"
gmake[1]: *** [setproctitle.o] Error 1
gmake[1]: Leaving directory `/local/app/inn-2.4.2/lib'
gmake: *** [all-lib] Error 2
Suggestions? It seems to compile ok with the ancient gcc-2.95.2 install
carried over from the old sun4m/Sol9 machine.
--
Photos and travelogues from Africa and Southeast Asia: http://www.exile.org
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Russ Allbery
Date: Sat, 18 Feb 2006 06:38
Date: Sat, 18 Feb 2006 06:38
32 lines
2492 bytes
2492 bytes
In news.software.nntp, Eric Edwards <ese002@news9.exile.org> writes:
> # gmake
> cd include && gmake all
> gmake[1]: Entering directory `/local/app/inn-2.4.2/include'
> ../support/mksystem /usr/bin/awk config.h > inn/system.h
> ../support/mkversion '2.4.2' '' > inn/version.h
> gmake[1]: Leaving directory `/local/app/inn-2.4.2/include'
> cd lib && gmake all
> gmake[1]: Entering directory `/local/app/inn-2.4.2/lib'
> gcc -g -O2 -I../include -c setproctitle.c
> In file included from ../include/inn/defines.h:50,
> from ../include/config.h:20,
> from setproctitle.c:15:
> /usr/include/stdbool.h:42:2: #error "Use of <stdbool.h> is valid only in a c99 compilation environment."
> In file included from setproctitle.c:19:
> ../include/inn/messages.h:73: error: syntax error before "bool"
Wow, it sure sounds like Solaris 10 did something hideously stupid with
their headers. I don't have a Solaris 10 system around to look at; what
sort of magic is one supposed to use to convince Solaris that when I ask
for a definition of bool, I really want a bool?
It may be that this is a missing fixheaders rule in GCC. (It may even be
one that's added in later versions.)
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Ian Collins
Date: Sat, 18 Feb 2006 08:10
Date: Sat, 18 Feb 2006 08:10
38 lines
3504 bytes
3504 bytes
Russ Allbery wrote: > In news.software.nntp, Eric Edwards <ese002@news9.exile.org> writes: > > >># gmake >>cd include && gmake all >>gmake[1]: Entering directory `/local/app/inn-2.4.2/include' >>../support/mksystem /usr/bin/awk config.h > inn/system.h >>../support/mkversion '2.4.2' '' > inn/version.h >>gmake[1]: Leaving directory `/local/app/inn-2.4.2/include' >>cd lib && gmake all >>gmake[1]: Entering directory `/local/app/inn-2.4.2/lib' >>gcc -g -O2 -I../include -c setproctitle.c >>In file included from ../include/inn/defines.h:50, >> from ../include/config.h:20, >> from setproctitle.c:15: >>/usr/include/stdbool.h:42:2: #error "Use of <stdbool.h> is valid only in a c99 compilation environment." >>In file included from setproctitle.c:19: >>../include/inn/messages.h:73: error: syntax error before "bool" > > > Wow, it sure sounds like Solaris 10 did something hideously stupid with > their headers. I don't have a Solaris 10 system around to look at; what > sort of magic is one supposed to use to convince Solaris that when I ask > for a definition of bool, I really want a bool? > The comment in the file says: * Included for alignment with the ISO/IEC 9899:1999 standard. The * contents of this header are only visible when using a c99 * compiler, otherwise inclusion of this header will result in a * forced compilation failure. gcc isn't a C99 compiler. -- Ian Collins.
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Russ Allbery
Date: Sat, 18 Feb 2006 08:30
Date: Sat, 18 Feb 2006 08:30
37 lines
2683 bytes
2683 bytes
In news.software.nntp, Ian Collins <ian-news@hotmail.com> writes:
> Russ Allbery wrote:
>> Wow, it sure sounds like Solaris 10 did something hideously stupid with
>> their headers. I don't have a Solaris 10 system around to look at;
>> what sort of magic is one supposed to use to convince Solaris that when
>> I ask for a definition of bool, I really want a bool?
> The comment in the file says:
> * Included for alignment with the ISO/IEC 9899:1999 standard. The
> * contents of this header are only visible when using a c99
> * compiler, otherwise inclusion of this header will result in a
> * forced compilation failure.
> gcc isn't a C99 compiler.
What the heck was the point of that?
Although really, the more interesting question is why gcc's own stdbool.h
is not overriding the Solaris one; at least on Linux, gcc ships its own.
Regardless, I don't consider this an INN bug. It's either a Solaris bug
or a gcc bug. If someone can give me a good workaround, I'm happy to use
it, but gcc and Solaris should really sort out their differences.
The development trunk of INN uses Autoconf 2.59 and AC_HEADER_STDBOOL,
which probably does something better, but the current release version of
INN is still trying to support Autoconf 2.13 since switching fully to 2.59
required a bunch of fiddling.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Torsten Kirschner
Date: Sat, 18 Feb 2006 12:36
Date: Sat, 18 Feb 2006 12:36
24 lines
1873 bytes
1873 bytes
On Sat, 18 Feb 2006 06:34:44 +0000, Eric Edwards wrote: > # gmake [...] > gcc -g -O2 -I../include -c setproctitle.c > In file included from ../include/inn/defines.h:50, > from ../include/config.h:20, > from setproctitle.c:15: > /usr/include/stdbool.h:42:2: #error "Use of <stdbool.h> is valid only in a c99 compilation environment." [...] > Suggestions? It seems to compile ok with the ancient gcc-2.95.2 install > carried over from the old sun4m/Sol9 machine. It compiles out of the box with Sun's (free) compiler: torstenk@u60 ~/src/c/inn-2.4.2 $ CC=cc ./configure --prefix=/opt/trk ... torstenk@u60 ~/src/c/inn-2.4.2 $ make ... Using sample version of subscriptions date >config torstenk@u60 ~/src/c/inn-2.4.2 $
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Gary L. Burnore
Date: Sat, 18 Feb 2006 18:14
Date: Sat, 18 Feb 2006 18:14
39 lines
3093 bytes
3093 bytes
On Sat, 18 Feb 2006 06:34:44 +0000 (UTC), ese002@news9.exile.org (Eric
Edwards) wrote:
># gmake
>cd include && gmake all
>gmake[1]: Entering directory `/local/app/inn-2.4.2/include'
>../support/mksystem /usr/bin/awk config.h > inn/system.h
>../support/mkversion '2.4.2' '' > inn/version.h
>gmake[1]: Leaving directory `/local/app/inn-2.4.2/include'
>cd lib && gmake all
>gmake[1]: Entering directory `/local/app/inn-2.4.2/lib'
>gcc -g -O2 -I../include -c setproctitle.c
>In file included from ../include/inn/defines.h:50,
> from ../include/config.h:20,
> from setproctitle.c:15:
>/usr/include/stdbool.h:42:2: #error "Use of <stdbool.h> is valid only in a c99 compilation environment."
>In file included from setproctitle.c:19:
>../include/inn/messages.h:73: error: syntax error before "bool"
>gmake[1]: *** [setproctitle.o] Error 1
>gmake[1]: Leaving directory `/local/app/inn-2.4.2/lib'
>gmake: *** [all-lib] Error 2
>
>Suggestions? It seems to compile ok with the ancient gcc-2.95.2 install
>carried over from the old sun4m/Sol9 machine.
Check to be sure that the directory holding the gnu linker is ahead of
/usr/ccs/bin in your path. (Ususally, /usr/local/bin)
--
gburnore at DataBasix dot Com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
Official .sig, Accept no substitutes. | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ 0 1 7 2 3 / Ý³Þ 3 7 4 9 3 0 Û³
Black Helicopter Repair Services, Ltd.| Official Proof of Purchase
===========================================================================
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Chris Ridd
Date: Sat, 18 Feb 2006 19:46
Date: Sat, 18 Feb 2006 19:46
45 lines
2862 bytes
2862 bytes
On 18/2/06 6:14, in article dt7oad$g31$1@blackhelicopter.databasix.com, "Gary L. Burnore" <gburnore@databasix.com> wrote: > On Sat, 18 Feb 2006 06:34:44 +0000 (UTC), ese002@news9.exile.org (Eric > Edwards) wrote: > >> # gmake >> cd include && gmake all >> gmake[1]: Entering directory `/local/app/inn-2.4.2/include' >> ../support/mksystem /usr/bin/awk config.h > inn/system.h >> ../support/mkversion '2.4.2' '' > inn/version.h >> gmake[1]: Leaving directory `/local/app/inn-2.4.2/include' >> cd lib && gmake all >> gmake[1]: Entering directory `/local/app/inn-2.4.2/lib' >> gcc -g -O2 -I../include -c setproctitle.c >> In file included from ../include/inn/defines.h:50, >> from ../include/config.h:20, >> from setproctitle.c:15: >> /usr/include/stdbool.h:42:2: #error "Use of <stdbool.h> is valid only in a >> c99 compilation environment." >> In file included from setproctitle.c:19: >> ../include/inn/messages.h:73: error: syntax error before "bool" >> gmake[1]: *** [setproctitle.o] Error 1 >> gmake[1]: Leaving directory `/local/app/inn-2.4.2/lib' >> gmake: *** [all-lib] Error 2 >> >> Suggestions? It seems to compile ok with the ancient gcc-2.95.2 install >> carried over from the old sun4m/Sol9 machine. > > Check to be sure that the directory holding the gnu linker is ahead of > /usr/ccs/bin in your path. (Ususally, /usr/local/bin) How would that help a compiler/preprocessor problem?? I was also under the impression that on Solaris you should always link with Sun's linker rather than a GNU one, so trying to arrange for GNU ld to get used seems incorrect. The current Solaris 2 FAQ concurs: <http://www.science.uva.nl/pub/solaris/solaris2/Q6.1.html> Cheers, Chris
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Gary L. Burnore
Date: Sat, 18 Feb 2006 21:15
Date: Sat, 18 Feb 2006 21:15
69 lines
3949 bytes
3949 bytes
On Sat, 18 Feb 2006 19:46:03 +0000, Chris Ridd <chrisridd@mac.com>
wrote:
>On 18/2/06 6:14, in article dt7oad$g31$1@blackhelicopter.databasix.com,
>"Gary L. Burnore" <gburnore@databasix.com> wrote:
>
>> On Sat, 18 Feb 2006 06:34:44 +0000 (UTC), ese002@news9.exile.org (Eric
>> Edwards) wrote:
>>
>>> # gmake
>>> cd include && gmake all
>>> gmake[1]: Entering directory `/local/app/inn-2.4.2/include'
>>> ../support/mksystem /usr/bin/awk config.h > inn/system.h
>>> ../support/mkversion '2.4.2' '' > inn/version.h
>>> gmake[1]: Leaving directory `/local/app/inn-2.4.2/include'
>>> cd lib && gmake all
>>> gmake[1]: Entering directory `/local/app/inn-2.4.2/lib'
>>> gcc -g -O2 -I../include -c setproctitle.c
>>> In file included from ../include/inn/defines.h:50,
>>> from ../include/config.h:20,
>>> from setproctitle.c:15:
>>> /usr/include/stdbool.h:42:2: #error "Use of <stdbool.h> is valid only in a
>>> c99 compilation environment."
>>> In file included from setproctitle.c:19:
>>> ../include/inn/messages.h:73: error: syntax error before "bool"
>>> gmake[1]: *** [setproctitle.o] Error 1
>>> gmake[1]: Leaving directory `/local/app/inn-2.4.2/lib'
>>> gmake: *** [all-lib] Error 2
>>>
>>> Suggestions? It seems to compile ok with the ancient gcc-2.95.2 install
>>> carried over from the old sun4m/Sol9 machine.
>>
>> Check to be sure that the directory holding the gnu linker is ahead of
>> /usr/ccs/bin in your path. (Ususally, /usr/local/bin)
>
>How would that help a compiler/preprocessor problem??
Just saying what worked for me.
>I was also under the impression that on Solaris you should always link with
>Sun's linker rather than a GNU one,
Not necessarily. Using all GNU works.
I know what works on Solaris. I know INN compiled totally in GNU
works.
> so trying to arrange for GNU ld to get
>used seems incorrect. The current Solaris 2 FAQ concurs:
>
><http://www.science.uva.nl/pub/solaris/solaris2/Q6.1.html>
THE? No. Maybe one of many.
--
gburnore at DataBasix dot Com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
Official .sig, Accept no substitutes. | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ 0 1 7 2 3 / Ý³Þ 3 7 4 9 3 0 Û³
Black Helicopter Repair Services, Ltd.| Official Proof of Purchase
===========================================================================
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Eric Edwards
Date: Sun, 19 Feb 2006 20:00
Date: Sun, 19 Feb 2006 20:00
33 lines
2519 bytes
2519 bytes
On Fri, 17 Feb 2006 22:38:22 -0800, Russ Allbery <rra@stanford.edu> wrote: >In news.software.nntp, Eric Edwards <ese002@news9.exile.org> writes: > >> # gmake >> cd include && gmake all >> gmake[1]: Entering directory `/local/app/inn-2.4.2/include' >> ../support/mksystem /usr/bin/awk config.h > inn/system.h >> ../support/mkversion '2.4.2' '' > inn/version.h >> gmake[1]: Leaving directory `/local/app/inn-2.4.2/include' >> cd lib && gmake all >> gmake[1]: Entering directory `/local/app/inn-2.4.2/lib' >> gcc -g -O2 -I../include -c setproctitle.c >> In file included from ../include/inn/defines.h:50, >> from ../include/config.h:20, >> from setproctitle.c:15: >> /usr/include/stdbool.h:42:2: #error "Use of <stdbool.h> is valid only in a c99 compilation environment." >> In file included from setproctitle.c:19: >> ../include/inn/messages.h:73: error: syntax error before "bool" > >Wow, it sure sounds like Solaris 10 did something hideously stupid with >their headers. I don't have a Solaris 10 system around to look at; what >sort of magic is one supposed to use to convince Solaris that when I ask >for a definition of bool, I really want a bool? > >It may be that this is a missing fixheaders rule in GCC. (It may even be >one that's added in later versions.) Unlike the older gcc that I build from source, the version shipped with Solaris 10 seems to use the system headers unmodified. -- Photos and travelogues from Africa and Southeast Asia: http://www.exile.org
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Dave Uhring
Date: Sun, 19 Feb 2006 20:22
Date: Sun, 19 Feb 2006 20:22
46 lines
3044 bytes
3044 bytes
On Sun, 19 Feb 2006 20:00:41 +0000, Eric Edwards wrote: > On Fri, 17 Feb 2006 22:38:22 -0800, Russ Allbery <rra@stanford.edu> wrote: >>Wow, it sure sounds like Solaris 10 did something hideously stupid with >>their headers. I don't have a Solaris 10 system around to look at; what >>sort of magic is one supposed to use to convince Solaris that when I ask >>for a definition of bool, I really want a bool? >> >>It may be that this is a missing fixheaders rule in GCC. (It may even be >>one that's added in later versions.) > > Unlike the older gcc that I build from source, the version shipped with > Solaris 10 seems to use the system headers unmodified. Solaris 10 03/05 shipped with gcc-3.4.3, not gcc-3.4.2. Sun Microsystems Inc. SunOS 5.10 Generic January 2005 [/]# gcc -v Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared Thread model: posix gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) INN-2.4.2 builds without error after executing the compile script with no additional arguments. [inn-2.4.2]# gmake cd include && gmake all gmake[1]: Entering directory `/tmp/inn-2.4.2/include' ../support/mksystem /usr/bin/awk config.h > inn/system.h ../support/mkversion '2.4.2' '' > inn/version.h gmake[1]: Leaving directory `/tmp/inn-2.4.2/include' cd lib && gmake all gmake[1]: Entering directory `/tmp/inn-2.4.2/lib' gcc -O2 -pipe -march=pentium -I../include -c setproctitle.c gcc -O2 -pipe -march=pentium -I../include -c buffer.c gcc -O2 -pipe -march=pentium -I../include -c cleanfrom.c gcc -O2 -pipe -march=pentium -I../include -c clientactive.c gcc -O2 -pipe -march=pentium -I../include -c clientlib.c .....
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Bill Davidsen
Date: Mon, 20 Feb 2006 21:53
Date: Mon, 20 Feb 2006 21:53
52 lines
3828 bytes
3828 bytes
Russ Allbery wrote: > In news.software.nntp, Ian Collins <ian-news@hotmail.com> writes: >> Russ Allbery wrote: > >>> Wow, it sure sounds like Solaris 10 did something hideously stupid with >>> their headers. I don't have a Solaris 10 system around to look at; >>> what sort of magic is one supposed to use to convince Solaris that when >>> I ask for a definition of bool, I really want a bool? > >> The comment in the file says: > >> * Included for alignment with the ISO/IEC 9899:1999 standard. The >> * contents of this header are only visible when using a c99 >> * compiler, otherwise inclusion of this header will result in a >> * forced compilation failure. > >> gcc isn't a C99 compiler. > > What the heck was the point of that? I thought the comment was pretty clear, the point is to keep you from building a non-portable software package. The real question is why that header is being included... > > Although really, the more interesting question is why gcc's own stdbool.h > is not overriding the Solaris one; at least on Linux, gcc ships its own. That makes it work, but it won't improve the portability. > > Regardless, I don't consider this an INN bug. It's either a Solaris bug > or a gcc bug. If someone can give me a good workaround, I'm happy to use > it, but gcc and Solaris should really sort out their differences. If gcc lacks a c99 environment switch (haven't looked at the new features) then the best thing is to not try to use the feature, and the easy thing is to get a copy of the header and add a -I to include that instead of the system header. > > The development trunk of INN uses Autoconf 2.59 and AC_HEADER_STDBOOL, > which probably does something better, but the current release version of > INN is still trying to support Autoconf 2.13 since switching fully to 2.59 > required a bunch of fiddling. > My guess is that the header really shouldn't be included in this case, but I haven't researched it and there may be some reason why it's okay to use the header anyway. -- bill davidsen SBC/Prodigy Yorktown Heights NY data center http://newsgroups.news.prodigy.com
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Russ Allbery
Date: Mon, 20 Feb 2006 22:09
Date: Mon, 20 Feb 2006 22:09
64 lines
3920 bytes
3920 bytes
In news.software.nntp, Bill Davidsen <davidsen@deathstar.prodigy.com> writes:
> Russ Allbery wrote:
>> In news.software.nntp, Ian Collins <ian-news@hotmail.com> writes:
>>> The comment in the file says:
>>> * Included for alignment with the ISO/IEC 9899:1999 standard. The
>>> * contents of this header are only visible when using a c99
>>> * compiler, otherwise inclusion of this header will result in a
>>> * forced compilation failure.
>>> gcc isn't a C99 compiler.
>> What the heck was the point of that?
> I thought the comment was pretty clear, the point is to keep you from
> building a non-portable software package. The real question is why that
> header is being included...
For the same reason why I include any other header file: I want to use
the C language feature defined in that header file.
My guess is that Solaris is trying to protect the user against trying to
use bool with a compiler that doesn't support _Bool, but that's an odd way
of doing it. Why not just let the compilation fail later? In this
attempt to protect against an entirely theoretical problem, they've
introduced problems with an actual usage.
I'm sure that the Autoconf 2.59 AC_HEADER_BOOL macro probably handles all
of this, so the real solution would be to just switch Autoconfs. I'm not
sure I really want to do that for the STABLE branch, though. (The best
solution would be for me to find the time to get 2.5.0 released.)
> If gcc lacks a c99 environment switch (haven't looked at the new
> features)
It has one, but setting standards environments in gcc is always
problematic since it usually enables standards namespaces and other
undesirable features. Then you get lost in a twisty little maze of
feature test macros, none of which work quite right.
> then the best thing is to not try to use the feature,
No, INN uses bool extensively and I'm not going to stop. The general
development philosophy of INN is to use the latest standard and then patch
things up for older standards via Autoconf, and that generally works quite
well.
> and the easy thing is to get a copy of the header and add a -I to
> include that instead of the system header.
Um, no. That's a really bad idea.
I suppose I need to write an Autoconf probe that does more than just test
for the existence of the header file. Or switch Autoconf implementations.
Bleh. I suppose I could just copy the AC_HEADER_BOOL macro from a later
Autoconf.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Ian Collins
Date: Tue, 21 Feb 2006 01:21
Date: Tue, 21 Feb 2006 01:21
12 lines
2470 bytes
2470 bytes
Russ Allbery wrote: > > I suppose I need to write an Autoconf probe that does more than just test > for the existence of the header file. Or switch Autoconf implementations. > Bleh. I suppose I could just copy the AC_HEADER_BOOL macro from a later > Autoconf. > Why not just build it with Sun's compiler, or the supplied gcc? -- Ian Collins.
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Russ Allbery
Date: Tue, 21 Feb 2006 01:24
Date: Tue, 21 Feb 2006 01:24
22 lines
2298 bytes
2298 bytes
In news.software.nntp, Ian Collins <ian-news@hotmail.com> writes:
> Russ Allbery wrote:
>> I suppose I need to write an Autoconf probe that does more than just
>> test for the existence of the header file. Or switch Autoconf
>> implementations. Bleh. I suppose I could just copy the AC_HEADER_BOOL
>> macro from a later Autoconf.
> Why not just build it with Sun's compiler, or the supplied gcc?
Well, I personally don't build INN on Solaris 10 at all. But so far as
possible, I've always tried to let people build INN with any reasonable
compiler and platform combination that I have some concept of how to
support. It just seems like basic politeness. People may want a newer
version of gcc than Sun ships, for example.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Eric Edwards
Date: Tue, 21 Feb 2006 02:58
Date: Tue, 21 Feb 2006 02:58
47 lines
3667 bytes
3667 bytes
On Sun, 19 Feb 2006 14:22:13 -0600, Dave Uhring <daveuhring@yahoo.com> wrote: >Solaris 10 03/05 shipped with gcc-3.4.3, not gcc-3.4.2. Typo. I'm running gcc-3.4.3 as shipped with Solaris 10. >gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) > >INN-2.4.2 builds without error after executing the compile script with no >additional arguments. It looks now like my original problem stems from configure data cached from runs where the old gcc was first in the path. I untared from the original sources in a different area, reconfigured and got past the bool problem. Unfortunately, it now dies on a perl issue: gcc -g -O2 -I../include -xarch=v8 -D_TS_ERRNO -I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -c perl.c gcc: language arch=v8 not recognized gcc: perl.c: linker input file unused because linking not done make[1]: Leaving directory `/local/package/inn-2.4.2/lib' cd storage && make library make[1]: Entering directory `/local/package/inn-2.4.2/storage' ../support/fixscript -i buildconfig.in ./buildconfig make[1]: Leaving directory `/local/package/inn-2.4.2/storage' make[1]: Entering directory `/local/package/inn-2.4.2/storage' [...] gcc -g -O2 -I../include -xarch=v8 -D_TS_ERRNO -I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -c perl.c gcc: language arch=v8 not recognized gcc: perl.c: linker input file unused because linking not done gcc -g -O2 -I../include -c -o proc.o proc.c gcc -g -O2 -I../include -c python.c gcc -g -O2 -I../include -c -o rc.o rc.c gcc -g -O2 -I../include -c -o site.o site.c gcc -g -O2 -I../include -c -o status.o status.c gcc -g -O2 -I../include -c -o tcl.o tcl.c gcc -g -O2 -I../include -c -o util.o util.c gcc -g -O2 -I../include -c -o wip.o wip.c gcc -o innd art.o cc.o chan.o icd.o innd.o keywords.o lc.o nc.o newsfeeds.o ng.o perl.o proc.o python.o rc.o site.o status.o tcl.o util.o wip.o /local/package/inn-2.4.2/storage/libstorage.a /local/package/inn-2.4.2/history/libinnhist.a /local/package/inn-2.4.2/lib/libinn.a /local/package/inn-2.4.2/lib/perl.o -R /usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE /usr/perl5/5.8.4/lib/sun4-solaris-64int/auto/DynaLoader/DynaLoader.a -L/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -lperl -ldl -lm -lresolv -lsocket -lnsl gcc: perl.o: No such file or directory gcc: /local/package/inn-2.4.2/lib/perl.o: No such file or directory make[1]: *** [innd] Error 1 make[1]: Leaving directory `/local/package/inn-2.4.2/innd' make: *** [all-innd] Error 2 -- Photos and travelogues from Africa and Southeast Asia: http://www.exile.org
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Russ Allbery
Date: Tue, 21 Feb 2006 03:14
Date: Tue, 21 Feb 2006 03:14
28 lines
2476 bytes
2476 bytes
In news.software.nntp, Eric Edwards <ese002@news9.exile.org> writes:
> It looks now like my original problem stems from configure data cached
> from runs where the old gcc was first in the path. I untared from the
> original sources in a different area, reconfigured and got past the bool
> problem.
Oh, that's interesting. Can anyone confirm that this problem triggers at
all even with a separately built gcc? Maybe it was always a red herring?
> Unfortunately, it now dies on a perl issue:
> gcc -g -O2 -I../include -xarch=v8 -D_TS_ERRNO -I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -c perl.c
> gcc: language arch=v8 not recognized
> gcc: perl.c: linker input file unused because linking not done
You have to build INN with the same compiler used to build the verison of
Perl that you're linking with if you use embedded Perl filters. It's
otherwise too complex to try to extract only the necessary C flags from
the Perl build. That means that if you want to build against Sun's Perl,
you have to use Sun's compiler.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Dave Uhring
Date: Tue, 21 Feb 2006 03:25
Date: Tue, 21 Feb 2006 03:25
11 lines
1573 bytes
1573 bytes
On Tue, 21 Feb 2006 02:58:21 +0000, Eric Edwards wrote: > gcc -g -O2 -I../include -xarch=v8 -D_TS_ERRNO -I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -c perl.c > gcc: language arch=v8 not recognized > gcc: perl.c: linker input file unused because linking not done Fix your $CFLAGS export CFLAGS='-O2 -pipe -mcpu=ultrasparc'
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Russ Allbery
Date: Tue, 21 Feb 2006 03:32
Date: Tue, 21 Feb 2006 03:32
26 lines
2421 bytes
2421 bytes
In news.software.nntp, Dave Uhring <daveuhring@yahoo.com> writes:
> On Tue, 21 Feb 2006 02:58:21 +0000, Eric Edwards wrote:
>> gcc -g -O2 -I../include -xarch=v8 -D_TS_ERRNO -I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -c perl.c
>> gcc: language arch=v8 not recognized
>> gcc: perl.c: linker input file unused because linking not done
> Fix your $CFLAGS
> export CFLAGS='-O2 -pipe -mcpu=ultrasparc'
In this case, the CFLAGS aren't coming from him; they're coming from Perl
by way of 'perl -MExtUtils::Embed -e ccopts'. So it's hard for him to fix
this. You *can* edit Makefile.global after running configure and change
the setting of PERLINC to strip out the bad flags, but other things can go
wrong (such as a 64-bit Perl and a 32-bit gcc). That's why I usually just
say that building INN with embedded Perl support using a compiler other
than the one used for Perl isn't supported. Debugging all the
combinations is tricky.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Eric Edwards
Date: Tue, 21 Feb 2006 03:51
Date: Tue, 21 Feb 2006 03:51
16 lines
1723 bytes
1723 bytes
On Mon, 20 Feb 2006 21:25:18 -0600, Dave Uhring <daveuhring@yahoo.com> wrote: >On Tue, 21 Feb 2006 02:58:21 +0000, Eric Edwards wrote: > >> gcc -g -O2 -I../include -xarch=v8 -D_TS_ERRNO -I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -c perl.c >> gcc: language arch=v8 not recognized >> gcc: perl.c: linker input file unused because linking not done > >Fix your $CFLAGS > >export CFLAGS='-O2 -pipe -mcpu=ultrasparc' Flags are accepted but the result is exactly the same. -- Photos and travelogues from Africa and Southeast Asia: http://www.exile.org
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Dave Uhring
Date: Tue, 21 Feb 2006 04:05
Date: Tue, 21 Feb 2006 04:05
23 lines
2313 bytes
2313 bytes
On Tue, 21 Feb 2006 03:51:07 +0000, Eric Edwards wrote:
> On Mon, 20 Feb 2006 21:25:18 -0600, Dave Uhring <daveuhring@yahoo.com> wrote:
>>On Tue, 21 Feb 2006 02:58:21 +0000, Eric Edwards wrote:
>>
>>> gcc -g -O2 -I../include -xarch=v8 -D_TS_ERRNO -I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -c perl.c
^^^^^^^^^
>>> gcc: language arch=v8 not recognized
>>> gcc: perl.c: linker input file unused because linking not done
>>
>>Fix your $CFLAGS
>>
>>export CFLAGS='-O2 -pipe -mcpu=ultrasparc'
>
> Flags are accepted but the result is exactly the same.
That -xarch=v8 is causing your problem. It is an acceptable argument to
Sun's compiler but it makes gcc puke. Get rid of it. Then start with a
freshly unpacked source tree or if that is too much then remove
config.cache, config.status and config.log from your existing source tree
before re-running the configure script.
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Dave Uhring
Date: Tue, 21 Feb 2006 04:11
Date: Tue, 21 Feb 2006 04:11
16 lines
2090 bytes
2090 bytes
On Mon, 20 Feb 2006 19:32:42 -0800, Russ Allbery wrote: > In this case, the CFLAGS aren't coming from him; they're coming from Perl > by way of 'perl -MExtUtils::Embed -e ccopts'. So it's hard for him to fix > this. You *can* edit Makefile.global after running configure and change > the setting of PERLINC to strip out the bad flags, but other things can go > wrong (such as a 64-bit Perl and a 32-bit gcc). That's why I usually just > say that building INN with embedded Perl support using a compiler other > than the one used for Perl isn't supported. Debugging all the > combinations is tricky. We don't know what arguments, if any, the OP used to the configure script. But it certainly is possible to remove any reference to "-xarch=v8" from any of his Makefiles.
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Russ Allbery
Date: Tue, 21 Feb 2006 04:21
Date: Tue, 21 Feb 2006 04:21
33 lines
2753 bytes
2753 bytes
In news.software.nntp, Dave Uhring <daveuhring@yahoo.com> writes:
> On Mon, 20 Feb 2006 19:32:42 -0800, Russ Allbery wrote:
>> In this case, the CFLAGS aren't coming from him; they're coming from
>> Perl by way of 'perl -MExtUtils::Embed -e ccopts'. So it's hard for
>> him to fix this. You *can* edit Makefile.global after running
>> configure and change the setting of PERLINC to strip out the bad flags,
>> but other things can go wrong (such as a 64-bit Perl and a 32-bit gcc).
>> That's why I usually just say that building INN with embedded Perl
>> support using a compiler other than the one used for Perl isn't
>> supported. Debugging all the combinations is tricky.
> We don't know what arguments, if any, the OP used to the configure
> script.
It's an educated guess. I've been supporting INN for a long time.
> But it certainly is possible to remove any reference to "-xarch=v8" from
> any of his Makefiles.
It's probably only in one place, namely Makefile.global in the top level
of the source tree, in the PERLINC variable. That's the case if INN
picked it up from Perl.
This is a common problem when building programs that embed Perl on Solaris
with the default system Perl.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Dave Uhring
Date: Tue, 21 Feb 2006 04:39
Date: Tue, 21 Feb 2006 04:39
29 lines
2332 bytes
2332 bytes
On Mon, 20 Feb 2006 20:21:48 -0800, Russ Allbery wrote: > In news.software.nntp, Dave Uhring <daveuhring@yahoo.com> writes: >> We don't know what arguments, if any, the OP used to the configure >> script. > > It's an educated guess. I've been supporting INN for a long time. I expect that you are correct since the -xarch=v8 argument was separated from -O2 by a -I argument. >> But it certainly is possible to remove any reference to "-xarch=v8" from >> any of his Makefiles. > > It's probably only in one place, namely Makefile.global in the top level > of the source tree, in the PERLINC variable. That's the case if INN > picked it up from Perl. Simple enough to `grep xarch *` in the top level source directory then. > This is a common problem when building programs that embed Perl on Solaris > with the default system Perl. It's not only Perl which causes such problems but Tcl/Tk also. Since Sun's compiler suite Studio 11 is now free there is little reason to continue using gcc.
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Eric Edwards
Date: Tue, 21 Feb 2006 05:03
Date: Tue, 21 Feb 2006 05:03
18 lines
2155 bytes
2155 bytes
On Mon, 20 Feb 2006 22:39:43 -0600, Dave Uhring <daveuhring@yahoo.com> wrote: >On Mon, 20 Feb 2006 20:21:48 -0800, Russ Allbery wrote: >> This is a common problem when building programs that embed Perl on Solaris >> with the default system Perl. > >It's not only Perl which causes such problems but Tcl/Tk also. Since >Sun's compiler suite Studio 11 is now free there is little reason to >continue using gcc. My read of Sun's license is that the compiler is free only for developers working on Opensolaris. "Developer" status seems to be awarded on the honor system so there really isn't anything stopping individuals from using it. Still, having the Sun compiler marginally free, as in beer, is not a good reason to stop supporting gcc. -- Photos and travelogues from Africa and Southeast Asia: http://www.exile.org
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Dave Uhring
Date: Tue, 21 Feb 2006 05:10
Date: Tue, 21 Feb 2006 05:10
24 lines
2263 bytes
2263 bytes
On Tue, 21 Feb 2006 05:03:31 +0000, Eric Edwards wrote: > On Mon, 20 Feb 2006 22:39:43 -0600, Dave Uhring <daveuhring@yahoo.com> wrote: >>It's not only Perl which causes such problems but Tcl/Tk also. Since >>Sun's compiler suite Studio 11 is now free there is little reason to >>continue using gcc. > > My read of Sun's license is that the compiler is free only for > developers working on Opensolaris. Read it again. http://developers.sun.com/prodtech/cc/products/faqs/licensing.html > "Developer" status seems to be > awarded on the honor system so there really isn't anything stopping > individuals from using it. Still, having the Sun compiler marginally > free, as in beer, is not a good reason to stop supporting gcc. There are probably some sources which will not compile using Studio 11, so gcc may still be useful on UltraSPARC systems.
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Eric Edwards
Date: Tue, 21 Feb 2006 05:15
Date: Tue, 21 Feb 2006 05:15
21 lines
2116 bytes
2116 bytes
On Mon, 20 Feb 2006 23:10:08 -0600, Dave Uhring <daveuhring@yahoo.com> wrote: >On Tue, 21 Feb 2006 05:03:31 +0000, Eric Edwards wrote: > >> On Mon, 20 Feb 2006 22:39:43 -0600, Dave Uhring <daveuhring@yahoo.com> wrote: > >>>It's not only Perl which causes such problems but Tcl/Tk also. Since >>>Sun's compiler suite Studio 11 is now free there is little reason to >>>continue using gcc. >> >> My read of Sun's license is that the compiler is free only for >> developers working on Opensolaris. > >Read it again. > >http://developers.sun.com/prodtech/cc/products/faqs/licensing.html Try reading the actual license. -- Photos and travelogues from Africa and Southeast Asia: http://www.exile.org
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Dave Uhring
Date: Tue, 21 Feb 2006 05:26
Date: Tue, 21 Feb 2006 05:26
39 lines
2605 bytes
2605 bytes
On Tue, 21 Feb 2006 05:15:59 +0000, Eric Edwards wrote: > On Mon, 20 Feb 2006 23:10:08 -0600, Dave Uhring <daveuhring@yahoo.com> wrote: >>On Tue, 21 Feb 2006 05:03:31 +0000, Eric Edwards wrote: >> >>> On Mon, 20 Feb 2006 22:39:43 -0600, Dave Uhring <daveuhring@yahoo.com> wrote: >> >>>>It's not only Perl which causes such problems but Tcl/Tk also. Since >>>>Sun's compiler suite Studio 11 is now free there is little reason to >>>>continue using gcc. >>> >>> My read of Sun's license is that the compiler is free only for >>> developers working on Opensolaris. >> >>Read it again. >> >>http://developers.sun.com/prodtech/cc/products/faqs/licensing.html > > Try reading the actual license. I did: Licensee/Company: Entity receiving Software. Effective Date: Date Sun delivers the Software to You. Software: Sun Studio 11. Permitted Use: You may reproduce and use the Software for Individual, Commercial, and Research and Instructional Use. License Term: Perpetual (subject to termination under the SLA). Licensed Unit: Software Copy. Licensed Unit Count: Unlimited.
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Eric Edwards
Date: Tue, 21 Feb 2006 05:56
Date: Tue, 21 Feb 2006 05:56
58 lines
3274 bytes
3274 bytes
On Mon, 20 Feb 2006 23:26:44 -0600, Dave Uhring <daveuhring@yahoo.com> wrote: >On Tue, 21 Feb 2006 05:15:59 +0000, Eric Edwards wrote: > >> On Mon, 20 Feb 2006 23:10:08 -0600, Dave Uhring <daveuhring@yahoo.com> wrote: >>>On Tue, 21 Feb 2006 05:03:31 +0000, Eric Edwards wrote: >>> >>>> On Mon, 20 Feb 2006 22:39:43 -0600, Dave Uhring <daveuhring@yahoo.com> wrote: >>> >>>>>It's not only Perl which causes such problems but Tcl/Tk also. Since >>>>>Sun's compiler suite Studio 11 is now free there is little reason to >>>>>continue using gcc. >>>> >>>> My read of Sun's license is that the compiler is free only for >>>> developers working on Opensolaris. >>> >>>Read it again. >>> >>>http://developers.sun.com/prodtech/cc/products/faqs/licensing.html >> >> Try reading the actual license. > >I did: > >Licensee/Company: Entity receiving Software. > >Effective Date: Date Sun delivers the Software to You. > >Software: Sun Studio 11. > >Permitted Use: You may reproduce and use the Software for >Individual, Commercial, and Research and Instructional Use. > >License Term: Perpetual (subject to termination under the >SLA). > >Licensed Unit: Software Copy. > >Licensed Unit Count: Unlimited. Hmmm. The one that I read http://opensolaris.org/os/community/tools/sun_studio_tools/sssent/ said: "Software: Sun Studio 10 Permitted Use: Provided that You are a participant of the OpenSolaris community, You may use the software for Research and Instructional, Individual, and Commercial Use to design, develop, test, or otherwise engineer software. License Term: Perpetual Licensed Unit: User where "User" means You. Licensed unit Count: 1 User." -- Photos and travelogues from Africa and Southeast Asia: http://www.exile.org
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Dave Uhring
Date: Tue, 21 Feb 2006 06:39
Date: Tue, 21 Feb 2006 06:39
20 lines
2223 bytes
2223 bytes
On Tue, 21 Feb 2006 05:56:25 +0000, Eric Edwards wrote: > On Mon, 20 Feb 2006 23:26:44 -0600, Dave Uhring <daveuhring@yahoo.com> wrote: >>Software: Sun Studio 11. >> >>Permitted Use: You may reproduce and use the Software for >>Individual, Commercial, and Research and Instructional Use. > "Software: Sun Studio 10 > > Permitted Use: Provided that You are a participant of the OpenSolaris > community, You may use the software for Research and Instructional, > Individual, and Commercial Use to design, develop, test, or otherwise > engineer software. You seem to have a problem recognizing the difference between "Studio 11" and "Studio 10".
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Bill Davidsen
Date: Tue, 21 Feb 2006 15:53
Date: Tue, 21 Feb 2006 15:53
86 lines
5579 bytes
5579 bytes
John Hyatt - Perfectly Good GuitarRuss Allbery wrote: > In news.software.nntp, Bill Davidsen <davidsen@deathstar.prodigy.com> writes: >> Russ Allbery wrote: >>> In news.software.nntp, Ian Collins <ian-news@hotmail.com> writes: > >>>> The comment in the file says: > >>>> * Included for alignment with the ISO/IEC 9899:1999 standard. The >>>> * contents of this header are only visible when using a c99 >>>> * compiler, otherwise inclusion of this header will result in a >>>> * forced compilation failure. > >>>> gcc isn't a C99 compiler. > >>> What the heck was the point of that? > >> I thought the comment was pretty clear, the point is to keep you from >> building a non-portable software package. The real question is why that >> header is being included... > > For the same reason why I include any other header file: I want to use > the C language feature defined in that header file. But it isn't a C language feature, it's a C99 feature, and unless you persuade gcc to run as a C99 compiler those features are not a proper feature of the language of the compiler any more than features of Ada or COBOL :-( > > My guess is that Solaris is trying to protect the user against trying to > use bool with a compiler that doesn't support _Bool, but that's an odd way > of doing it. Why not just let the compilation fail later? In this > attempt to protect against an entirely theoretical problem, they've > introduced problems with an actual usage. I don't think that using features not in the language is a theoretical problem, but I've tried to write portable code for some decades and accept using a common subset of the language as the method to do that. C99 is not widely supported, particularly for gcc; the slowness of the recent versions encourage use of old versions, 2.95 particularly, to complete compilation before the next version comes out. > > I'm sure that the Autoconf 2.59 AC_HEADER_BOOL macro probably handles all > of this, so the real solution would be to just switch Autoconfs. I'm not > sure I really want to do that for the STABLE branch, though. (The best > solution would be for me to find the time to get 2.5.0 released.) Sounds fine to me, don't use features you don't have, or fake them with macros and typedefs. > >> If gcc lacks a c99 environment switch (haven't looked at the new >> features) > > It has one, but setting standards environments in gcc is always > problematic since it usually enables standards namespaces and other > undesirable features. Then you get lost in a twisty little maze of > feature test macros, none of which work quite right. > >> then the best thing is to not try to use the feature, > > No, INN uses bool extensively and I'm not going to stop. The general > development philosophy of INN is to use the latest standard and then patch > things up for older standards via Autoconf, and that generally works quite > well. But it used bool long before C99, when the feature was done internally. > >> and the easy thing is to get a copy of the header and add a -I to >> include that instead of the system header. > > Um, no. That's a really bad idea. Using the headers which came with the compiler is a bad idea? Worse than using the Sun headers which probably match some non-gcc compiler? > > I suppose I need to write an Autoconf probe that does more than just test > for the existence of the header file. Or switch Autoconf implementations. > Bleh. I suppose I could just copy the AC_HEADER_BOOL macro from a later > Autoconf. > That sounds like a better solution which won't bite you in the future. -- bill davidsen SBC/Prodigy Yorktown Heights NY data center http://newsgroups.news.prodigy.com
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Bill Davidsen
Date: Tue, 21 Feb 2006 16:05
Date: Tue, 21 Feb 2006 16:05
60 lines
4720 bytes
4720 bytes
Eric Edwards wrote: > On Sun, 19 Feb 2006 14:22:13 -0600, Dave Uhring <daveuhring@yahoo.com> wrote: >> Solaris 10 03/05 shipped with gcc-3.4.3, not gcc-3.4.2. > > Typo. I'm running gcc-3.4.3 as shipped with Solaris 10. > >> gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) >> >> INN-2.4.2 builds without error after executing the compile script with no >> additional arguments. > > It looks now like my original problem stems from configure data cached > from runs where the old gcc was first in the path. I untared from the > original sources in a different area, reconfigured and got past the bool > problem. Unfortunately, it now dies on a perl issue: > > gcc -g -O2 -I../include -xarch=v8 -D_TS_ERRNO -I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -c perl.c > gcc: language arch=v8 not recognized I looked at the man page for gcc, and they spell it -march=XXXXX without defining (that I saw) all possible values for arch. That appears to be a Solaris C option. Just out of curiosity, did you try just using the Solaris (Studio?) compiler for INN? > gcc: perl.c: linker input file unused because linking not done > make[1]: Leaving directory `/local/package/inn-2.4.2/lib' > cd storage && make library > make[1]: Entering directory `/local/package/inn-2.4.2/storage' > ../support/fixscript -i buildconfig.in > ./buildconfig > make[1]: Leaving directory `/local/package/inn-2.4.2/storage' > make[1]: Entering directory `/local/package/inn-2.4.2/storage' > [...] > gcc -g -O2 -I../include -xarch=v8 -D_TS_ERRNO -I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -c perl.c > gcc: language arch=v8 not recognized > gcc: perl.c: linker input file unused because linking not done > gcc -g -O2 -I../include -c -o proc.o proc.c > gcc -g -O2 -I../include -c python.c > gcc -g -O2 -I../include -c -o rc.o rc.c > gcc -g -O2 -I../include -c -o site.o site.c > gcc -g -O2 -I../include -c -o status.o status.c > gcc -g -O2 -I../include -c -o tcl.o tcl.c > gcc -g -O2 -I../include -c -o util.o util.c > gcc -g -O2 -I../include -c -o wip.o wip.c > gcc -o innd art.o cc.o chan.o icd.o innd.o keywords.o lc.o nc.o newsfeeds.o ng.o perl.o proc.o python.o rc.o site.o status.o tcl.o util.o wip.o /local/package/inn-2.4.2/storage/libstorage.a /local/package/inn-2.4.2/history/libinnhist.a /local/package/inn-2.4.2/lib/libinn.a /local/package/inn-2.4.2/lib/perl.o -R /usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE /usr/perl5/5.8.4/lib/sun4-solaris-64int/auto/DynaLoader/DynaLoader.a -L/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -lperl -ldl -lm -lresolv -lsocket -lnsl > gcc: perl.o: No such file or directory > gcc: /local/package/inn-2.4.2/lib/perl.o: No such file or directory > make[1]: *** [innd] Error 1 > make[1]: Leaving directory `/local/package/inn-2.4.2/innd' > make: *** [all-innd] Error 2 > -- bill davidsen SBC/Prodigy Yorktown Heights NY data center http://newsgroups.news.prodigy.com
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Daniel Rock
Date: Tue, 21 Feb 2006 18:19
Date: Tue, 21 Feb 2006 18:19
38 lines
2780 bytes
2780 bytes
Russ Allbery <rra@stanford.edu> wrote: > In news.software.nntp, Eric Edwards <ese002@news9.exile.org> writes: > >> It looks now like my original problem stems from configure data cached >> from runs where the old gcc was first in the path. I untared from the >> original sources in a different area, reconfigured and got past the bool >> problem. > > Oh, that's interesting. Can anyone confirm that this problem triggers at > all even with a separately built gcc? Maybe it was always a red herring? > >> Unfortunately, it now dies on a perl issue: > >> gcc -g -O2 -I../include -xarch=v8 -D_TS_ERRNO -I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -c perl.c >> gcc: language arch=v8 not recognized >> gcc: perl.c: linker input file unused because linking not done > > You have to build INN with the same compiler used to build the verison of > Perl that you're linking with if you use embedded Perl filters. It's > otherwise too complex to try to extract only the necessary C flags from > the Perl build. That means that if you want to build against Sun's Perl, > you have to use Sun's compiler. Or you edit /usr/perl5/*/*-solaris-*/Config.pm and change cc='gcc' cccldflags='-fPIC' cpprun='gcc -E' cppstdin='gcc -E' ld='gcc' You can change more, but the remaing are just informative. This is for x86 but for SPARC the steps should be similar. I don't know is the -xarch=v8 is caused by Perl's Config.pm or by a previous ./configure process without config.cache being removed. -- Daniel
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Russ Allbery
Date: Tue, 21 Feb 2006 18:26
Date: Tue, 21 Feb 2006 18:26
46 lines
3357 bytes
3357 bytes
In news.software.nntp, Bill Davidsen <davidsen@deathstar.prodigy.com> writes:
> But it isn't a C language feature, it's a C99 feature,
INN is written in C99. It doesn't use the non-portable features of C99,
such as variable arrays, since they're not widely available yet. It does
use the features of C99 that are widely available on systems where they
are available.
A few years after the next revision of the C standard is released, I
expect INN to become compliant with that version of the standard too.
This is how I program. There's a reason why new versions of the C
standard are released.
> and unless you persuade gcc to run as a C99 compiler those features are
> not a proper feature of the language of the compiler any more than
> features of Ada or COBOL :-(
Oh, come now. Don't you think you're overstating matters just a wee bit?
New features are added to the language in a backward-compatible fashion
and gcc's default compilation mode has always supported as much as
possible of the latest revision of the standard. So, for that matter,
does the default compilation mode of essentially every Unix compiler.
Up until this, there's never been a problem, and in fact it looks like
there may still not be a problem and the original issue was a red
herring.
> I don't think that using features not in the language is a theoretical
> problem, but I've tried to write portable code for some decades and
> accept using a common subset of the language as the method to do that.
Yeah, yeah, I've been doing this for a long time too. Let's not get into
a pissing contest about which of us writes more portable code. This is
what Autoconf is for.
> But it used bool long before C99, when the feature was done internally.
No, it didn't. I added bool myself and I know when I did it.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Darren Dunham
Date: Tue, 21 Feb 2006 19:00
Date: Tue, 21 Feb 2006 19:00
32 lines
2962 bytes
2962 bytes
In comp.unix.solaris Daniel Rock <v200608@deadcafe.de> wrote:
> Russ Allbery <rra@stanford.edu> wrote:
>>> gcc: perl.c: linker input file unused because linking not done
>>
>> You have to build INN with the same compiler used to build the verison of
>> Perl that you're linking with if you use embedded Perl filters. It's
>> otherwise too complex to try to extract only the necessary C flags from
>> the Perl build. That means that if you want to build against Sun's Perl,
>> you have to use Sun's compiler.
> Or you edit /usr/perl5/*/*-solaris-*/Config.pm and change
> cc='gcc'
> cccldflags='-fPIC'
> cpprun='gcc -E'
> cppstdin='gcc -E'
> ld='gcc'
> You can change more, but the remaing are just informative. This is for
> x86 but for SPARC the steps should be similar. I don't know is the
> -xarch=v8 is caused by Perl's Config.pm or by a previous ./configure
> process without config.cache being removed.
I'm pretty sure there's a 'Solaris-PerlGcc' module out there that does
much of that for you.
--
Darren Dunham ddunham@taos.com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Eric Edwards
Date: Wed, 22 Feb 2006 05:24
Date: Wed, 22 Feb 2006 05:24
12 lines
1660 bytes
1660 bytes
On Tue, 21 Feb 2006 16:05:42 GMT, Bill Davidsen <davidsen@deathstar.prodigy.com> wrote: >Just out of curiosity, did you try just using the Solaris (Studio?) >compiler for INN? The Sun Studio install was painful but once installed, it compiled INN with minimal difficulty. One quirk is that configure always chooses gcc, even if the Sun compiler appears in the path first. Setting CC=cc on the command line resolves the issue. -- Photos and travelogues from Africa and Southeast Asia: http://www.exile.org
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Russ Allbery
Date: Wed, 22 Feb 2006 06:28
Date: Wed, 22 Feb 2006 06:28
15 lines
1903 bytes
1903 bytes
In news.software.nntp, Eric Edwards <ese002@news9.exile.org> writes:
> The Sun Studio install was painful but once installed, it compiled INN
> with minimal difficulty. One quirk is that configure always chooses
> gcc, even if the Sun compiler appears in the path first. Setting CC=cc
> on the command line resolves the issue.
Yeah, this is an Autoconf thing. It always prefers gcc.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Dan Foster
Date: Wed, 22 Feb 2006 08:14
Date: Wed, 22 Feb 2006 08:14
21 lines
2185 bytes
2185 bytes
In article <slrndvntd1.q7.ese002@spica.exile.org>, Eric Edwards <ese002@news9.exile.org> wrote: > On Tue, 21 Feb 2006 16:05:42 GMT, Bill Davidsen <davidsen@deathstar.prodigy.com> wrote: >>Just out of curiosity, did you try just using the Solaris (Studio?) >>compiler for INN? > > The Sun Studio install was painful but once installed, it compiled INN > with minimal difficulty. Just curious -- how was it painful? All that I normally need to do is: # mkdir foo && cd foo # gzcat ../foo.tar.gz | tar xpf - # cd CD1 # ./installer -nodisplay That's all I had to do for Studio 10 and 11. -Dan
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Bruce Esquibel
Date: Wed, 22 Feb 2006 13:16
Date: Wed, 22 Feb 2006 13:16
30 lines
2275 bytes
2275 bytes
In news.software.nntp Dan Foster <usenet@evilphb.org> wrote: : Just curious -- how was it painful? : All that I normally need to do is: : # mkdir foo && cd foo : # gzcat ../foo.tar.gz | tar xpf - : # cd CD1 : # ./installer -nodisplay : That's all I had to do for Studio 10 and 11. Because it doesn't seem to always be that simple. If you scan the sun newsgroups, that -nodisplay option comes up now and again as failing to work. You need to fire up an X session to install it. On 3 boxes we tried Studio 11 on, 2 needed the X session, one didn't. Being they were nearly clones of each other, didn't make sense but it happened. And just as a 2 cents opinion, I'd leave both gcc and studio11 available on the box and figure out how to switch between the two when building. Studio 11 has a lot of nice stuff with it, but doesn't always work with things you take for granted. If you have time to debug, fine, but I don't see it replacing gcc anytime soon. -bruce bje@ripco.com
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Eric Edwards
Date: Thu, 23 Feb 2006 00:20
Date: Thu, 23 Feb 2006 00:20
49 lines
3346 bytes
3346 bytes
On Wed, 22 Feb 2006 02:14:27 -0600, Dan Foster <usenet@evilphb.org> wrote: >In article <slrndvntd1.q7.ese002@spica.exile.org>, Eric Edwards <ese002@news9.exile.org> wrote: >> The Sun Studio install was painful but once installed, it compiled INN >> with minimal difficulty. > >Just curious -- how was it painful? Poor error handling. The installer wants to put everything in /opt. 1) There wasn't enough room on root, so the installer complains. I type in /usr/opt. Plenty of room on /usr. The installer then proceeds to install on /opt, despite telling me previously that that was impossible. It seems that the second prompt really wanted "back" to go back to the previous prompt or anything else to proceed with the impossible. It failed of course, on this and one other package but did install the smaller stuff on /opt. 2) I re-ran the installer. I selected only those parts that didn't fit on /opt and specified /usr/opt as a destination. The installer complains that I have already installed the documentation on /opt. This, despite the fact that I'm not installing the documentation. 3) I pkgrm all SUNW packages and re-run the installer. 4) I still can't install because the installer has detected the documentation is installed in /opt. WTF? 5) Eventually, I figure out that the installer is checking the productregistery and that pkgrm does not remove items from the registry. 6) I launch prodreg. It then, like all the other new Solaris 10 gui tools I've tried, proceeds to open a full screen window on my gentoo/Xorg box and freeze. 7) I messed around with the cli form of prodreg for probably an hour and I could not figure out to delete an entry. 8) Eventually, I figured out that the registry is just a text file and nothing else is actually looking at it. I deleted the offending entries with vi. 9) I re-ran the installer, this time targeting /usr/opt and installing everything. This time it works. -- Photos and travelogues from Africa and Southeast Asia: http://www.exile.org
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Frank Cusack
Date: Thu, 23 Feb 2006 08:37
Date: Thu, 23 Feb 2006 08:37
28 lines
2456 bytes
2456 bytes
On Wed, 22 Feb 2006 02:14:27 -0600 Dan Foster <usenet@evilphb.org> wrote: > In article <slrndvntd1.q7.ese002@spica.exile.org>, Eric Edwards <ese002@news9.exile.org> wrote: >> On Tue, 21 Feb 2006 16:05:42 GMT, Bill Davidsen <davidsen@deathstar.prodigy.com> wrote: >>>Just out of curiosity, did you try just using the Solaris (Studio?) >>>compiler for INN? >> >> The Sun Studio install was painful but once installed, it compiled INN >> with minimal difficulty. > > Just curious -- how was it painful? > > All that I normally need to do is: > > # mkdir foo && cd foo > # gzcat ../foo.tar.gz | tar xpf - > # cd CD1 > # ./installer -nodisplay > > That's all I had to do for Studio 10 and 11. huh. Doesn't work for me. I get to where it says "Ready to Install", I continue but it fails instantly, however no data as to why. (The next "screen" shows nothing got installed, and info is available, but if I select anything for more info, I get errors about log files not being available.) Any reason I shouldn't just pkgadd all the packages? -frank
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Ian Collins
Date: Thu, 23 Feb 2006 09:21
Date: Thu, 23 Feb 2006 09:21
20 lines
2931 bytes
2931 bytes
Frank Cusack wrote: > > huh. Doesn't work for me. I get to where it says "Ready to Install", > I continue but it fails instantly, however no data as to why. (The > next "screen" shows nothing got installed, and info is available, but > if I select anything for more info, I get errors about log files not > being available.) Any reason I shouldn't just pkgadd all the packages? > Odd, I've used the installer many times and not seen this. You should at least have /var/sadm/install/logs/Sun_Studio_11_install.* which will reference other logs like /var/sadm/install/logs/Sun_Studio_Software_install.*. If you just pkgadd the packages, the uninstallers won't be installed. -- Ian Collins.
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Frank Cusack
Date: Thu, 23 Feb 2006 20:06
Date: Thu, 23 Feb 2006 20:06
23 lines
2322 bytes
2322 bytes
On Thu, 23 Feb 2006 22:21:31 +1300 Ian Collins <ian-news@hotmail.com> wrote: > Frank Cusack wrote: >> huh. Doesn't work for me. I get to where it says "Ready to >> Install", >> I continue but it fails instantly, however no data as to why. (The >> next "screen" shows nothing got installed, and info is available, but >> if I select anything for more info, I get errors about log files not >> being available.) Any reason I shouldn't just pkgadd all the packages? >> > Odd, I've used the installer many times and not seen this. > > You should at least have > > /var/sadm/install/logs/Sun_Studio_11_install.* which will reference > other logs like /var/sadm/install/logs/Sun_Studio_Software_install.*. I have that, but it's only License or other trivial information. I figured out the problem though; I was trying to install the wrong architecture. Shitty error reporting. Once I used the correct arch, it went smoothly. -frank
Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
Author: Bill Davidsen
Date: Mon, 27 Feb 2006 20:27
Date: Mon, 27 Feb 2006 20:27
17 lines
2498 bytes
2498 bytes
Eric Edwards wrote: > On Tue, 21 Feb 2006 16:05:42 GMT, Bill Davidsen <davidsen@deathstar.prodigy.com> wrote: >> Just out of curiosity, did you try just using the Solaris (Studio?) >> compiler for INN? > > The Sun Studio install was painful but once installed, it compiled INN > with minimal difficulty. One quirk is that configure always chooses gcc, > even if the Sun compiler appears in the path first. Setting CC=cc on > the command line resolves the issue. > Added to my tips file. -- bill davidsen SBC/Prodigy Yorktown Heights NY data center http://newsgroups.news.prodigy.com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads