[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LYNX-DEV configure problem: "Cannot link z library"
From: |
Nelson Henry Eric |
Subject: |
Re: LYNX-DEV configure problem: "Cannot link z library" |
Date: |
Sat, 13 Dec 1997 09:10:25 +0900 (JST) |
> > checking if you want to use zlib for decompression of some gzip files...
> > yes
> > checking for gzopen... no
> > checking for gzopen in -lz... no
> > checking for -lz in /usr/local/lib... no
> > checking for -lz in /usr/local/lib/z... no
> > checking for -lz in /usr/lib... no
> > checking for -lz in /usr/lib/z... no
> > configure: error: Cannot link z library
[...]
> however, which does affect the dependencies). A copy of config.log would
> speed things up, though.
Appending config.log from where configure starts checking if we want
zlib, along with how I have libz.so installed and the way I run ./configure.
__Henry
lrwxrwxrwx 1 root other 28 12月 12日 15:11
/usr/lib/libz.so.1.0.4
-> /usr/local/lib/libz.so.1.0.4
-rw-r--r-- 1 root other 56624 12月 12日 13:09
/usr/local/lib/libz.so
.1.0.4
#!/bin/sh
RESOLVLIB=-lbind
CPPFLAGS="-DNSL_FORK"
export RESOLVLIB CPPFLAGS
./configure --with-screen=slang --with-zlib
configure:7028: checking if you want to use zlib for decompression of some gzip
files
configure:7044: checking for gzopen
configure:7072: gcc -o conftest -O2 -DNSL_FORK conftest.c -lslang -lm -lnsl
-lsocket -ltermlib 1>&5
Undefined first referenced
symbol in file
gzopen /var/tmp/cclRqXe_1.o
ld: fatal: Symbol referencing errors. No output written to conftest
configure: failed program was:
#line 7049 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char gzopen(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char gzopen();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_gzopen) || defined (__stub___gzopen)
choke me
#else
gzopen();
#endif
; return 0; }
configure:7092: checking for gzopen in -lz
configure:7102: gcc -o conftest -O2 -DNSL_FORK conftest.c -lz -lslang -lm
-lnsl -lsocket -ltermlib 1>&5
ld: fatal: library -lz: not found
ld: fatal: File processing errors. No output written to conftest
configure: failed program was:
#line 7095 "configure"
#include "confdefs.h"
#include <zlib.h>
int main() {
gzopen("name","mode")
; return 0; }
configure:7129: checking for -lz in /usr/local/lib
configure:7139: gcc -o conftest -O2 -DNSL_FORK conftest.c -L/usr/local/lib -lz
-lslang -lm -lnsl -lsocket -ltermlib 1>&5
ld: fatal: library -lz: not found
ld: fatal: File processing errors. No output written to conftest
configure: failed program was:
#line 7132 "configure"
#include "confdefs.h"
#include <zlib.h>
int main() {
gzopen("name","mode")
; return 0; }
configure:7129: checking for -lz in /usr/local/lib/z
configure:7139: gcc -o conftest -O2 -DNSL_FORK conftest.c -L/usr/local/lib/z
-lz -lslang -lm -lnsl -lsocket -ltermlib 1>&5
ld: fatal: library -lz: not found
ld: fatal: File processing errors. No output written to conftest
configure: failed program was:
#line 7132 "configure"
#include "confdefs.h"
#include <zlib.h>
int main() {
gzopen("name","mode")
; return 0; }
configure:7129: checking for -lz in /usr/lib
configure:7139: gcc -o conftest -O2 -DNSL_FORK conftest.c -L/usr/lib -lz
-lslang -lm -lnsl -lsocket -ltermlib 1>&5
ld: fatal: library -lz: not found
ld: fatal: File processing errors. No output written to conftest
configure: failed program was:
#line 7132 "configure"
#include "confdefs.h"
#include <zlib.h>
int main() {
gzopen("name","mode")
; return 0; }
configure:7129: checking for -lz in /usr/lib/z
configure:7139: gcc -o conftest -O2 -DNSL_FORK conftest.c -L/usr/lib/z -lz
-lslang -lm -lnsl -lsocket -ltermlib 1>&5
ld: fatal: library -lz: not found
ld: fatal: File processing errors. No output written to conftest
configure: failed program was:
#line 7132 "configure"
#include "confdefs.h"
#include <zlib.h>
int main() {
gzopen("name","mode")
; return 0; }