[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: undefined symbol __dso_handle
From: |
Alejandro Dobniewski |
Subject: |
RE: undefined symbol __dso_handle |
Date: |
Tue, 14 Jan 2003 11:20:54 -0300 |
I changed to $(CC) -shared -nostartfiles, but if I take out the
-nostartfiles flag I got this error:
libbobutil.o: In function `_init':
/home/adobni/boblin/libbobutil.c:8: multiple definition of `_init'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crti.o:/tmp/ccnhFcil.s:28:
first defined here
libbobutil.o: In function `_fini':
/home/adobni/boblin/libbobutil.c:14: multiple definition of `_fini'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crti.o:/tmp/ccnhFcil.s:28:
first defined here
collect2: ld returned 1 exit status
make: *** [libbob.so] Error 1
-----Mensaje original-----
De: H. J. Lu [mailto:address@hidden
Enviado el: Lunes, 13 de Enero de 2003 19:50
Para: Alejandro Dobniewski
CC: 'address@hidden'
Asunto: Re: undefined symbol __dso_handle
On Mon, Jan 13, 2003 at 07:18:55PM -0300, Alejandro Dobniewski wrote:
> I attach the makefile and test program that causes the problem and
> command output. It just invokes a function in the so. Tell me if you need
> anything else.
> Alejandro
You have 2 problems:
1. $(LD) -shared
2. $(CC) -shared -nostartfiles
You should use "$(CC) -shared" in all cases if you aren't sure what
should be used.
H.J.
- RE: undefined symbol __dso_handle, (continued)
- RE: undefined symbol __dso_handle, Alejandro Dobniewski, 2003/01/13
- RE: undefined symbol __dso_handle, Alejandro Dobniewski, 2003/01/13
- RE: undefined symbol __dso_handle, Alejandro Dobniewski, 2003/01/13
- RE: undefined symbol __dso_handle, Alejandro Dobniewski, 2003/01/13
- RE: undefined symbol __dso_handle, Alejandro Dobniewski, 2003/01/13
- RE: undefined symbol __dso_handle,
Alejandro Dobniewski <=
- RE: undefined symbol __dso_handle, Alejandro Dobniewski, 2003/01/14
- RE: undefined symbol __dso_handle, Alejandro Dobniewski, 2003/01/14
- RE: undefined symbol __dso_handle, Alejandro Dobniewski, 2003/01/14
- RE: undefined symbol __dso_handle, Alejandro Dobniewski, 2003/01/14