compilation problems...still
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compilation problems...still



Hello,

I followed the discussions about the compilation problems but I'm
still stuck in the process.

Following is the outcome of compiling apache_1.3.0+ssl_1.18
using Solaris 2.6 and gcc version 2.7.2.3:

1. "gcc: unrecognized option `-w3'"
This is no big deal, I just went and removed it from the CFLAGS.

2. "need to create the file Makefile.libdir in src/modules/ssl"
This did not work, got lots of parsing and syntax errors.
After removing the line LIB=libssl.$(LIBEXT), make passed that stage 
but complained later with the following:
"gcc: modules/ssl/libssl.a: No such file or directory"

After manually copying this library to that directory (I don't know
why it did not find it eventhough the SSL_BASE directory is set
correctly), it broke with following which is where I'm still stuck.

-------------
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.7.2.3/specs
gcc version 2.7.2.3
 /usr/ccs/bin/ld -V -Y P,/usr/ccs/lib:/usr/lib -Qy -o httpsd 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.7.2.3/crt1.o 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.7.2.3/crti.o 
/usr/ccs/lib/values-Xa.o 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.7.2.3/crtbegin.o 
-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.7.2.3 -L/usr/ccs/bin 
-L/usr/ccs/lib -L/usr/local/lib buildmark.o modules.o 
modules/standard/libstandard.a modules/ssl/libssl.a main/libmain.a 
./os/unix/libos.a ap/libap.a -lsocket -lnsl -lgcc -lc -lgcc 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.7.2.3/crtend.o 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.7.2.3/crtn.o
ld: Software Generation Utilities - Solaris/ELF (3.0)
Undefined                       first referenced
 symbol                             in file
apache_ssl_module                   modules.o
ld: fatal: Symbol referencing errors. No output written to httpsd
*** Error code 1
make: Fatal error: Command failed for target `target_static'
---------------

It looks that by removing the line "LIB=libssl.$(LIBEXT)" apache_ssl.c
never compiled (there is not an apache_ssl.o file in src/modules/ssl)
My problem is that when I try to compile apache_ssl.c by itself, I 
get lots of parsing and syntax errors like:

...
...
 /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.7.2.3/cc1 /var/tmp/cc00IeHN.i 
-quiet -dumpbase apache_ssl.c -g -version -o /var/tmp/cc00IeHN.s
GNU C version 2.7.2.3 (sparc) compiled by GNU C version 2.7.2.3.
apache_ssl.c:142: parse error before `BOOL'
apache_ssl.c:142: warning: no semicolon at end of struct or union
apache_ssl.c:159: parse error before `bFakeBasicAuth'
apache_ssl.c:159: warning: data definition has no type or storage class
apache_ssl.c:162: parse error before `}'
apache_ssl.c:162: warning: data definition has no type or storage class
...
make: Fatal error: Command failed for target `apache_ssl.o'

To me is a problem with the included libraries but I'm not sure.
Any ideas or suggestions?

-juan