473,224 Members | 1,462 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,224 software developers and data experts.

ubuntu : __errno_location undefined

hi all:
my code is work well on fedora 7 or fedora 8. now i installed
ubuntu, my code can't compile crrectly.
error is __errno_location function is not defined: undefined
reference to `__errno_location()'
but the function is exectly defined in libpthread.a.
nm /usr/lib/libpthread.a | grep errno
U __errno_location
errno.o:
00000051 T __errno_location
00000000 T __h_errno_location
U __errno_location
U __errno_location

why? help please!

Allen
Feb 9 '08 #1
2 5880
cz************@gmail.com wrote:
>
why? help please!
Try a Linux group, they'll know.

--
Ian Collins.
Feb 9 '08 #2
cz************@gmail.com wrote:
hi all:
my code is work well on fedora 7 or fedora 8. now i installed
ubuntu, my code can't compile crrectly.
error is __errno_location function is not defined: undefined
reference to `__errno_location()'
but the function is exectly defined in libpthread.a.
nm /usr/lib/libpthread.a | grep errno
U __errno_location
errno.o:
00000051 T __errno_location
00000000 T __h_errno_location
U __errno_location
U __errno_location

why? help please!

Allen
Sounds like a linking problem. Is it something to do with the way you have
specified libraries to be used. Often if you specify library A first and B
later in the list, then if something in B calls something in A, the linker
will not find it. One way to handle this is to repeat the list of
libraries, so that A now appears after B, as well as before it.

Chris Gordon-Smith
www.simsoup.info
Feb 9 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Google Mike | last post by:
I found some strange kind of mild install bug when installing Ubuntu 5.04 php4-pgsql module (the module that connects PHP4 to PostgreSQL). You may encounter the error: Call to undefined...
8
by: Martin Maney | last post by:
Apologies if this isn't news here - I've been too busy this last week or so for even skimming the traffic here, in part because I've been messing around with Ubuntu's preview release on a spare...
0
by: furious_radish | last post by:
I have been trying to use php5's xml support. My OS is Ubuntu 5.10 I am running apache2 with php5, no problems there. I installed the php5-xsl package but when I use any xsl related functions...
1
by: Michael | last post by:
(Also posted in the alt.os.linux.ubuntu newsgroup, but I thought it might be more appropriate here) Hi, I'm running the Ubuntu Breezy Badger OS. I just installed the Firebird Classical Server...
2
by: soren.andersen | last post by:
Hello out there :-) I'm new to c++, coming from Java, and trying to learn the basics of the language and all that, basically just for fun. :-) So, when once I played around with c++ a bit i...
2
by: Pradnyesh Sawant | last post by:
Hello, I have a newly installed ubuntu 6.06 system. I am trying to install pyqt4 on it, but without success. The contents of the /etc/apt/sources.list file are:...
1
by: Harry George | last post by:
I'm building 2.5.1 from source, using the ubuntu(7.0.4)-provided gcc 4.1.2. Based on google searches and nints found, here is the process: ...
11
by: Ix | last post by:
It seems not remember how to compile with gcc a C program in linux (ubuntu) how i have to compile this programme? It seems gcc doesn't find stdio.h.. why is all antiintuitive? Thank you and...
1
mageswar005
by: mageswar005 | last post by:
hi, I am getting this error in php 5.0.3 ,linux-ubuntu os Fatal error: Call to undefined function domxml_open_mem() while executing the following line $dom = domxml_open_mem($xmlData); I just...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.