473,397 Members | 2,028 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,397 software developers and data experts.

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 2751
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...@schoenian-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.loewis.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.loewis.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
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...
4
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
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...
8
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...
4
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...
3
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...
13
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
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...
28
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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...
0
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...
0
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...

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.