[Kde-extra-gear] How do I avoid xfree86's old zlib when configuring
kile
Torquil Macdonald Sørensen
tmac at ulrik.uio.no
Fri Jan 23 17:02:02 CET 2004
This problem is related to the following (resolved) bugreport:
http://bugs.kde.org/show_bug.cgi?id=67030
The kile configure script stops when it detects the old zlib
that has been installed together with xfree86. I am NOT ROOT, so I
am unable to remove that zlib.
I have installed my own zlib in $HOME/usr, but I don't know how I can
tell configure that this is the zlib I want to use...
I have the following environment variables set:
LD_LIBRARY_PATH=$HOME/usr/lib
LD_RUN_PATH=$HOME/usr/lib
LIBRARY_PATH=$HOME/usr/lib
Any suggestions?
----------------
Here is some output from the configure script:
checking for vsnprintf... yes
checking for snprintf... yes
checking for X... libraries /local/X11R6/lib, headers /local/X11R6/include
checking for IceConnectionNumber in -lICE... yes
checking for libXext... yes
checking for pthread_create in -lpthread... yes
checking for extra includes... no
checking for extra libs... no
checking for libz... configure: error: not found.
Possibly configure picks up an outdated version
installed by XFree86. Remove it from your system.
Check your installation and look into config.log
----------------
configure:25908: checking for libz
configure:25950: gcc -o conftest -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing
-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2 -Wformat-security -Wmissing-form
at-attribute -I/local/X11R6/include -D_REENTRANT conftest.c -L/local/X11R6/lib -lz >&5
conftest.c: In function `main':
conftest.c:51: warning: implicit declaration of function `gzgets'
/tmp/ccudykXQ.o(.text+0x13): In function `main':
: undefined reference to `gzgets'
collect2: ld returned 1 exit status
configure:25953: $? = 1
configure: failed program was:
| /* #line 25924 "configure" */
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "kile-1.6"
| #define VERSION "3.1.92"
| #ifdef __cplusplus
| #include <stdlib.h>
| #endif
| #define KDELIBSUFF ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_SGI_STL 1
| #define HAVE_CRYPT 1
| #define ksize_t socklen_t
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_RES_INIT 1
| #define HAVE_RES_INIT 1
| #define SIZEOF_INT 4
| #define SIZEOF_LONG 4
| #define SIZEOF_CHAR_P 4
| #define SIZEOF_SIZE_T 4
| #define SIZEOF_UNSIGNED_LONG 4
| #define HAVE_VSNPRINTF 1
| #define HAVE_SNPRINTF 1
| /* end confdefs.h. */
|
| #include<zlib.h>
|
| int
| main ()
| {
|
| char buf[42];
| gzFile f = (gzFile) 0;
| /* this would segfault.. but we only link, don't run */
| (void) gzgets(f, buf, sizeof(buf));
|
| return (zlibVersion() == ZLIB_VERSION);
|
| ;
| return 0;
| }
configure:25987: error: not found.
Possibly configure picks up an outdated version
installed by XFree86. Remove it from your system.
Check your installation and look into config.log
More information about the Kde-extra-gear
mailing list