473,699 Members | 2,745 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Please help me with linking libraries on Solaris 10 sparc

Hi all,
Please help me with my stuff.

I downloaded python 2.5.1 package from http://blastwave.org it was
compiled using Sun Studio 11 for Solaris 8 sparc.

My system is Solaris 10 sparc and I compiled using SunStudio 11
psycopg2 python binding for PostgreSQL 8.3.1.

Compilation was OK, but when I am trying to import psycopg2 I am
getting this error:

$ python
Python 2.5.1 (r251:54863, Nov 3 2007, 02:54:52) [C] on sunos5
Type "help", "copyright" , "credits" or "license" for more information.
>>import psycopg2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/csw/lib/python/site-packages/psycopg2/__init__.py", line
60, in <module>
from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: ld.so.1: python: fatal: relocation error: file /opt/csw/
lib/python/site-packages/psycopg2/_psycopg.so: symbol round:
referenced symbol not found

Any suggestions or help will be appreciated.
Jun 27 '08 #1
6 2770
idev schrieb:
Hi all,
Please help me with my stuff.

I downloaded python 2.5.1 package from http://blastwave.org it was
compiled using Sun Studio 11 for Solaris 8 sparc.

My system is Solaris 10 sparc and I compiled using SunStudio 11
psycopg2 python binding for PostgreSQL 8.3.1.

Compilation was OK, but when I am trying to import psycopg2 I am
getting this error:

$ python
Python 2.5.1 (r251:54863, Nov 3 2007, 02:54:52) [C] on sunos5
Type "help", "copyright" , "credits" or "license" for more information.
>>>import psycopg2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/csw/lib/python/site-packages/psycopg2/__init__.py", line
60, in <module>
from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: ld.so.1: python: fatal: relocation error: file /opt/csw/
lib/python/site-packages/psycopg2/_psycopg.so: symbol round:
referenced symbol not found

Any suggestions or help will be appreciated.
Hi,

maybe a stupid question - but why don't you want to use the "official"
package? You can download it here:
http://sunfreeware.mirrors.tds.net/indexsparc10.html

Regards,
Ralf
Jun 27 '08 #2
lib/python/site-packages/psycopg2/_psycopg.so: symbol round:
referenced symbol not found
You need to link _psycopg.so with the math library, -lm.

Regards,
Martin
Jun 27 '08 #3
On May 1, 10:17 am, Ralf Schönian <r...@schoeni an-online.dewrote:
idev schrieb:
Hi all,
Please help me with my stuff.
I downloaded python 2.5.1 package fromhttp://blastwave.orgit was
compiled using Sun Studio 11 for Solaris 8 sparc.
My system is Solaris 10 sparc and I compiled using SunStudio 11
psycopg2 python binding for PostgreSQL 8.3.1.
Compilation was OK, but when I am trying to import psycopg2 I am
getting this error:
$ python
Python 2.5.1 (r251:54863, Nov 3 2007, 02:54:52) [C] on sunos5
Type "help", "copyright" , "credits" or "license" for more information.
>>import psycopg2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/csw/lib/python/site-packages/psycopg2/__init__.py", line
60, in <module>
from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: ld.so.1: python: fatal: relocation error: file /opt/csw/
lib/python/site-packages/psycopg2/_psycopg.so: symbol round:
referenced symbol not found
Any suggestions or help will be appreciated.

Hi,

maybe a stupid question - but why don't you want to use the "official"
package? You can download it here:http://sunfreeware.mirrors.tds.net/indexsparc10.html

Regards,
Ralf
I am trying to deploy Django env (apache2.x prefork MPM; mod_python
3.3.1; python 2.5.1; postgresql 8.3.x; psycopg2-2.0.7; subversion
1.4.5.x; openssl 0.98;) on Solaris 10 sparc box.
You are right they have pretty much everything what I need except
mod_python and psycopg2. So the first problem was PostgreSQL. It was
compiled without (--with-thread-safety) just ./configure. I compiled
psycopg2 by myself using gcc but I couldn't compile mod_pyhon by some
reasons. That is why I switched to blastwave.org they have everything
what I need except psycopg2. I compiled it by my self. And now I am
having the ld problems and I don't know how to resolve it.
Jun 27 '08 #4
On May 1, 10:30 am, "Martin v. Löwis" <mar...@v.loewi s.dewrote:
lib/python/site-packages/psycopg2/_psycopg.so: symbol round:
referenced symbol not found

You need to link _psycopg.so with the math library, -lm.

