mldonkey-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-bugs] [bug #13480] GD libraries not found on FreeBSD


From: savannah-bounces
Subject: [Mldonkey-bugs] [bug #13480] GD libraries not found on FreeBSD
Date: Fri, 24 Jun 2005 00:07:35 +0000
User-agent: Opera/8.01 (Windows NT 5.1; U; en)

Follow-up Comment #12, bug #13480 (project mldonkey):

* My config/configure.in now states:
LIBGD_GIF=no
AC_CHECK_LIB(gd, gdImageGif,[LIBGD_GIF=yes])

LIBGD_PNG=no
AC_CHECK_LIB(gd, gdImagePng, [LIBGD_PNG=yes])

LIBGD_JPG=no
AC_CHECK_LIB(gd, gdImageJpeg, [LIBGD_JPG=yes])

* I have installed libgd with no png support. I guess configure sences it
correctly:

checking for png_create_read_struct  in -lpng... yes
checking for jpeg_CreateCompress in -ljpeg... yes
checking for gdImageGif in -lgd... yes
checking for gdImagePng in -lgd... no
checking for gdImageJpeg in -lgd... yes
checking compile with gd... yes

* But gdstubs still want to link against the png lib (so it seems)

ocamlopt.opt -inline 10 -linkall  -o mlnet       unix.cmxa str.cmxa -ccopt
"-L/usr/local/lib -I/usr/local/include" -cclib "-lcharset 
/usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib" -cclib -lz -cclib
-lgd -cclib -lpng -cclib -ljpeg -cclib -lfreetype -cclib -lm -ccopt
-DHAVE_JPEG -ccopt -W -ccopt -Wall -ccopt -Wno-unused -ccopt "-D_THREAD_SAFE
-pthread"   -I build    build/cdk.cmxa    build/common.cmxa   
build/client.cmxa    build/core.cmxa    build/driver.cmxa   
src/daemon/common/commonMain.cmx
src/utils/cdk/gdstubs.o(.text+0x29c): In function `ml_image_open_png':
src/utils/cdk/gdstubs.c:151: undefined reference to `gdImageCreateFromPng'
src/utils/cdk/gdstubs.o(.text+0xa0b): In function `ml_save_png':
src/utils/cdk/gdstubs.c:341: undefined reference to `gdImagePng'
src/utils/cdk/gdstubs.o(.text+0xa9b): In function `ml_dump_png':
src/utils/cdk/gdstubs.c:371: undefined reference to `gdImagePngPtr'
Error during linking
gmake: *** [mlnet] Error 2

* By the way, gif isn't used in gdstubs only png and jpeg. If it isn't used
anywhere in the code, then why check for it in configure? I have added the
compile time checks to gdstubs.c, compiles perfectly now. See
add_png_check.patch. Didn't have time to check the binairy yet, but I don't
expect problems.

    _______________________________________________________

Additional Item Attachment:

File name: add_png_check.patch            Size:1 KB
Add compile time check for PNG lib availability
<http://savannah.nongnu.org/bugs/download.php?item_id=13480&item_file_id=2628>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=13480>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]