Hello, I have problem with compilation of cosign 2.0.2a filter for
apache in Solaris 10. I use blastvawe apache, gcc and libtools.
Configure and make output:

./configure --with-ssl=/opt/csw/
--enable-apache2=/opt/csw/apache2/sbin/apxs
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... ./install-sh -c
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking for inet_ntoa in -lnsl... yes
checking for socket in -lsocket... yes
apache 1.3 not enabled
checking for apache 2... using apxs2 as '/opt/csw/apache2/sbin/apxs'
apache 2 filter will be built
kerberos not enabled
mysql not enabled
GSSAPI not enabled
checking for ssl... /opt/csw/
checking how to run the C preprocessor... gcc -E
checking for egrep... egrep
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
Disabled SASL
configure: creating ./config.status
config.status: creating Makefile
config.status: creating cgi/Makefile
config.status: creating common/Makefile
config.status: creating html/Makefile
config.status: creating daemon/Makefile
config.status: creating filters/apache2/Makefile
config.status: creating filters/common/Makefile
configure: configuring in libsnet
configure: running /bin/bash './configure' --prefix=/usr/local
--with-sasl=no --cache-file=/dev/null --srcdir=.
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... ./install-sh -c
checking for SSL_accept in -lssl... yes
checking for SSLeay_version in -lcrypto... yes
checking for sasl... no
checking whether to build profiled libraries... yes
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking for ld used by GCC... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/ccs/bin/nm -p
checking for a sed that does not truncate output... /opt/csw/bin/gsed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/ccs/bin/nm -p output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking whether the linker (/usr/ccs/bin/ld) supports shared
libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... solaris2.10 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
creating libtool
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
configure: configuring in libcgi
configure: running /bin/bash './configure' --prefix=/usr/local
--with-sasl=no --cache-file=/dev/null --srcdir=.
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... egrep
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for memchr... yes
checking for memmove... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for strtol... yes
configure: creating ./config.status
config.status: creating Makefile

gcc: language ildoff not recognized
gcc: ../common/cookiefs.c: linker input file unused because linking not
done
gcc -DAPXS2 -DHAVE_LIBSSL   -D_PROXY_DB=\"/var/cosign/proxy\"
-D_FILTER_DB=\"/var/cosign/filter\" -D_COSIGN_TICKET_CACHE=\"/ticket\"
-Wall -Wmissing-prototypes -g -O2 -DSSL_EXPERIMENTAL -DSSL_ENGINE -xO3
-xarch=v8 -xspace -xildoff
-I/export/home/comand/tmp/build.5.8-sparc/httpd-2.2.6/opt/csw/include
-I/opt/csw/bdb44/include -I/opt/csw/include  -I/opt/csw//include
-I/opt/csw/apache2/include -I../../libsnet  -I../../common/ -I../common/
-c  ../common/sparse.c
gcc: language ildoff not recognized
gcc: ../common/sparse.c: linker input file unused because linking not
done
/opt/csw/apache2/sbin/apxs -c
mod_cosign.o ../common/connect.o ../common/cookiefs.o ../common/sparse.o  
../../common/argcargv.o ../../common/fbase64.o  ../../common/mkcookie.o 
../../common/rate.o ../../version.o -L../../libsnet/    -L/opt/csw//lib -lsnet
/opt/csw/apache2/share/build/libtool --silent --mode=link cc -o
mod_cosign.la  -rpath /opt/csw/apache2/libexec -module -avoid-version
mod_cosign.o ../common/connect.o ../common/cookiefs.o ../common/sparse.o 
../../common/argcargv.o ../../common/fbase64.o ../../common/mkcookie.o 
../../common/rate.o ../../version.o -L../../libsnet/ -L/opt/csw//lib -lsnet


make
.
.
.
gcc: language ildoff not recognized
gcc: ../common/cookiefs.c: linker input file unused because linking not
done
gcc -DAPXS2 -DHAVE_LIBSSL   -D_PROXY_DB=\"/var/cosign/proxy\"
-D_FILTER_DB=\"/var/cosign/filter\" -D_COSIGN_TICKET_CACHE=\"/ticket\"
-Wall -Wmissing-prototypes -g -O2 -DSSL_EXPERIMENTAL -DSSL_ENGINE -xO3
-xarch=v8 -xspace -xildoff
-I/export/home/comand/tmp/build.5.8-sparc/httpd-2.2.6/opt/csw/include
-I/opt/csw/bdb44/include -I/opt/csw/include  -I/opt/csw//include
-I/opt/csw/apache2/include -I../../libsnet  -I../../common/ -I../common/
-c  ../common/sparse.c
gcc: language ildoff not recognized
gcc: ../common/sparse.c: linker input file unused because linking not
done
/opt/csw/apache2/sbin/apxs -c
mod_cosign.o ../common/connect.o ../common/cookiefs.o ../common/sparse.o  
../../common/argcargv.o ../../common/fbase64.o  ../../common/mkcookie.o 
../../common/rate.o ../../version.o -L../../libsnet/    -L/opt/csw//lib -lsnet
/opt/csw/apache2/share/build/libtool --silent --mode=link cc -o
mod_cosign.la  -rpath /opt/csw/apache2/libexec -module -avoid-version
mod_cosign.o ../common/connect.o ../common/cookiefs.o ../common/sparse.o 
../../common/argcargv.o ../../common/fbase64.o ../../common/mkcookie.o 
../../common/rate.o ../../version.o -L../../libsnet/ -L/opt/csw//lib -lsnet

*** Warning: Linking the shared library mod_cosign.la against the
non-libtool
*** objects
mod_cosign.o ../common/connect.o ../common/cookiefs.o ../common/sparse.o 
../../common/argcargv.o ../../common/fbase64.o ../../common/mkcookie.o 
../../common/rate.o ../../version.o is not portable!
ld: fatal: file mod_cosign.o: open failed: No such file or directory
apxs:Error: Command failed with rc=65536
.
*** Error code 1
make: Fatal error: Command failed for target `mod_cosign.la'
Current working directory /tmp/cosign-2.0.2a/filters/apache2
*** Error code 1
make: Fatal error: Command failed for target `filters/apache2'


Relevant environment variables are:
CPPFLAGS="-fPIC -DSHARED_MODULE"   (I tryed also without this)
LD_LIBRARY_PATH=/lib:/usr/lib:/opt/csw/lib:/opt/csw/gcc3/lib:/usr/sfw/lib:/usr/ccs/bin:/opt/csw/apache2/lib:/usr/openwin/lib:/usr/dt/lib:/usr/ucblib
(I also tryed to change order (have csw libraries first))

I spent two days with this problem and really don't know what to do. I
will be very thankful for any help.

Thank you

Matus

-- 
Matus Kovacik <[EMAIL PROTECTED]>


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Cosign-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cosign-discuss

Reply via email to