473,804 Members | 3,675 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ubuntu : __errno_locatio n 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_locatio n function is not defined: undefined
reference to `__errno_locati on()'
but the function is exectly defined in libpthread.a.
nm /usr/lib/libpthread.a | grep errno
U __errno_locatio n
errno.o:
00000051 T __errno_locatio n
00000000 T __h_errno_locat ion
U __errno_locatio n
U __errno_locatio n

why? help please!

Allen
Feb 9 '08 #1
2 5953
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_locatio n function is not defined: undefined
reference to `__errno_locati on()'
but the function is exectly defined in libpthread.a.
nm /usr/lib/libpthread.a | grep errno
U __errno_locatio n
errno.o:
00000051 T __errno_locatio n
00000000 T __h_errno_locat ion
U __errno_locatio n
U __errno_locatio n

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
1701
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 function: pg_connect() No amount of using Synaptic Package Manager would fix this for me. The solution was all at command line under 'root' account: $ apt-get update
8
2483
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 machine... and, of course, spending time on their very busy mailing list. :-) I didn't find any mention of Ubuntu in a quick scan of recent messages, so... Ubuntu is a Linux distribution that starts with the breadth of Debian and adds regular...
0
2471
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 in my php, I get errors like: "Call to undefined function xslt_create();" I have played around with installing a bunch of other packages that might be remotely related, but my (limited) understanding of how the
1
6632
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 from the Synaptic Package Manager, I can access my database from another machine with a program I wrote for that purpose or my database manager.
2
8791
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 found out I didn't really have any ways of looking at directories. So, I looked around and found the boost library, which seems pretty cool. However, I seem to be unable to compile anything using these libraries.
2
2956
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: ******************************************************************************** deb http://in.archive.ubuntu.com/ubuntu/ dapper main restricted universe deb http://in.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse deb...
1
1705
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: ------------------------------------------------------------ #---edit configure; test of wchar_t--- #include <ncursesw.h> #include <wchar.h> #------------------------------------- cd Lib/test
11
2953
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 Good Morning ---------------------------------------------------
1
5853
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 migrated from php 4.3.9 to php 5.0.3 And this is my configure command for php 5.0.3
0
9585
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10586
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10323
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10082
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7622
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6856
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5658
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.