Problems trying to compile log4shib

Jose Lopez Lujan jm.lopez at
Fri Jan 13 20:39:51 GMT 2012


I've been trying to compile log4shib on Solaris SPARC 10 with Sun Studio
12.1 and the following script:

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 \

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/ -lpthread -lnsl -lsocket
mkdir .libs
CC -m64 -D_REENTRANT -m64 -xO2 -o .libs/testmain testmain.o  -mt
-L/usr/sfw/lib/sparcv9 ../src/.libs/ -lpthread -lnsl -lsocket
ld: fatal: file ../src/.libs/ open failed: No such file or
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/ Looking into the directory, the file doesn't exist which is the target of the soft link And there you go, this is my dead-end, I haven't figured
it out why's not compiling the library.

lrwxrwxrwx   1 root     root          20 Jan 13 15:31 ->
lrwxrwxrwx   1 root     root          20 Jan 13 15:31 ->
-rw-r--r--   1 root     root         853 Jan 13 15:31 liblog4shib.lai
lrwxrwxrwx   1 root     root          17 Jan 13 15:31 ->

Any thoughts? Thanks in advanced.

Jose Manuel Lopez Lujan
Senior LMS  Coordinator
University of Toronto

More information about the users mailing list