bugmldonkey, a multi-networks file-sharing client - Bugs: bug #15731, Static core does not link gd...

 
 

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

bug #15731: Static core does not link gd correctly

Submitted by:  White_FrosT
Submitted on:  Mon 13 Feb 2006 09:11:43 AM UTC  
 
Category:  Core Severity:  3 - Normal
Item Group:  Compilation problem Status:  Wont Fix
Assigned to:  None Open/Closed:  Closed
Release:  2.7.3.CVS.2006-Feb-11 22:01:53 Release:  2.7.3
Operating System:  FreeBSD Binaries Origin:  CVS / Self compiled
CPU type:  Intel x86

Tue 08 Aug 2006 09:49:24 AM UTC, comment #5: 

@daniel: Please try the solution mentioned in comment #3

spiralvoice <spiralvoice>
Project Administrator
Tue 08 Aug 2006 06:06:43 AM UTC, comment #4: 

just --disable-gd as a workaround. those graphs aren't super important.

maybe some release note on this would be helpful for those trying to compile source on freebsd.

daniel <eydaimon>
Thu 25 May 2006 07:14:06 PM UTC, comment #3: 

gdlib-config --libs on Linux/Gentoo x86 reports:
"-ljpeg -lfreetype -lpng12 -lz -lm"

On FreeBSD 6.1-release it reports:
-lgd

which is not enough.

In your linking command this is written: -cclib "-lgd -lgd"
The first "-lgd" is added by MLDonkey, the rest comes from
gdlib-config --libs which is incomplete on FreeBSD.

Changing it to -cclib "-lgd -ljpeg -lpng" produces a correct
static binary:
 ldd mlnet.static
mlnet.static:
        libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x284a8000)

this static binary still crashes however, this is old, known FreeBSD bug:
./mlnet.static -stdout
mlnet.static in free(): error: junk pointer, too high to make sense
Segmentation fault (core dumped)

The solution for this bug is an updated gdlib package for FreeBSD:

spiralvoice <spiralvoice>
Project Administrator
Tue 04 Apr 2006 12:02:24 PM UTC, comment #2: 

Yes I do:
/usr/local/lib/libgd.a

GD is installed from ports: gd-2.0.33_4,1

White_FrosT
Tue 04 Apr 2006 11:53:00 AM UTC, comment #1: 

Do you have libgd.a?

spiralvoice <spiralvoice>
Project Administrator
Mon 13 Feb 2006 09:11:43 AM UTC, original submission:  

