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

Submitted by:  Pawel Veselov <vps>
Submitted on:  Tue 30 Aug 2005 06:22:50 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: Compilation problemStatus: Ready For Test
Assigned to: NoneOpen/Closed: Closed
Release: Release: 2.6.3
Operating System: SolarisBinaries Origin: CVS / Self compiled
CPU type: Sparc

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

moved to patch #4379

spiralvoice <spiralvoice>
Project 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>
Project 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>

 

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

 

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

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 31 Aug 2005 09:44:52 AM UTCspiralvoiceReassign ItemFrom group mldonkey, a multi-networks file-sharing client, bugs tracker=>To group mldonkey, a multi-networks file-sharing client, patch tracker
Tue 30 Aug 2005 09:09:05 PM UTCspiralvoiceStatusNone=>Ready For Test
Tue 30 Aug 2005 09:06:37 PM UTCspiralvoiceAttached File-=>Added no_gd_png_ver.patch, #2887

Back to the top


Powered by Savane 3.1-cleanup1