RE: [users@httpd] Totally stumped on httpd, gcc & solaris 10

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for all the replies I have been getting... Here is some more information on my enviroment. 

Here is what I am using to try and compile Apache2 ...

./configure --with-perl=/usr/bin/perl --prefix=/www --enable-module=so --enable-ssl --enable-setenvif --with-ssl=/usr/local/ssl

I downloaded Apache 2.2.2, might as well get the latest version.

Here are my library paths...

Configuration file [version 4]: /var/ld/ld.config
  Default Library Path (ELF):   /usr/lib:/usr/lib/secure:/usr/local/lib:/usr/local/mysql/lib:/lib:/usr/local/ssl/lib/
  Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system default)

I am running gcc 3.3.2 from SunFreeWare

Here is the Error I get durring make...

make[2]: Entering directory `/export/home/chris/Sources/httpd-2.2.2/server'
/export/home/chris/Sources/httpd-2.2.2/srclib/apr/libtool --silent --mode=compile gcc -g -O2    -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE    -I/export/home/chris/Sources/httpd-2.2.2/srclib/pcre -I. -I/export/home/chris/Sources/httpd-2.2.2/os/unix -I/export/home/chris/Sources/httpd-2.2.2/server/mpm/prefork -I/export/home/chris/Sources/httpd-2.2.2/modules/http -I/export/home/chris/Sources/httpd-2.2.2/modules/filters -I/export/home/chris/Sources/httpd-2.2.2/modules/proxy -I/export/home/chris/Sources/httpd-2.2.2/include -I/export/home/chris/Sources/httpd-2.2.2/modules/generators -I/export/home/chris/Sources/httpd-2.2.2/modules/mappers -I/export/home/chris/Sources/httpd-2.2.2/modules/database -I/export/home/chris/Sources/httpd-2.2.2/srclib/apr/include -I/export/home/chris/Sources/httpd-2.2.2/srclib/apr-util/include -I/export/home/chris/Sources/httpd-2.2.2/srclib/apr-util/xml/expat/lib -I/export/home/chris/Sources/httpd-2.2.2/modules/proxy/../generators -I/usr/local/ssl/include -I/usr/sfw/include -I/export/home/chris/Sources/httpd-2.2.2/modules/ssl -I/export/home/chris/Sources/httpd-2.2.2/modules/dav/main  -prefer-non-pic -static -c exports.c && touch exports.lo
exports.c:116:2: #endif without #if
make[2]: *** [exports.lo] Error 1
make[2]: Leaving directory `/export/home/chris/Sources/httpd-2.2.2/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/chris/Sources/httpd-2.2.2/server'
make: *** [all-recursive] Error 1

Thanks,

Chris Edwards


-----Original Message-----
From: Ricardo Stella [mailto:stella@xxxxxxxxx] 
Sent: Thursday, May 11, 2006 3:47 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re: [users@httpd] Totally stumped on httpd, gcc & solaris 10



Chris Edwards wrote:
> Hola!
>
> I am trying to compile Apache2 on Solaris 10 with gcc.  Here is the 
> error Im getting durring the make...
>
> exports.c:116:2: #endif without #if
> make[2]: *** [exports.lo] Error 1
> make[2]: Leaving directory
> `/export/home/chris/Sources/httpd-2.2.0/server'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/export/home/chris/Sources/httpd-2.2.0/server'
> make: *** [all-recursive] Error 1
> #
>
> Any help would be greatly appreciated.  Thanks!
>
>   

Well, although 2.2.2 is out, it would help to know what options you used for configure or what gcc you are using.  Here's mine, ripped from the net somewhere and since I need ldap and BerkeleyDB, those options are there (note LDFLAGS and CPPFLAGS should all be on one line):

CFLAGS="-O2"; export CFLAGS
LDFLAGS="-L/usr/local/ssl/lib -L/usr/local/openldap/lib -L/usr/local/lib -R/usr/local/ssl/lib:/usr/local/openldap/lib:/usr/local/lib"; export LDFLAGS CPPFLAGS="-I/usr/local/ssl/include -I/usr/local/openldap/include -I/usr/local/include"; export CPPFLAGS

./configure \
--prefix=/usr/local/apache2 \
--enable-mods-shared=most \
--with-ldap-include=/usr/local/openldap/include \ --with-ldap-lib=/usr/local/openldap/lib \ --with-ssl=/usr/local/ssl \ --with-perl=/usr/local/bin/perl \ --with-ldap \ --with-berkeley-db=/usr/local/BerkeleyDB \ --enable-ldap \ --enable-authnz-ldap \ --enable-ssl

I'm using gcc 3.3.2 from sunfreeware.com...

My .02...

-- 

°(((=((===°°°(((===========================================




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux