[Fwd: installing X on lfs: problem compiling zlib]

Duraid latif2221 at home.com
Fri Nov 10 01:06:00 PST 2000


i was following the instructions of the X11Guide in LFS-hints, but i had some
problems. so here is my email to the author of the guide. maybe some of  you
will chip in and try to help too.

Duraid



Sergey Ostrovsky wrote:

> Duraid wrote:
>
> > Hi, thanks for the X and kde LFS-HOWTO, thats the first thing that comes
> > to mind after installing LFS. although im getting stuck in the first
> > step, compiling zlib.
> > when i do: # OBJA=match.o make -e, i get the following error:
> >
> > LFS: /tmp/zlib-1.1.3$ cp -v contrib/asm586/match.S ./
> > contrib/asm586/match.S -> ./match.S
> >
> > LFS: /tmp/zlib-1.1.3$ CFLAGS="-O3 -DASMV -mcpu=i586 -march=i586" \
> > > ./configure --prefix=/usr --shared
> > Checking for gcc...
> > Checking for shared library support...
> > Building shared library libz.so.1.1.3 with gcc.
> > Checking for unistd.h... Yes.
> > Checking for errno.h...  Yes.
> > Checking for mmap support... Yes.
> > Checking for underline in external names... No.
> >
> > LFS: /tmp/zlib-1.1.3$ OBJA=match.o make -e
> > gcc -O3 -DASMV -mcpu=i586 -march=i586 -DHAVE_UNISTD_H -DUSE_MMAP   -c -o
> > example.o example.c
> > gcc -E -DNO_UNDERLINE match.S > _match.s
> > gcc -c _match.s
> > mv _match.o match.o
> > rm -f _match.s
> > gcc -shared -Wl,-soname,libz.so.1 -o libz.so.1.1.3 match.o
> > rm -f libz.so libz.so.1
> > ln -s libz.so.1.1.3 libz.so
> > ln -s libz.so.1.1.3 libz.so.1
> > gcc -O3 -DASMV -mcpu=i586 -march=i586 -DHAVE_UNISTD_H -DUSE_MMAP -o
> > example example.o -L. -lz
> > example.o: In function `test_compress':
> > example.o(.text+0x62): undefined reference to `compress'
> > example.o(.text+0xa8): undefined reference to `uncompress'
> > example.o: In function `test_gzio':
> > example.o(.text+0x189): undefined reference to `gzopen'
> > example.o(.text+0x1ba): undefined reference to `gzputc'
> > example.o(.text+0x1c8): undefined reference to `gzputs'
> > example.o(.text+0x1e0): undefined reference to `gzerror'
> > example.o(.text+0x211): undefined reference to `gzprintf'
> > example.o(.text+0x229): undefined reference to `gzerror'
> > example.o(.text+0x259): undefined reference to `gzseek'
> > example.o(.text+0x262): undefined reference to `gzclose'
> > example.o(.text+0x276): undefined reference to `gzopen'
> > example.o(.text+0x2ad): undefined reference to `gzread'
> > example.o(.text+0x2c7): undefined reference to `gzerror'
> > example.o(.text+0x33d): undefined reference to `gzseek'
> > example.o(.text+0x351): undefined reference to `gztell'
> > example.o(.text+0x362): undefined reference to `gztell'
> > example.o(.text+0x38d): undefined reference to `gzgetc'
> > example.o(.text+0x3bd): undefined reference to `gzgets'
> > example.o(.text+0x41a): undefined reference to `gzerror'
> > example.o(.text+0x488): undefined reference to `gzclose'
> > example.o: In function `test_deflate':
> > example.o(.text+0x511): undefined reference to `deflateInit_'
> > example.o(.text+0x575): undefined reference to `deflate'
> > example.o(.text+0x5e2): undefined reference to `deflate'
> > example.o(.text+0x5f3): undefined reference to `deflateEnd'
> > example.o: In function `test_inflate':
> > example.o(.text+0x67c): undefined reference to `inflateInit_'
> > example.o(.text+0x6f2): undefined reference to `inflate'
> > example.o(.text+0x703): undefined reference to `inflateEnd'
> > example.o: In function `test_large_deflate':
> > example.o(.text+0x7ae): undefined reference to `deflateInit_'
> > example.o(.text+0x7f9): undefined reference to `deflate'
> > example.o(.text+0x850): undefined reference to `deflateParams'
> > example.o(.text+0x864): undefined reference to `deflate'
> > example.o(.text+0x899): undefined reference to `deflateParams'
> > example.o(.text+0x8b0): undefined reference to `deflate'
> > example.o(.text+0x8e7): undefined reference to `deflate'
> > example.o(.text+0x915): undefined reference to `deflateEnd'
> > example.o: In function `test_large_inflate':
> > example.o(.text+0x998): undefined reference to `inflateInit_'
> > example.o(.text+0xa04): undefined reference to `inflate'
> > example.o(.text+0xa15): undefined reference to `inflateEnd'
> > example.o: In function `test_flush':
> > example.o(.text+0xafe): undefined reference to `deflateInit_'
> > example.o(.text+0xb4f): undefined reference to `deflate'
> > example.o(.text+0xb93): undefined reference to `deflate'
> > example.o(.text+0xbc8): undefined reference to `deflateEnd'
> > example.o: In function `test_sync':
> > example.o(.text+0xc51): undefined reference to `inflateInit_'
> > example.o(.text+0xc90): undefined reference to `inflate'
> > example.o(.text+0xca5): undefined reference to `inflateSync'
> > example.o(.text+0xcd7): undefined reference to `inflate'
> > example.o(.text+0xd05): undefined reference to `inflateEnd'
> > example.o: In function `test_dict_deflate':
> > example.o(.text+0xd72): undefined reference to `deflateInit_'
> > example.o(.text+0xdac): undefined reference to `deflateSetDictionary'
> > example.o(.text+0xe49): undefined reference to `deflate'
> > example.o(.text+0xe77): undefined reference to `deflateEnd'
> > example.o: In function `test_dict_inflate':
> > example.o(.text+0xef4): undefined reference to `inflateInit_'
> > example.o(.text+0xf6c): undefined reference to `inflateSetDictionary'
> > example.o(.text+0xf9e): undefined reference to `inflate'
> > example.o(.text+0xfaf): undefined reference to `inflateEnd'
> > example.o: In function `main':
> > example.o(.text+0x103d): undefined reference to `zlibVersion'
> > example.o(.text+0x1071): undefined reference to `zlibVersion'
> > collect2: ld returned 1 exit status
> > make: *** [example] Error 1
> >
> > that's lots of errors.... any idea, i tried many times.
> >
> > Duraid
>
> Hi,
> I will try to help you tomorrow evening.
>
> Sergey Ostrovsky.


-- 
Unsubscribe: send email to lfs-apps-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message




More information about the blfs-support mailing list