I am trying to compile the 4.2.99.3 XFree86, and while this is not specifically a XFree86 problem, I need to get past it to continue with the compile.  I'm hoping some can help me please.  I googled and found a zillion hits, but looking at a few of them didn't tell me anything I didn't know from the message:  the build can't find xxxx.

I am apparently getting problems trying to access the zlib stuff.  The messages are:
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libpng.so: undefined reference to `deflate'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libpng.so: undefined reference to `inflate'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libpng.so: undefined reference to `inflateInit_'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libpng.so: undefined reference to `crc32'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libpng.so: undefined reference to `deflateInit2_'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libpng.so: undefined reference to `inflateReset'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libpng.so: undefined reference to `deflateReset'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libpng.so: undefined reference to `inflateEnd'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libpng.so: undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
make[4]: *** [xcursorgen] Error 1
make[4]: Target `all' not remade because of errors.
make[4]: Target `all' not remade because of errors.
/bin/sh: line 1: ../../../exports/bin/xcursorgen: No such file or directory

When I first compiled, it couldn't find png.h so I went and found that.  Then it said it needed zlib so I went and found that.  Installed zlib with no apparent errors.  Then installed libpng with no apparent errors.  Recompiled again.  Still couldn't find png.h.

Q1:  I thought the make install was supposet to move the stuff in.  Is my thinking broke here?

Moved png.h to /usr/local/include (and then several others as iterations found them) and now when I compile I get the above errors.  I tried moving the libpng.so to /usr/lib/  (actually a symbolic link).  Still no go.

I've got a zillion zlibs on this system.  I have my source at /usr/src/zlib-1.1.4 and symbolic link to same as /usr/src/zlib.

Q2 & 3: There is no zlib.so anywhere and I have the deflate.o (and all the rest) where the source is.  Where should I put them?  I see there is a deflate.c in the XFree86 cvs tree - shouldn't it be building and using that?

(Qn)  What am I doing wrong?  (well, at least this time :)  )
-g
Thanks again for all of your patience and assistance.

Reply via email to