bugmldonkey, a multi-networks file-sharing client - Bugs: bug #14333, Solve libgd configure in mandrake...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #14333: Solve libgd configure in mandrake 10.0

Submitter:  Alessandroni Paolo <alessandronip>
Submitted:  Tue 30 Aug 2005 07:48:10 AM UTC
   
 
Category:  Core Severity:  4 - Important
Item Group:  Compilation problem Status:  Ready For Test
Assigned to:  None Open/Closed:  Closed
Release:  2.6.3 Release: 
Operating System:  Linux Binaries Origin:  CVS / Self compiled
CPU type:  None

Jump to the original submission

Wed 31 Aug 2005 01:46:15 PM UTC, comment #10: 

OK. New patch work

.\config report:
...
checking for gdlib-config... gdlib-config
checking for gdImageCreate in -lgd... no
checking for gdImageCreate in -lgd... yes
checking for png_create_read_struct  in -lpng... yes
checking for gdImagePng in -lgd... no
checking for gdImagePng in -lgd... yes
checking for png_access_version_number in -lpng... yes
configure: using png support in libgd
checking for jpeg_CreateCompress in -ljpeg... yes
checking for gdImageJpeg in -lgd... no
checking for gdImageJpeg in -lgd... yes
configure: using jpeg support in libgd
checking support for graphical statistics... yes
...

