Mailing List Archive

Config problem Solaris 2.7
Hi all!

I think I uncovered a kind of bug in the configuration file, but it may
be related to my specific configuration.

Anyway, I tried to install the latest version on our Sun Sparc, running
Solaris 2.7 with gcc 2.8.1. I ran configure with --with-egd-pool
--prefix=/usr/local. When I finally started make gcc failed with some
strange error message (see attachement).

When I tried to track down that error I found the following in my
Makefile:
...
CFLAGS=-g -O2 -I/usr/local/include -I/usr/include
-I/usr/local/openssl/include -I/usr/lib/openssl/include
-I/usr/local/ssl/include -I/usr/local/ssl/include
$(PATHS) -DHAVE_CONFIG_H
...

The problm seems to be "-I/usr/include". IMHO a rather redundant entry,
but
after removing it, openssh compiled beautifully. I have no idea behind the
intention of including those standard files, maybe they are needed in
machines running both cc and gcc.

At least in Solaris 2.7 wiht gcc only it´s necessary to suppress that
entry in Makefile.

best wishes

Hannes

--
Johannes Gritsch
Unix Consultant
Windschnur, Austria

Sent through GMX FreeMail - http://www.gmx.net
Re: Config problem Solaris 2.7 [ In reply to ]
In a message dated 3/14/00 11:00:33 AM Eastern Standard Time,
j.gritsch@gmx.at writes:

> The problm seems to be "-I/usr/include". IMHO a rather redundant entry,
> but
> after removing it, openssh compiled beautifully. I have no idea behind the
> intention of including those standard files, maybe they are needed in
> machines running both cc and gcc.
>
> At least in Solaris 2.7 wiht gcc only it´s necessary to suppress that
> entry in Makefile.

I believe Damien's already making this fix for the next rev. I'm not sure
why /usr/include needs to be there either, but assuming some people do need
it, putting it as -dirafter instead of -I should fix the problem for all
(assuming that -idirafter is accepted by many compilers..)

Jay
Re: Config problem Solaris 2.7 [ In reply to ]
On Tue, 14 Mar 2000, Johannes Gritsch wrote:


> The problm seems to be "-I/usr/include". IMHO a rather redundant entry,
> but
> after removing it, openssh compiled beautifully. I have no idea behind the
> intention of including those standard files, maybe they are needed in
> machines running both cc and gcc.

I think I have found the source of this bug - the search for OpenSSL
wasn't correctly restoring the original CFLAGS.

this change will be part of 1.2.3pre3 which will be released very
shortly. Could you please give it a go and report back?

Thanks,
Damien Miller


--
| "Bombay is 250ms from New York in the new world order" - Alan Cox
| Damien Miller - http://www.mindrot.org/
| Email: djm@mindrot.org (home) -or- djm@ibs.com.au (work)