Problems trying to compile log4shib
Law, Bob
Robert.Law at wolterskluwer.com
Fri Jan 13 20:42:53 GMT 2012
I don't know if this is relevant, but for us to compile shibboleth on
Solaris 10, we used gcc 3.4.6. I believe I read somewhere that Sun's
compiler doesn't compile shibboleth.
Robert Law
Software Engineer
Wolters Kluwer Health Medical Research
801.304.3012 tel
Robert.Law at wolterskluwer.com
www.ovid.com
-----Original Message-----
From: users-bounces at shibboleth.net [mailto:users-bounces at shibboleth.net]
On Behalf Of Jose Lopez Lujan
Sent: Friday, January 13, 2012 1:40 PM
To: Shib Users
Subject: Problems trying to compile log4shib
Hi,
I've been trying to compile log4shib on Solaris SPARC 10 with Sun Studio
12.1 and the following script:
PATH=/usr/sfw/bin:/opt/SUNWspro/bin:/usr/bin:/usr/ccs/bin:/usr/dt/bin:/u
sr/
openwin/bin:/usr/sbin; export PATH
env CC="cc -m64" \
CXX="CC -m64" \
CFLAGS="-m64 -xO2" \
CXXFLAGS="-m64 -xO2" \
LDFLAGS="-L/usr/sfw/lib/sparcv9 -R/usr/sfw/lib/sparcv9" \
CCFLAGS=-m64 \
INSTALL=/usr/ucb/install \
./configure \
--disable-static \
--prefix=/local/sfw \
--disable-doxygen
#!/end
The configuration step ends well, however at the moment I start the
compilation, it just end with something like:
CC -m64 -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../src
-mt
-D_REENTRANT -m64 -xO2 -c -o testmain.o testmain.cpp
/bin/bash ../libtool --mode=link CC -m64 -mt -D_REENTRANT -m64 -xO2
-L/usr/sfw/lib/sparcv9 -R/usr/sfw/lib/sparcv9 -o testmain testmain.o
../src/liblog4shib.la -lpthread -lnsl -lsocket
mkdir .libs
CC -m64 -D_REENTRANT -m64 -xO2 -o .libs/testmain testmain.o -mt
-L/usr/sfw/lib/sparcv9 ../src/.libs/liblog4shib.so -lpthread -lnsl
-lsocket
ld: fatal: file ../src/.libs/liblog4shib.so: open failed: No such file
or
directory
ld: fatal: file processing errors. No output written to .libs/testmain
*** Error code 1
make: Fatal error: Command failed for target `testmain'
Current working directory /local/sfw/src/log4shib-1.0.4/tests
*** Error code 1
The following command caused the error:
set fnord $MAKEFLAGS; amf=$2; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='debian msvc6 msvc8 msvc9 bcb5 config src include tests'; for
subdir
in $list; do \
echo "Making $target in $subdir"; \
if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
else \
local_target="$target"; \
fi; \
(cd $subdir && make $local_target) \
|| case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$dot_seen" = "no"; then \
make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
I searched on the web but didn't find anything relevant so far. It seems
that the script cannot have access to the file
../src/.libs/liblog4shib.so. Looking into the directory, the file
liblog4shib.so.1.0.4 doesn't exist which is the target of the soft link
liblog4shib.so. And there you go, this is my dead-end, I haven't figured
it out why's not compiling the liblog4shib.so.1.0.4 library.
log4shib-1.0.4/src/.libs
.
.
.
lrwxrwxrwx 1 root root 20 Jan 13 15:31 liblog4shib.so.1
->
liblog4shib.so.1.0.4
lrwxrwxrwx 1 root root 20 Jan 13 15:31 liblog4shib.so ->
liblog4shib.so.1.0.4
-rw-r--r-- 1 root root 853 Jan 13 15:31 liblog4shib.lai
lrwxrwxrwx 1 root root 17 Jan 13 15:31 liblog4shib.la ->
../liblog4shib.la
Any thoughts? Thanks in advanced.
Best,
-
Jose Manuel Lopez Lujan
Senior LMS Coordinator
University of Toronto
--
To unsubscribe from this list send an email to
users-unsubscribe at shibboleth.net
More information about the users
mailing list