Re: pthread & make & __syscall_error
From: mark greenlancer (markgreenlancer_at_aon.at)
Date: 08/03/04
- Next message: Rich Teer: "Re: Looking for a good linux network programming book"
- Previous message: Richard L. Hamilton: "Re: Question on Unix FIFOs - why slow when on NFS?"
- In reply to: Fletcher Glenn: "Re: pthread & make & __syscall_error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 03 Aug 2004 17:29:06 +0200
Fletcher Glenn wrote:
>
>
> mark greenlancer wrote:
>
>>
>> hello,
>>
>> if I try to build a programm I've wrote I got the
>> following error on Debian with glibc 2.3.2.
>>
>> On a SuSE System (glibc 2.2.5) it works fine.
>>
>> How to build this programm and why does this error occur?
>>
>>
>> <snip of the build of the libraries libmain.a, libmngr.a
>> and libcommon.a>
>> gcc -L /usr/lib -L /usr/local/lib -o mrplus -Wl,-Map,deb.map
>> ../obj/libmain.a ../obj/libmngr.a ../obj/libcommon.a
>> /usr/local/lib/libortp.a /usr/lib/libpthread.a
>> /usr/lib/libpthread.a(ptw-write.o)(.text+0x25): In function `write':
>> : undefined reference to `__syscall_error'
>> /usr/lib/libpthread.a(ptw-write.o)(.text+0x55): In function `write':
>> : undefined reference to `__syscall_error'
>> /usr/lib/libpthread.a(ptw-read.o)(.text+0x25): In function `read':
>> : undefined reference to `__syscall_error'
>> /usr/lib/libpthread.a(ptw-read.o)(.text+0x55): In function `read':
>> : undefined reference to `__syscall_error'
>> /usr/lib/libpthread.a(ptw-close.o)(.text+0x1f): In function `close':
>> : undefined reference to `__syscall_error'
>> /usr/lib/libpthread.a(ptw-close.o)(.text+0x4a): more undefined
>> references to `__syscall_error' follow
>> collect2: ld returned 1 exit status
>> make[1]: *** [mrplus] Fehler 1
>> make[1]: Verlasse Verzeichnis »/mnt/pr/mrplus/src/bin«
>> make: *** [all] Fehler 2
>>
>>
>> The error seem to be in libpthread.a.
>> But I don't know why I won't work with the newer version
>> of the glibc...
>>
>> Any hints?
>>
>>
>>
>> mark
>
>
> From the output above, one of two possibilities:
>
> 1. __syscall_error is not in any of the libraries that you link to.
> This may mean that you need to find the library that contains this
> function.
>
> 2. __syscall_error is not used at the point where the library containing
> it is linked. To fix this type of problem you may have to re-arrange
> the order that you link your libraries.
>
at last in my order I've wrote "/usr/libc.a".
I only need this for the glibc 2.3.2 version.
On 2.2.5 it works without this few chars.
mark
- Next message: Rich Teer: "Re: Looking for a good linux network programming book"
- Previous message: Richard L. Hamilton: "Re: Question on Unix FIFOs - why slow when on NFS?"
- In reply to: Fletcher Glenn: "Re: pthread & make & __syscall_error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|