Difficulty compiling Links w/ libpng on Solaris 2.5.1

39 views
Skip to first unread message

Doktor Enoch Zembecowicz

unread,
Sep 15, 2004, 3:57:01 AM9/15/04
to
Hi,
I am trying to get Links to build with graphics support on Solaris 2.5.1.
I'm using the gcc 3.4.1, libiconv 1.8, , binutils 2.11.2, and libpng
1.2.5 packages from sunfreeware.com and I believe I've handled all the
dependecies but I am getting errors regarding libpng during the
./configure portion of things.

Here's the output I get initially:

checking for png.h... yes
checking for libpng/png.h... yes
checking for png_create_info_struct in -lpng... no
configure: error: You need libpng to compile Links in graphics mode

After stoping around in config.log I came across this:

configure:4791: gcc -o conftest -g -O2 conftest.c -lpng -ldl -lnsl -lsocket -
lm 1>&5
Undefined first referenced
symbol in file
inflateEnd /usr/local/lib/gcc/sparc-sun-solaris2.5.1/3.
4.1/../../../libpng.so
deflateInit2_ /usr/local/lib/gcc/sparc-sun-solaris2.5.1/3.
4.1/../../../libpng.so
deflateReset /usr/local/lib/gcc/sparc-sun-solaris2.5.1/3.
4.1/../../../libpng.so
inflate /usr/local/lib/gcc/sparc-sun-solaris2.5.1/3.
4.1/../../../libpng.so
deflate /usr/local/lib/gcc/sparc-sun-solaris2.5.1/3.
4.1/../../../libpng.so
deflateEnd /usr/local/lib/gcc/sparc-sun-solaris2.5.1/3.
4.1/../../../libpng.so
inflateInit_ /usr/local/lib/gcc/sparc-sun-solaris2.5.1/3.
4.1/../../../libpng.so
inflateReset /usr/local/lib/gcc/sparc-sun-solaris2.5.1/3.
4.1/../../../libpng.so
crc32 /usr/local/lib/gcc/sparc-sun-solaris2.5.1/3.
4.1/../../../libpng.so
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status

Here is my LD_LIBRARY_PATH:/usr/lib:/usr/local/lib:/usr/local/lib/gcc/sparc-sun-solaris2.5.1/3.4.1:/lib


Thanks in advance for the help.

Glenn Randers-Pehrson

unread,
Sep 15, 2004, 4:20:11 PM9/15/04
to
Doktor Enoch Zembecowicz <en...@zembecowicz.org> wrote in message news:<pan.2004.09.15....@zembecowicz.org>...

The missing symbols are all in zlib.

Add -lz to your compile directive.

Glenn

Reply all
Reply to author
Forward
0 new messages