Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#20 Irix 64bit libpng does not work properly

closed-fixed
Lee Butler
5
2005-02-22
2005-02-22
Lee Butler
No

pix-png does not work on Irix 64bit. It does work on Irix 32bit amd
opteron (64bit)

pngtest under Irix 64bit passes

pix-png dies with errror message:

6112451:/usr/brlcad7.2/mips64/bin/pix-png: rld: Fatal Error:
attempted access to unresolvable symbol in /usr/brlcad7.2/mips64/
lib/libpng.so.2: crc32

Discussion

  • Lee Butler
    Lee Butler
    2005-02-22

    Logged In: YES
    user_id=1179270

    This is a libtool link error. The "pngtest" in the libtool directory is properly
    linked. The compilation for pix-png erroneously presents -lz before -lpng.
    In fact the link line complains that:

    ld64: WARNING 84 : /usr/lib64/libz.a is not used for resolving any symbol.

    There was nothing in configure.ac which indicates that libpng is dependent
    upon libz. I added the line: unsigned long l = crc32(0,0,0) to the libpng
    test.

    I added the following line:
    libpng_la_LIBADD=${LIBZ}
    to libpng/Makefile.am to cause a link with libpng to append the -lz
    afterwards to get the libraries linked in the right order.

    This is now fixed in CVS

     
  • Lee Butler
    Lee Butler
    2005-02-22

    • assigned_to: nobody --> lbutler
    • status: open --> closed-fixed