Re: pthread & make & __syscall_error

From: mark greenlancer (markgreenlancer_at_aon.at)
Date: 08/03/04


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



Relevant Pages

  • Re: pthread & make & __syscall_error
    ... > mark greenlancer wrote: ... >> following error on Debian with glibc 2.3.2. ... >> How to build this programm and why does this error occur? ... > the order that you link your libraries. ...
    (comp.unix.programmer)
  • Re: pthread & make & __syscall_error
    ... mark greenlancer wrote: ... > following error on Debian with glibc 2.3.2. ... > How to build this programm and why does this error occur? ... __syscall_error is not in any of the libraries that you link to. ...
    (comp.unix.programmer)
  • Re: OO in Tcl (goodbye tcl)
    ... > mix of packages that somehow makes something a perfect distribution. ... is great because it comes with batteries included." ... about objects and libraries. ... Mark Harrison ...
    (comp.lang.tcl)
  • Re: Problem deploying to Linux (Newbie)
    ... Mark, thanks...you're dead right, it works a treat now, though I found ... an easyway to install these libraries on Fedora Core 6... ... I'm now a little worried about deploying my application to ...
    (comp.lang.basic.realbasic)
  • Re: kregexpeditor
    ... Mark Volkert wrote: ... > Heinrich Heck wrote: ... >> Wie und wo kann ich am bestens dieses Programm erhalten? ...
    (de.comp.os.unix.apps.kde)