patchmldonkey, a multi-networks file-sharing client - Patches: patch #7579, Dynamically link to glibc for...

 
 

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

patch #7579: Dynamically link to glibc for static builds

Submitter:  Bugmenot User <bugmenot>
Submitted:  Sat 16 Jul 2011 09:05:05 AM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Ready For Test Assigned to:  None
Open/Closed:  Open

Jump to the original submission

Tue 04 Sep 2012 08:24:03 AM UTC, comment #7: 
ygrek <ygrek>
Group Member
Sat 16 Jul 2011 09:06:29 AM UTC, comment #6: 

postponed after 3.1.0 release

spiralvoice <spiralvoice>
Group administrator
Sat 16 Jul 2011 09:05:05 AM UTC, comment #5: 

This item has been reassigned from the project mldonkey, a multi-networks file-sharing client bugs tracker to your tracker.

The original report is still available at bugs #33003

Following are the information included in the original report:

[field #0]                  Item ID: 33003
[field #1]                 Group ID: 1409
[field #2]              Open/Closed: Open
[field #3]                 Severity: 3 - Normal
[field #4]                  Privacy: Public
[field #8]                         : Unknown bugs Field Display Type
[field #9]                 Category: Core
[field #10]             Submitted by: bugmenot
[field #11]              Assigned to: None
[field #12]             Submitted on: Di 05 Apr 2011 18:44:19 CEST
[field #13]                  Summary: Dynamically link to glibc for static builds
[field #14]      Original Submission: os:ubuntu 10.10

mlnet: relocation error: /lib/libnss_mdns4_minimal.so.2: symbol  strlen, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
i download mldonkey-3.0.7.static.i386-Linux_glibc-2.7.tar.bz2 from this page http://sourceforge.net/projects/mldonkey/files/mldonkey/3.0.7/
after tar ,cd into the mldonkey-distrib-3.0.7 directory , run mlnet and see this error information
how to solve this ? Thank you.
[field #15]                Closed on: Di 05 Apr 2011 20:10:45 CEST
[field #16]               Item Group: None
[field #17]                   Status: In Progress
[field #18]        Component Version: None
[field #19]         Operating System: Linux
[field #20]          Reproducibility: None
[field #21]               Size (loc): None
[field #22]            Fixed Release: None
[field #23]          Planned Release: None
[field #24]                   Effort: 0.00
[field #28]                 Priority: 5 - Normal
[field #31]         Percent Complete: 0%
[field #33]                  Release: 3.0.7
[field #58]          Binaries Origin: Downloaded from third-party page
[field #59]                 CPU type: Intel x86
[field #60]                      CPU: None
[field #61]     Custom Select Box #4: None
[field #62]     Custom Select Box #5: None
[field #63]     Custom Select Box #6: None
[field #64]     Custom Select Box #7: None
[field #65]     Custom Select Box #8: None
[field #66]     Custom Select Box #9: None
[field #67]    Custom Select Box #10: None

spiralvoice <spiralvoice>
Group administrator
Mon 11 Apr 2011 02:19:17 PM UTC, comment #4: 

I thought it will be simple, but ocamlopt reorders -ccopt args and so extra bookkeeping was needed :
http://repo.or.cz/w/mldonkey.git/commit/292182f68281744123703e7d5445b005b3d74285

This leaves -lpthread -lm -lc -lstdc++ (i.e. the libs added implicitly by compiler) linked dynamically.

ygrek <ygrek>
Group Member
Wed 06 Apr 2011 05:57:04 PM UTC, comment #3: 

yes

spiralvoice <spiralvoice>
Group administrator
Wed 06 Apr 2011 09:46:34 AM UTC, comment #2: 

IIUC, this is caused by static linking to glibc in SF.net binaries. So far the previous advice is ok - either compile yourself or search for ubuntu packages (see http://mldonkey.sourceforge.net/Download - there is PPA with 3.0.7 at https://launchpad.net/~a.bono/+archive/mldonkey).

But, spiralvoice, we could do better. AFAIK, nowadays, linking to glibc statically causes more portability problems than solves. Why not link to all used libs statically and dynamically to glibc? I will prepare the patch, ok?

ygrek <ygrek>
Group Member
Tue 05 Apr 2011 06:10:45 PM UTC, comment #1: 

apt-get install mldonkey-server

or compile MLDonkey yourself:
http://mldonkey.sourceforge.net/CompilationProblems#Installation_instructions_for_Ubuntu

spiralvoice <spiralvoice>
Group administrator
Sat 16 Jul 2011 09:05:05 AM UTC, original submission:  

os:ubuntu 10.10

mlnet: relocation error: /lib/libnss_mdns4_minimal.so.2: symbol  strlen, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
i download mldonkey-3.0.7.static.i386-Linux_glibc-2.7.tar.bz2 from this page http://sourceforge.net/projects/mldonkey/files/mldonkey/3.0.7/
after tar ,cd into the mldonkey-distrib-3.0.7 directory , run mlnet and see this error information
how to solve this ? Thank you.

Bugmenot User <bugmenot>

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ygrek (Posted a comment)
  • -email is unavailable- added by spiralvoice (Posted a comment)
  • -email is unavailable- added by bugmenot (Submitted the item)
  •  

    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
    2011-08-09 spiralvoice StatusPostponed Ready For Test
    2011-07-16 spiralvoice StatusNone Postponed
    2011-07-16 spiralvoice Reassign itemmldonkey, a multi-networks file-sharing client, bug #33003 mldonkey, a multi-networks file-sharing client, patch #7579

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code