Type | Bug | Status | tested | Date | 22-Sep-2010 02:56 |
---|---|---|---|---|---|
Version | alpha 111 | Category | Host-Kit | Submitted by | abolka |
Platform | Linux x86 libc6 | Severity | major | Priority | normal |
Summary | Linux hostkit binaries must be (dynamically) linked against libdl |
---|---|
Description |
The A108 hostkit incorrectly stopped linking the binaries against libdl (by dropping the -ldl flag in the linkage step). This leads to errors with linkers more strict than the default binutils ld (such as gold, see the example for the actual error). The attached patch fixes this by re-adding the -ldl flag. |
Example code |
$ ld -v GNU gold (GNU Binutils for Ubuntu 2.20.1-system.20100303) 1.9 $ make ... gcc -o r3core obj/host-main.o obj/host-args.o obj/host-device.o obj/host-stdio.o obj/dev-net.o obj/dev-dns.o obj/host-lib.o obj/host-readline.o obj/dev-stdio.o obj/dev-file.o ./libr3.so /usr/bin/ld: obj/host-lib.o: in function OS_Find_Function:host-lib.c(.text+0x21e): error: undefined reference to 'dlsym' /usr/bin/ld: obj/host-lib.o: in function OS_Close_Library:host-lib.c(.text+0x231): error: undefined reference to 'dlclose' /usr/bin/ld: obj/host-lib.o: in function OS_Open_Library:host-lib.c(.text+0x24c): error: undefined reference to 'dlopen' collect2: ld returned 1 exit status make[1]: *** [r3core] Error 1 ... |
Assigned to | n/a | Fixed in | r3 master | Last Update | 20-Jan-2013 03:30 |
---|
Comments | |
---|---|
(0002533)
Carl 22-Sep-2010 20:02 |
It was removed on request. Now added back on request. In the end, I think users will need to make some makefile adjustments as needed. |
(0003123)
abolka 22-Feb-2011 00:44 |
Still not fixed in A111. |
(0003260)
abolka 13-Dec-2012 02:18 |
Fixed in the 101.0 (08eb7e84cd) open source release. |
Date | User | Field | Action | Change |
---|---|---|---|---|
20-Jan-2013 03:30 | abolka | Status | Modified | built => tested |
20-Jan-2013 03:30 | abolka | Fixedin | Modified | 2.101.0 => r3 master |
13-Dec-2012 09:40 | BrianH | Status | Modified | submitted => built |
13-Dec-2012 09:40 | BrianH | Fixedin | Modified | => 2.101.0 |
13-Dec-2012 02:18 | abolka | Comment : 0003260 | Added | - |
22-Feb-2011 00:45 | abolka | Status | Modified | built => submitted |
22-Feb-2011 00:45 | abolka | Fixedin | Modified | alpha 108 => none |
22-Feb-2011 00:45 | abolka | Version | Modified | alpha 107 => alpha 111 |
22-Feb-2011 00:44 | abolka | Comment : 0003123 | Added | - |
22-Sep-2010 21:41 | carl | Status | Modified | reviewed => built |
22-Sep-2010 21:41 | carl | Fixedin | Modified | => alpha 108 |
22-Sep-2010 20:02 | carl | Comment : 0002533 | Added | - |
22-Sep-2010 20:01 | carl | Status | Modified | submitted => reviewed |
22-Sep-2010 03:39 | abolka | Description | Modified | - |
22-Sep-2010 02:56 | abolka | Code | Modified | - |
22-Sep-2010 02:56 | abolka | Description | Modified | - |
22-Sep-2010 02:56 | abolka | Ticket | Added | - |