Is this a problem that I have or do more people experience this problem. Compiling mlnet normal (dynamically linked) is no problem. But with statical, linking in gd seems to fail. It used to work. Details:
ocamlopt.opt -inline 10 -linkall  -ccopt -static -o mlnet.static      unix.cmxa str.cmxa -ccopt "-L/usr/local/lib -L/usr/local/lib -I/usr/local/include -I/usr/local/include" -cclib "-lcharset -lz  /usr/local/lib/libiconv.so" -cclib -lbz2 -ccopt "-D_THREAD_SAFE -pthread"   -cclib "-lgd -lgd" -ccopt "-L/usr/local/lib -L/usr/local/lib"  -cc 'g++ ' -ccopt -fno-omit-frame-pointer  -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+0x1126): In function `ml_image_pngversion':
src/utils/cdk/gdstubs.c:479: undefined reference to `png_access_version_number'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x37): In function `gdPngErrorHandler':
: undefined reference to `png_get_error_ptr'
/usr/local/lib/libgd.a(gd_png.o)(.text+0xa9): In function `gdPngReadData':
: undefined reference to `png_get_io_ptr'
/usr/local/lib/libgd.a(gd_png.o)(.text+0xe9): In function `gdPngWriteData':
: undefined reference to `png_get_io_ptr'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x17d): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_check_sig'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x1ab): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_create_read_struct'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x1be): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_create_info_struct'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x1f3): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_set_sig_bytes'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x20e): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_set_read_fn'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x220): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_read_info'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x25f): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_get_IHDR'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x453): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_get_valid'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x47c): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_get_tRNS'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x4a2): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_read_update_info'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x4b4): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_get_rowbytes'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x5f4): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_read_image'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x605): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_read_end'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x72e): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_get_valid'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x75b): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_get_tRNS'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x7a6): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_get_PLTE'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x7c1): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_get_valid'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x7f6): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_get_tRNS'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x9b4): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_destroy_read_struct'
/usr/local/lib/libgd.a(gd_png.o)(.text+0xa12): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_set_packing'
/usr/local/lib/libgd.a(gd_png.o)(.text+0xc8f): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_destroy_read_struct'
/usr/local/lib/libgd.a(gd_png.o)(.text+0xcd4): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_set_strip_16'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x1022): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_destroy_read_struct'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x10ca): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_destroy_read_struct'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x111f): In function `gdImageCreateFromPngCtx':
: undefined reference to `png_destroy_read_struct'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x126e): In function `gdImagePngCtxEx':
: undefined reference to `png_create_write_struct'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x12b2): In function `gdImagePngCtxEx':
: undefined reference to `png_create_info_struct'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x12f7): In function `gdImagePngCtxEx':
: undefined reference to `png_destroy_write_struct'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x1368): In function `gdImagePngCtxEx':
: undefined reference to `png_set_write_fn'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x137d): In function `gdImagePngCtxEx':
: undefined reference to `png_set_compression_level'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x172c): In function `gdImagePngCtxEx':
: undefined reference to `png_set_IHDR'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x17aa): In function `gdImagePngCtxEx':
: undefined reference to `png_set_tRNS'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x17d3): In function `gdImagePngCtxEx':
: undefined reference to `png_write_info'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x17e1): In function `gdImagePngCtxEx':
: undefined reference to `png_set_packing'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x2059): In function `gdImagePngCtxEx':
: undefined reference to `png_set_tRNS'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x21bf): In function `gdImagePngCtxEx':
: undefined reference to `png_set_PLTE'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x2532): In function `gdImagePngCtxEx':
: undefined reference to `png_write_image'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x254a): In function `gdImagePngCtxEx':
: undefined reference to `png_write_end'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x25d5): In function `gdImagePngCtxEx':
: undefined reference to `png_write_image'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x25ed): In function `gdImagePngCtxEx':
: undefined reference to `png_write_end'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x263a): In function `gdImagePngCtxEx':
: undefined reference to `png_write_image'
/usr/local/lib/libgd.a(gd_png.o)(.text+0x2652): In function `gdImagePngCtxEx':
: undefined reference to `png_write_end'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0x4e): In function `fatal_jpeg_error':
: undefined reference to `jpeg_destroy'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0x172): In function `gdImageJpegCtx':
: undefined reference to `jpeg_std_error'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0x1d5): In function `gdImageJpegCtx':
: undefined reference to `jpeg_start_compress'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0x2c3): In function `gdImageJpegCtx':
: undefined reference to `jpeg_write_marker'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0x35b): In function `gdImageJpegCtx':
: undefined reference to `jpeg_write_scanlines'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0x395): In function `gdImageJpegCtx':
: undefined reference to `jpeg_finish_compress'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0x39d): In function `gdImageJpegCtx':
: undefined reference to `jpeg_destroy_compress'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0x3e2): In function `gdImageJpegCtx':
: undefined reference to `jpeg_CreateCompress'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0x415): In function `gdImageJpegCtx':
: undefined reference to `jpeg_set_defaults'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0x434): In function `gdImageJpegCtx':
: undefined reference to `jpeg_set_quality'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0x4b2): In function `gdImageJpegCtx':
: undefined reference to `jpeg_destroy_compress'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0x4c5): In function `gdImageJpegCtx':
: undefined reference to `jpeg_simple_progression'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0x558): In function `gdImageJpegCtx':
: undefined reference to `jpeg_write_scanlines'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0x6e1): In function `jpeg_gdIOCtx_src':
: undefined reference to `jpeg_resync_to_restart'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0x7b2): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_std_error'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0x80a): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_CreateDecompress'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0x829): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_save_markers'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0x83a): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_read_header'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0x8cc): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_start_decompress'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0xa28): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_read_scanlines'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0xa88): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_finish_decompress'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0xaba): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_destroy_decompress'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0xb15): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_destroy_decompress'
/usr/local/lib/libgd.a(gd_jpeg.o)(.text+0xbef): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_read_scanlines'
Error during linking
gmake: *** [mlnet.static] Error 2

I've made no changes in the commands I use to compile mldonkey.

White_FrosT

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

 

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-05-25 spiralvoice StatusNone => Wont Fix
    Open/ClosedOpen => Closed

Back to the top


Powered by Savane 3.5