bugmldonkey, a multi-networks file-sharing client - Bugs: bug #14345, Can't compile 2.6.3 without lib-gd

 
 

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

bug #14345: Can't compile 2.6.3 without lib-gd

Submitter:  Pawel Veselov <vps>
Submitted:  Tue 30 Aug 2005 06:22:50 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  Compilation problem Status:  Ready For Test
Assigned to:  None Open/Closed:  Closed
Release:  2.6.3 Release: 
Operating System:  Solaris Binaries Origin:  CVS / Self compiled
CPU type:  Sparc

Wed 31 Aug 2005 09:45:25 AM UTC, comment #3: 

moved to patch #4379

spiralvoice <spiralvoice>
Group administrator
Tue 30 Aug 2005 10:47:12 PM UTC, comment #2: 

Applying the attached patch onto 2.6.3 release seems to work.

[vps@sun-001]~/sources/mldonkey-2.6.3$ gpatch -p0 < ~/no_gd_png_ver.patch
patching file ./src/daemon/common/commonComplexOptions.ml
Hunk #1 succeeded at 1056 (offset -1 lines).
patching file ./src/daemon/common/commonComplexOptions.mli
patching file ./src/daemon/common/commonGlobals.ml
patching file ./src/daemon/common/commonGraphics.gd.ml
patching file ./src/daemon/common/commonGraphics.nogd.ml
patching file ./src/daemon/driver/driverCommands.ml
Hunk #1 succeeded at 379 (offset -17 lines).
patching file ./src/utils/cdk/gd.ml

The code compiles now.

Thanks,
  Pawel.

Pawel Veselov <vps>
Tue 30 Aug 2005 09:06:36 PM UTC, comment #1: 

Thanks to pointing to CommonGlobals, please try the attached patch.

spiralvoice <spiralvoice>
Group administrator
Tue 30 Aug 2005 06:22:50 PM UTC, original submission:  

2.6.3 won't compile if --disable-gd is specified to configure, and no gd libraries are present in the system. The problem is that commonGlobals.ml has references to Gd object that are always compiled.

[vps@sun-001]~/sources/mldonkey-2.6.3$ LC_ALL=C make
ocamlrun ocamlc -linkall -o mlnet.byte       -custom unix.cma str.cma -ccopt "-L/static/lib  -isystem/static/include  -I/static/include" -cclib "-lcharset  /static/lib/libiconv.so -R/static/lib" -ccopt " " -cclib "" -cclib -lbz2 -cclib -lz -ccopt "-D_REENTRANT -pthreads"    -I build    build/cdk.cma    build/common.cma    build/client.cma    build/core.cma    build/driver.cma        src/daemon/common/commonMain.cmo 
Error while linking build/common.cma(CommonGlobals):
Reference to undefined global `Gd'
make: * [mlnet.byte] Error 2
[vps@sun-001]~/sources/mldonkey-2.6.3$

Pawel Veselov <vps>

 

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

Attached Files
file #3421:  no_gd_png_ver.patch added by spiralvoice (11KiB - application/octet-stream)

 

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 3 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-30 spiralvoice StatusNone Ready For Test
2005-08-30 spiralvoice Attached File- Added no_gd_png_ver.patch, #2887

Back to the top

Powered by Savane 3.12