Regards,
Martin
Martin, could you please tell me how to do this, I am pretty new in
Solaris.
Jun 27 '08 #5
Martin, could you please tell me how to do this, I am pretty new in
Solaris.
It's fairly complicated, so I'm not sure I can give you the full
tutorial in a Usenet message.

In essence, you need to spot the linker line in the build process,
(e.g. by the -o option to the compiler), and add -lm to it.

If you cannot do this on your own, I recommend you hire somebody
who can.

Regards,
Martin
Jun 27 '08 #6
On May 1, 11:41 am, "Martin v. Löwis" <mar...@v.loewi s.dewrote:
Martin, could you please tell me how to do this, I am pretty new in
Solaris.

It's fairly complicated, so I'm not sure I can give you the full
tutorial in a Usenet message.

In essence, you need to spot the linker line in the build process,
(e.g. by the -o option to the compiler), and add -lm to it.

If you cannot do this on your own, I recommend you hire somebody
who can.

Regards,
Martin
Thanks Martin,
For sure I am not maintainer :).

Thanks for the help and explanations.
Jun 27 '08 #7

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

Similar topics

2
1696
by: sunil | last post by:
Hi, We have lot of c and fortran archive libraries that have complex dependencies. We have different server tasks that use some of these libraries. We have developed a tool inhouse that links server tasks by continuously iterating until it figures out the correct library order. Recently we introduced some C++ legacy libraries. I am completely new to C++ linking. Is there some tutorial that can explain the nuances of C++ linking? We do...
4
6674
by: Vinu | last post by:
Hi How can i use Itow(),_itow(),wtoi() or _wtoi() functions in Sun Solaris Sparc? Can you suggest standard way of doing it on Sun Solaris Sparc? We are using gcc 3.4.2 . Thanks
2
1158
by: David Parker | last post by:
Hi. I'm trying to build 7.4.3 on Solaris 9/Intel (gcc 3.2.2), and I get the following: ======================================================================== ================ gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -fPIC -I. -I../../../src/include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DFRONTEND -DSYSCONFDIR='"/home/dparker/servers/install/i386/etc/postgresql"' -c -o thread.o thread.c
8
2913
by: ReeseDog | last post by:
I have a AIX backup of DB2 (8.2) and i was told i needed to have a unix OS installed to be able to restore this database. So now i have installed Solaris 10 (x86 hardware). I copied the DB2.tar file to a folder i created in /export/home/db2, and unzipped everything. My issue is now when i try to run the 'install or setup' files, i get a message in the terminal window that says 'cannot execute'. I made sure to give the entire folder and all...
4
1990
by: Layne Meier | last post by:
I'm having a bit of a problem trying to install Python on a Solaris 10 system. I didn't have this kind of problem when trying to install it on Solaris 8. Has anyone else experienced this problem? I've tried adding CC=gcc into the configure script, and have also tried running ./configure --with-gcc with no luck. I appears that this is dead set to using c++ which isn't working. MAILBOT:root:8:Python-2.4.2:# ./configure
3
2687
by: Mark Nelson | last post by:
Hi all, I'm installing Apache 2.2, PHP 5.04, and mySQL 4.0.21 on a Solaris 8 machine using prebuilt binaries from sunfreeware.com. My apache install went smoothly - the only thing I'm having to work around is an inability to use /usr/local - it's an NFS mount to a central image, so I'm installing in /opt/local. After installing PHP and modifying httpd.conf, I get the following
13
4087
by: Mary Lei | last post by:
Does anyone know the link to obtain the tarball for db2 8.1 for solaris running on AMD 64 bit ? This is the entire db2 installation on a new system that does not have db2. Thanks.
4
2664
by: tkirankumar | last post by:
Hi all, This is regarding the issue I am facing while porting the my application from SuSe Linux to Sun Solaris. The Existing system details: Itanium boxes 1mhz 4 processor 8 gb machines with SuSe Linux $ uname -a Linux longrtedged01 2.4.21-215-itanium2-smp #1 SMP Mon Apr 26 16:28:29
28
2515
by: silvia.fama | last post by:
Hi! I'm using c language. I need to copy a long type value into a char string using a memcpy function: memcpy(string, (long *) value, len) this value will be then insert into a database. On windows machine it works well, on Solaris not. The windows and solaris path into c language is the same. I'd like to say also that real value works correctly also if they are
0
8686
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8615
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
9033
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8911
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,...
1
6533
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
5872
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();...
1
3057
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
2
2345
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2009
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.