bugmldonkey, a multi-networks file-sharing client - Bugs: bug #5920, build workaround for OpenBSD

 
 

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

bug #5920: build workaround for OpenBSD

Submitted by:  kami petersen <kokamomi>
Submitted on:  Mon 13 Oct 2003 04:15:53 PM UTC  
 
Category: GUISeverity: 3 - Normal
Item Group: Compilation problemStatus: Fixed
Assigned to: NoneOpen/Closed: Closed
Release: allRelease: None
Operating System: OpenBSDBinaries Origin: CVS / Self compiled
CPU type: None

(Jump to the original submission Jump to the original submission)

Mon 21 Feb 2005 10:08:23 AM UTC, comment #7:

With CVS 2-5-28-1 is seems to work now:

bash-3.00# uname -a
OpenBSD openbsd.localdomain 3.6 GENERIC#59 i386

bash-3.00# gmake static
ocamlopt.opt -inline 10 -linkall -ccopt -static -o mlnet.static unix.cmxa str.cmxa -cclib -lz -ccopt "-pthread" -I build build/cdk.cmxa build/common.cmxa build/client.cmxa build/core.cmxa build/driver.cmxa src/daemon/common/commonMain.cmx
bash-3.00#

spiralvoice <spiralvoice>
Project Administrator
Sat 21 Aug 2004 11:35:17 AM UTC, comment #6:

Please check if this bug still is in current CVS version.
You should find a tarball of current CVS in files section of
this project: http://savannah.nongnu.org/download/mldonkey/

spiralvoice <spiralvoice>
Project Administrator
Wed 25 Feb 2004 12:51:01 AM UTC, comment #5:

Please check if this bug still is in current CVS version.
You should a tarball of current CVS in files section of
this project: http://savannah.nongnu.org/download/mldonkey/

spiralvoice <spiralvoice>
Project Administrator
Wed 11 Feb 2004 09:45:01 AM UTC, comment #4:

i don't regard it as a patch, just a mere illustration how i was able through detective work (i'm not a hacker) to get the end results that i needed. the changes i've made should probably be done elsewhere, in a more general fashion. a developer needs to look at this. it is a bug report, not a fix. also, as long as this entry exist, other openbsd people might find it when their static builds fail.

kami petersen <kokamomi>
Wed 11 Feb 2004 01:25:08 AM UTC, comment #3:

Ok, it´s a bit nasty to copy your patch from this bugreport.
Could you please post it in the patch section with a note to this bug report if it´s working for you?

spiralvoice <spiralvoice>
Project Administrator
Wed 11 Feb 2004 12:09:41 AM UTC, comment #2:

actually it's just static builds that needs this. i just tested on todays checkout as well:

here's the error leading up to it:
bash# gmake clean && ./configure --enable-pthread --enable-checks && gmake depend && gmake static
...snip...
ocamlopt.opt -inline 10 -linkall -ccopt -static -o mlgui.static unix.cmxa str.cmxa -cclib -lz -ccopt "-pthread" -I +lablgtk lablgtk.cmxa -I build build/cdk.cmxa build/gmisc.cmxa build/common.cmxa build/icons.cmxa build/guibase.cmxa build/gui.cmxa src/daemon/common/commonMain.cmx
dcigettext.o: Undefined symbol `_libiconv' referenced from text segment
loadmsgcat.o: Undefined symbol `_libiconv_open' referenced from text segment
loadmsgcat.o: Undefined symbol `_libiconv_close' referenced from text segment
collect2: ld returned 1 exit status
Error during linking
gmake: *** [mlgui.static] Error 2

kami petersen <kokamomi>
Tue 10 Feb 2004 08:31:27 PM UTC, comment #1:

Please check if this bug is still in current CVS version.

spiralvoice <spiralvoice>
Project Administrator
Mon 13 Oct 2003 04:15:53 PM UTC, original submission:

can't compile on OpenBSD until i've done something like this:

diff -u -w -r1.45 Makefile.in
--- Makefile.in 12 Oct 2003 18:29:35 -0000 1.45
+++ Makefile.in 13 Oct 2003 16:10:03 -0000
@@ -767,7 +767,7 @@
$(OCAMLC) -linkall -o $[[@]] $($1_OBJS) $(LIBS_byte) $(LIBS_flags) $($3_LIBS_byte) $($3_LIBS_flags) -I build $($1_CMAS) $($1_CMOS)

$2.static: $($1_OBJS) $($1_CMXS) $($1_CMXAS)
- $(OCAMLOPT) -linkall $(PLUGIN_FLAG) -ccopt -static -o $[[@]] $($1_OBJS) $(LIBS_opt) $(LIBS_flags) $($3_LIBS_flags) $($3_STATIC_LIBS_opt) -I build $($1_CMXAS) $($1_CMXS)
+ $(OCAMLOPT) -linkall $(PLUGIN_FLAG) -ccopt -static -cclib -L/usr/local/lib -cclib -liconv -o $[[@]] $($1_OBJS) $(LIBS_opt) $(LIBS_flags) $($3_LIBS_flags) $($3_STATIC_LIBS_opt) -I build $($1_CMXAS) $($1_CMXS)
]])

probably this should be done in another way, but i'm not familiar with the build system. i've known about this for quite some time, but i've been hoping to find a better solution to patch with...

kami petersen <kokamomi>

 

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 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 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 21 Feb 2005 10:09:08 AM UTCspiralvoiceStatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1