ldd /usr/lib/libgd.so report:
        linux-gate.so.1 =>  (0xffffe000)
        libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40048000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40058000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4013a000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x4015a000)
        libpng.so.3 => /usr/lib/libpng.so.3 (0x401b9000)
        libz.so.1 => /lib/libz.so.1 (0x401df000)
        libm.so.6 => /lib/tls/libm.so.6 (0x401f0000)
        libc.so.6 => /lib/tls/libc.so.6 (0x40213000)
        libdl.so.2 => /lib/libdl.so.2 (0x4035b000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

Alessandroni Paolo <alessandronip>
Wed 31 Aug 2005 01:26:30 PM UTC, comment #9: 

Please post the output of

ldd /usr/lib/libgd.so

spiralvoice <spiralvoice>
Group administrator
Wed 31 Aug 2005 12:21:57 PM UTC, comment #8: 

Patch updated, please try again.

spiralvoice <spiralvoice>
Group administrator
Wed 31 Aug 2005 11:17:55 AM UTC, comment #7: 

config.log  contain:

configure:13136: checking for gdlib-config
configure:13152: found /usr/bin/gdlib-config
configure:13162: result: gdlib-config
configure:13175: checking for gdImageCreate in -lgd
configure:13193: gcc -o conftest -g -O2   conftest.c   -lgd -lXpm -lX11 -ljpeg -lfreetype -lpng -lz -lm >&5
/usr/bin/ld: cannot find -lXpm
collect2: ld returned 1 exit status
configure:13199: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define _FILE_OFFSET_BITS 64
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define SIZEOF_INT 4
| #define SIZEOF_LONG 4
| #define SIZEOF_VOID_P 4
| #define SIZEOF_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_FLOAT 4
| #define SIZEOF_DOUBLE 8
| #define HAVE_ARPA_INET_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_NETINET_IN_SYSTM_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_NETINET_IP_H 1
| #define HAVE_SYS_POLL_H 1
| #define HAVE_POLL 1
| #define HAVE_SYS_VFS_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_MOUNT_H 1
| #define HAVE_ZLIB_H 1
| #define HAVE_ZLIBVERSION 1
| #define HAVE_BZLIB_H 1
| #define HAVE_BZLIBVERSION 1
| #define USE_BZIP2 1
| #define HAVE_BYTESWAP_H 1
| #define HAVE_ENDIAN_H 1
| #define ENABLE_SHA1NEW 1
| #define HAVE_ICONV 1
| #define ICONV_CONST
| #define HAVE_LOCALE_H 1
| #define HAVE_LINUX_LIMITS_H 1
| #define HAVE_GNU_LIBC_VERSION_H 1
| #define HAVE_PTHREAD 1
| /* end confdefs.h.  */
| #include <gd.h>
| int
| main ()
| {
| gdImageCreate (0,0);
|   ;
|   return 0;
| }
configure:13223: result: no
configure:13227: checking trying another method
configure:13230: checking for gdImageCreate in -lgd
configure:13260: gcc -o conftest -g -O2   conftest.c -lgd    >&5
configure:13266: $? = 0
configure:13270: test -z
|| test ! -s conftest.err
configure:13273: $? = 0
configure:13276: test -s conftest
configure:13279: $? = 0
configure:13292: result: yes
configure:13306: checking for png_create_read_struct  in -lpng
configure:13336: gcc -o conftest -g -O2   conftest.c -lpng    -lgd -lXpm -lX11 -ljpeg -lfreetype -lpng -lz -lm >&5
/usr/bin/ld: cannot find -lXpm
collect2: ld returned 1 exit status
configure:13342: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define _FILE_OFFSET_BITS 64
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define SIZEOF_INT 4
| #define SIZEOF_LONG 4
| #define SIZEOF_VOID_P 4
| #define SIZEOF_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_FLOAT 4
| #define SIZEOF_DOUBLE 8
| #define HAVE_ARPA_INET_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_NETINET_IN_SYSTM_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_NETINET_IP_H 1
| #define HAVE_SYS_POLL_H 1
| #define HAVE_POLL 1
| #define HAVE_SYS_VFS_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_MOUNT_H 1
| #define HAVE_ZLIB_H 1
| #define HAVE_ZLIBVERSION 1
| #define HAVE_BZLIB_H 1
| #define HAVE_BZLIBVERSION 1
| #define USE_BZIP2 1
| #define HAVE_BYTESWAP_H 1
| #define HAVE_ENDIAN_H 1
| #define ENABLE_SHA1NEW 1
| #define HAVE_ICONV 1
| #define ICONV_CONST
| #define HAVE_LOCALE_H 1
| #define HAVE_LINUX_LIMITS_H 1
| #define HAVE_GNU_LIBC_VERSION_H 1
| #define HAVE_PTHREAD 1
| /* end confdefs.h.  */
|
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char png_create_read_struct  ();
| int
| main ()
| {
| png_create_read_struct  ();
|   ;
|   return 0;
| }
configure:13368: result: no
configure:13376: png support not available
configure:13598: checking for jpeg_CreateCompress in -ljpeg
configure:13628: gcc -o conftest -g -O2   conftest.c -ljpeg    -lgd -lXpm -lX11 -ljpeg -lfreetype -lpng -lz -lm >&5
/usr/bin/ld: cannot find -lXpm
collect2: ld returned 1 exit status
configure:13634: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define _FILE_OFFSET_BITS 64
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define SIZEOF_INT 4
| #define SIZEOF_LONG 4
| #define SIZEOF_VOID_P 4
| #define SIZEOF_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_FLOAT 4
| #define SIZEOF_DOUBLE 8
| #define HAVE_ARPA_INET_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_NETINET_IN_SYSTM_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_NETINET_IP_H 1
| #define HAVE_SYS_POLL_H 1
| #define HAVE_POLL 1
| #define HAVE_SYS_VFS_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_MOUNT_H 1
| #define HAVE_ZLIB_H 1
| #define HAVE_ZLIBVERSION 1
| #define HAVE_BZLIB_H 1
| #define HAVE_BZLIBVERSION 1
| #define USE_BZIP2 1
| #define HAVE_BYTESWAP_H 1
| #define HAVE_ENDIAN_H 1
| #define ENABLE_SHA1NEW 1
| #define HAVE_ICONV 1
| #define ICONV_CONST
| #define HAVE_LOCALE_H 1
| #define HAVE_LINUX_LIMITS_H 1
| #define HAVE_GNU_LIBC_VERSION_H 1
| #define HAVE_PTHREAD 1
| /* end confdefs.h.  */
|
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char jpeg_CreateCompress ();
| int
| main ()
| {
| jpeg_CreateCompress ();
|   ;
|   return 0;
| }
configure:13660: result: no
configure:13668: jpeg support not available
configure:13823: checking support for graphical statistics
configure:13833: result: no

Alessandroni Paolo <alessandronip>
Wed 31 Aug 2005 09:50:08 AM UTC, comment #6: 

Please post config.log section where

png_create_read_struct

and

jpeg_CreateCompress

is checked.

As you can see

checking for gdImageCreate in -lgd... no
checking trying another method... checking for gdImageCreate in -lgd... yes

checking for libgd works now, as opposed to the previous version:

checking for gdImageCreate in -lgd... no
checking trying another method... checking for gdImageCreate in -lgd... no

spiralvoice <spiralvoice>
Group administrator
Wed 31 Aug 2005 06:13:54 AM UTC, comment #5: 

With attached patch not work.

./configure --enable-batch --enable-gui=newgui1 --enable-pthread
...
checking for bzip2... bzip2
checking for gzip... (cached) bzip2
checking for gdlib-config... gdlib-config
checking for gdImageCreate in -lgd... no
checking trying another method... checking for gdImageCreate in -lgd... yes
checking for png_create_read_struct  in -lpng... no
configure: png support not available
checking for jpeg_CreateCompress in -ljpeg... no
configure: jpeg support not available
checking support for graphical statistics... no
...


Alessandroni Paolo <alessandronip>
Tue 30 Aug 2005 04:56:41 PM UTC, comment #4: 

gdlib-config --libs report:
-lXpm -lX11 -ljpeg -lfreetype -lpng -lz -lm

/usr/bin/ld: cannot find -lXpm

gdlib-config reports wrong values, therefore MLDonkey fails to
check presence of libgd. Before this patch MLDonkey did not care,
but because of MinGW it was necessary to use the reported libs.

Please try the attached patch which reverts to the old behaviour
for the alternative test, which is in fact the original one.
See the patch as a work-around for a bug on your system.

spiralvoice <spiralvoice>
Group administrator
Tue 30 Aug 2005 01:10:18 PM UTC, comment #3: 

With version release-2-6-3 libgd work:

./configure --enable-batch --enable-gui=newgui1 --enable-pthread
...
checking for bzip2... bzip2
checking for gzip... (cached) bzip2
checking for gdImageCreate  in -lgd... yes
checking for png_create_read_struct  in -lpng... yes
checking for gdImagePng in -lgd... yes
checking for png_access_version_number in -lpng... yes
configure: using png support in libgd
checking for jpeg_CreateCompress in -ljpeg... yes
checking for gdImageJpeg in -lgd... yes
configure: using jpeg support in libgd
checking support for graphical statistics... yes
...

With last CVS release with patch 4362 reversed (patch -R) (and config.h deleted) also work:
./configure --enable-batch --enable-gui=newgui1 --enable-pthread
...
checking for bzip2... bzip2
checking for gzip... (cached) bzip2
checking for gdImageCreate  in -lgd... yes
checking for png_create_read_struct  in -lpng... yes
checking for gdImagePng in -lgd... yes
checking for png_access_version_number in -lpng... yes
configure: using png support in libgd
checking for jpeg_CreateCompress in -ljpeg... yes
checking for gdImageJpeg in -lgd... yes
configure: using jpeg support in libgd
checking support for graphical statistics... yes
...

Alessandroni Paolo <alessandronip>
Tue 30 Aug 2005 10:49:45 AM UTC, comment #2: 

The release is the last CVS download (2005/08/29) with patch 4362 applied.

gdlib-config --libs report:
-lXpm -lX11 -ljpeg -lfreetype -lpng -lz -lm

config.log report:
...
configure:13136: checking for gdlib-config
configure:13152: found /usr/bin/gdlib-config
configure:13162: result: gdlib-config
configure:13174: checking for gdImageCreate in -lgd
configure:13192: gcc -o conftest -g -O2   conftest.c   -lgd -lXpm -lX11 -ljpeg -lfreetype -lpng -lz -lm >&5
/usr/bin/ld: cannot find -lXpm
collect2: ld returned 1 exit status
configure:13198: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define _FILE_OFFSET_BITS 64
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define SIZEOF_INT 4
| #define SIZEOF_LONG 4
| #define SIZEOF_VOID_P 4
| #define SIZEOF_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_FLOAT 4
| #define SIZEOF_DOUBLE 8
| #define HAVE_ARPA_INET_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_NETINET_IN_SYSTM_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_NETINET_IP_H 1
| #define HAVE_SYS_POLL_H 1
| #define HAVE_POLL 1
| #define HAVE_SYS_VFS_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_MOUNT_H 1
| #define HAVE_ZLIB_H 1
| #define HAVE_ZLIBVERSION 1
| #define HAVE_BZLIB_H 1
| #define HAVE_BZLIBVERSION 1
| #define USE_BZIP2 1
| #define HAVE_BYTESWAP_H 1
| #define HAVE_ENDIAN_H 1
| #define ENABLE_SHA1NEW 1
| #define HAVE_ICONV 1
| #define ICONV_CONST
| #define HAVE_LOCALE_H 1
| #define HAVE_LINUX_LIMITS_H 1
| #define HAVE_GNU_LIBC_VERSION_H 1
| #define HAVE_PTHREAD 1
| /* end confdefs.h.  */
| #include <gd.h>
| int
| main ()
| {
| gdImageCreate (0,0);
|   ;
|   return 0;
| }
configure:13222: result: no
configure:13226: checking trying another method
configure:13228: checking for gdImageCreate in -lgd
configure:13258: gcc -o conftest -g -O2   conftest.c -lgd    -lgd -lXpm -lX11 -ljpeg -lfreetype -lpng -lz -lm >&5
/usr/bin/ld: cannot find -lXpm
collect2: ld returned 1 exit status
configure:13264: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define _FILE_OFFSET_BITS 64
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define SIZEOF_INT 4
| #define SIZEOF_LONG 4
| #define SIZEOF_VOID_P 4
| #define SIZEOF_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_FLOAT 4
| #define SIZEOF_DOUBLE 8
| #define HAVE_ARPA_INET_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_NETINET_IN_SYSTM_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_NETINET_IP_H 1
| #define HAVE_SYS_POLL_H 1
| #define HAVE_POLL 1
| #define HAVE_SYS_VFS_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_MOUNT_H 1
| #define HAVE_ZLIB_H 1
| #define HAVE_ZLIBVERSION 1
| #define HAVE_BZLIB_H 1
| #define HAVE_BZLIBVERSION 1
| #define USE_BZIP2 1
| #define HAVE_BYTESWAP_H 1
| #define HAVE_ENDIAN_H 1
| #define ENABLE_SHA1NEW 1
| #define HAVE_ICONV 1
| #define ICONV_CONST
| #define HAVE_LOCALE_H 1
| #define HAVE_LINUX_LIMITS_H 1
| #define HAVE_GNU_LIBC_VERSION_H 1
| #define HAVE_PTHREAD 1
| /* end confdefs.h.  */
|
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char gdImageCreate ();
| int
| main ()
| {
| gdImageCreate ();
|   ;
|   return 0;
| }
configure:13290: result: no
configure:13811: libgd not available
configure:13816: checking support for graphical statistics
configure:13826: result: no
...

Alessandroni Paolo <alessandronip>
Tue 30 Aug 2005 09:57:28 AM UTC, comment #1: 

Please post the parts of config.log which deal with gdImageCreate.
Also please post the output of "gdlib-config --libs".

A new check method was introduced after release of 2.6.3:

4362: configure.in support for libgd on MinGW/FreeBSD

Does MLDonkey detect your libgd with vanilla 2.6.3 release code?

spiralvoice <spiralvoice>
Group administrator
Tue 30 Aug 2005 07:48:10 AM UTC, original submission:  

In mandrake 10.0 with libgd2-2.0.15 and libgd2-devel-2.0.15 installed "./configure --enable-batch --enable-gui=newgui1 --enable-pthread" report:

------------------------------------
checking for bzip2... bzip2
checking for gzip... (cached) bzip2
checking for gdlib-config... gdlib-config
checking for gdImageCreate in -lgd... no
checking trying another method... checking for gdImageCreate in -lgd... no
configure: libgd not available
checking support for graphical statistics... no
------------------------------------

and graphical statistics is disabled.

Alessandroni Paolo <alessandronip>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #3420:  gdconf.patch added by spiralvoice (2KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 9 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-08-31 spiralvoice Reassign ItemFrom group mldonkey, a multi-networks file-sharing client, bugs tracker To group mldonkey, a multi-networks file-sharing client, patch tracker
2005-08-31 spiralvoice Summarylibgd not available in mandrake 10.0 Solve libgd configure in mandrake 10.0
2005-08-31 spiralvoice Attached File- Added gdconf.patch, #2889
2005-08-31 spiralvoice Attached File#2886 Removed
2005-08-30 spiralvoice StatusNone Ready For Test
2005-08-30 spiralvoice Attached File- Added gdconf.patch, #2886
2005-08-30 spiralvoice CategoryNone Core
    Severity3 - Normal 4 - Important
    Item GroupNone Compilation problem

Back to the top

Powered by Savane 3.13-caa5.
Corresponding source code