Problems while compiling

"btrenn" <[email protected]>
Newsgroups gmane.text.clearsilver.general
Message-ID <[email protected]>
Hello,

i have serious trouble to compile Clearsiver on a Virtuozzo VM.

LD_RUN_PATH="/lib" cc  -shared ClearSilver.o  -o
blib/arch/auto/ClearSilver/ClearSilver.so  
-L/root/clearsilver-0.10.4/perl/../libs -lneo_cgi -lneo_cs -lneo_utl -lz
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld:
cannot find -lz
collect2: ld returned 1 exit status
make[1]: *** [blib/arch/auto/ClearSilver/ClearSilver.so] Error 1
make[1]: Leaving directory `/root/clearsilver-0.10.4/perl'
make: *** [cs] Error 



Here the complete Output.

Can anyone help ?


Thanks and best regards from Munich

Boris



tx5:~/clearsilver-0.10.4 # ./configure
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 whether ln -s works... yes
checking for ar... ar
checking for ranlib... ranlib
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for Neotonic Paths... not found
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... 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 stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking varargs.h usability... no
checking varargs.h presence... no
checking for varargs.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking return type of signal handlers... void
checking for strftime... yes
checking for vprintf... yes
checking for _doprnt... no
checking for wait3 that fills in rusage... yes
checking for gettimeofday... yes
checking for mktime... yes
checking for putenv... yes
checking for strerror... yes
checking for strspn... yes
checking for strtod... yes
checking for strtol... yes
checking for strtoul... yes
checking for random... yes
checking for rand... yes
checking for drand48... yes
checking for lockf... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for snprintf... yes
checking for vsnprintf... yes
checking for localtime_r... yes
checking whether localtime_r is declared... yes
checking for gmtime_r... yes
checking whether gmtime_r is declared... yes
checking for strtok_r... yes
checking whether strtok_r is declared... yes
checking for mkstemp... yes
checking for regexec... yes
checking for deflate in -lz... no
checking for apache apxs... not found
checking for python includes... found /usr/include/python2.4
checking for perl >= 5.006... found /usr/bin/perl
checking for ruby... not found
checking for j2sdk path... not found
checking for csharp path... not found
configure: creating ./config.status
config.status: creating rules.mk
config.status: creating cs_config.h
config.status: cs_config.h is unchanged
tx5:~/clearsilver-0.10.4 # make
*******************************************
** Building Dependencies
** OSNAME: Linux
** (done)
make[1]: Entering directory `/root/clearsilver-0.10.4/util'
*******************************************
** Building Dependencies
** OSNAME: Linux
** (done)
make[1]: Leaving directory `/root/clearsilver-0.10.4/util'
make[1]: Entering directory `/root/clearsilver-0.10.4/util'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/root/clearsilver-0.10.4/util'
make[1]: Entering directory `/root/clearsilver-0.10.4/cs'
*******************************************
** Building Dependencies
** OSNAME: Linux
** (done)
make[1]: Leaving directory `/root/clearsilver-0.10.4/cs'
make[1]: Entering directory `/root/clearsilver-0.10.4/cs'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/root/clearsilver-0.10.4/cs'
make[1]: Entering directory `/root/clearsilver-0.10.4/cgi'
*******************************************
** Building Dependencies
** OSNAME: Linux
** (done)
make[1]: Leaving directory `/root/clearsilver-0.10.4/cgi'
make[1]: Entering directory `/root/clearsilver-0.10.4/cgi'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/root/clearsilver-0.10.4/cgi'
make[1]: Entering directory `/root/clearsilver-0.10.4/python'
*******************************************
** Building Dependencies
** OSNAME: Linux
** (done)
make[1]: Leaving directory `/root/clearsilver-0.10.4/python'
make[1]: Entering directory `/root/clearsilver-0.10.4/python'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/root/clearsilver-0.10.4/python'
make[1]: Entering directory `/root/clearsilver-0.10.4/util'
gcc -g -O2 -Wall -I..  -fPIC -o neo_err.o -c neo_err.c
gcc -g -O2 -Wall -I..  -fPIC -o neo_files.o -c neo_files.c
gcc -g -O2 -Wall -I..  -fPIC -o neo_misc.o -c neo_misc.c
gcc -g -O2 -Wall -I..  -fPIC -o neo_rand.o -c neo_rand.c
gcc -g -O2 -Wall -I..  -fPIC -o ulist.o -c ulist.c
gcc -g -O2 -Wall -I..  -fPIC -o neo_hdf.o -c neo_hdf.c
gcc -g -O2 -Wall -I..  -fPIC -o neo_str.o -c neo_str.c
gcc -g -O2 -Wall -I..  -fPIC -o neo_date.o -c neo_date.c
gcc -g -O2 -Wall -I..  -fPIC -o wildmat.o -c wildmat.c
gcc -g -O2 -Wall -I..  -fPIC -o neo_hash.o -c neo_hash.c
gcc -g -O2 -Wall -I..  -fPIC -o ulocks.o -c ulocks.c
gcc -g -O2 -Wall -I..  -fPIC -o rcfs.o -c rcfs.c
gcc -g -O2 -Wall -I..  -fPIC -o skiplist.o -c skiplist.c
gcc -g -O2 -Wall -I..  -fPIC -o dict.o -c dict.c
gcc -g -O2 -Wall -I..  -fPIC -o filter.o -c filter.c
gcc -g -O2 -Wall -I..  -fPIC -o neo_net.o -c neo_net.c
gcc -g -O2 -Wall -I..  -fPIC -o neo_server.o -c neo_server.c
ar cr ../libs/libneo_utl.a neo_err.o neo_files.o neo_misc.o neo_rand.o
ulist.o neo_hdf.o neo_str.o neo_date.o wildmat.o neo_hash.o ulocks.o
rcfs.o skiplist.o dict.o filter.o neo_net.o neo_server.o
ranlib ../libs/libneo_utl.a
make[1]: Leaving directory `/root/clearsilver-0.10.4/util'
make[1]: Entering directory `/root/clearsilver-0.10.4/cs'
gcc -g -O2 -Wall -I..  -fPIC -o csparse.o -c csparse.c
ar cr ../libs/libneo_cs.a csparse.o
ranlib ../libs/libneo_cs.a
gcc -g -O2 -Wall -I..  -fPIC -o cstest.o -c cstest.c
gcc -o cstest cstest.o -L../libs/   -lneo_cs -lneo_utl  # -lefence
gcc -g -O2 -Wall -I..  -fPIC -o cs.o -c cs.c
gcc -o cs cs.o -L../libs/   -lneo_cs -lneo_utl  # -lefence
Running cs regression tests
Passed
make[1]: Leaving directory `/root/clearsilver-0.10.4/cs'
make[1]: Entering directory `/root/clearsilver-0.10.4/cgi'
gcc -g -O2 -Wall -I..  -fPIC -o cgiwrap.o -c cgiwrap.c
gcc -g -O2 -Wall -I..  -fPIC -o cgi.o -c cgi.c
gcc -g -O2 -Wall -I..  -fPIC -o html.o -c html.c
gcc -g -O2 -Wall -I..  -fPIC -o date.o -c date.c
gcc -g -O2 -Wall -I..  -fPIC -o rfc2388.o -c rfc2388.c
ar cr ../libs/libneo_cgi.a cgiwrap.o cgi.o html.o date.o rfc2388.o
ranlib ../libs/libneo_cgi.a
gcc -g -O2 -Wall -I..  -fPIC -o static.o -c static.c
gcc -o cs_static.cgi static.o -L../libs/  -lneo_cgi -lneo_cs -lneo_utl
gcc -shared -fPIC -o cs_static.cso static.o -L../libs/  -lneo_cgi
-lneo_cs -lneo_utl
gcc -g -O2 -Wall -I..  -fPIC -o cgi_cstest.o -c cgi_cstest.c
gcc -o cgi_cstest cgi_cstest.o -L../libs/  -lneo_cgi -lneo_cs -lneo_utl
make[1]: Leaving directory `/root/clearsilver-0.10.4/cgi'
make[1]: Entering directory `/root/clearsilver-0.10.4/python'
rm -f neo_cgi.so
CC="gcc" LDSHARED="gcc -shared -fPIC" /usr/bin/python2.4 setup.py
build_ext --inplace
adding lib_path $(LIB_DIR)
Overriding setup's CC from gcc -pthread to gcc
running build_ext
building 'neo_cgi' extension
gcc -shared -fPIC build/temp.linux-i686-2.4/neo_cgi.o
build/temp.linux-i686-2.4/neo_cs.o
build/temp.linux-i686-2.4/neo_util.o -L $(NEOTONIC_ROOT)/libs/
-L../libs -lneo_cgi -lneo_cs -lneo_utl -o neo_cgi.so
make[1]: Leaving directory `/root/clearsilver-0.10.4/python'
Checking if your kit is complete...
Looks good
Warning: -L../libs changed to -L/root/clearsilver-0.10.4/perl/../libs
Writing Makefile for ClearSilver
make[1]: Entering directory `/root/clearsilver-0.10.4/perl'
cp ClearSilver.pm blib/lib/ClearSilver.pm
/usr/bin/perl /usr/lib/perl5/5.8.7/ExtUtils/xsubpp  -typemap
/usr/lib/perl5/5.8.7/ExtUtils/typemap -typemap typemap  ClearSilver.xs
> ClearSilver.xsc && mv ClearSilver.xsc ClearSilver.c
Please specify prototyping behavior for ClearSilver.xs (see perlxs manual)
cc -c  -I../ -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -march=i586 -mtune=i686 -fmessage-length=0
-Wall -D_FORTIFY_SOURCE=2 -g -Wall -pipe   -DVERSION=\"0.01\"
-DXS_VERSION=\"0.01\" -fPIC
"-I/usr/lib/perl5/5.8.7/i586-linux-thread-multi/CORE"   ClearSilver.c
ClearSilver.c: In function 'XS_ClearSilver__CS_new':
ClearSilver.c:652: warning: unused variable 'self'
Running Mkbootstrap for ClearSilver ()
chmod 644 ClearSilver.bs
rm -f blib/arch/auto/ClearSilver/ClearSilver.so
LD_RUN_PATH="/lib" cc  -shared ClearSilver.o  -o
blib/arch/auto/ClearSilver/ClearSilver.so  
-L/root/clearsilver-0.10.4/perl/../libs -lneo_cgi -lneo_cs -lneo_utl -lz
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld:
cannot find -lz
collect2: ld returned 1 exit status
make[1]: *** [blib/arch/auto/ClearSilver/ClearSilver.so] Error 1
make[1]: Leaving directory `/root/clearsilver-0.10.4/perl'
make: *** [cs] Error 2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.