473,395 Members | 1,666 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,395 software developers and data experts.

getaddrinfo not found on SCO OpenServer 5.0.5

I'm trying to get MoinMoin 1.5.4 running with Python 2.3.4 (installed
from an SCO Skunkworks binary). Python 2.3.4 (#1, Aug 27 2004,
18:22:39) [GCC 2.95.3 20030528 (SCO/p5)] on sco_sv3

One of the MoinMoin modules attempts to import cgi and triggers this
traceback:

Traceback (most recent call last):
File "./moin.cgi", line 43, in ?
from MoinMoin.request import RequestCGI
File "/usr/moin/lib/python2.3/site-packages/MoinMoin/request.py",
line 10, in ?
import os, re, time, sys, cgi, StringIO
File "/opt/K/SCO/python/2.3.4/usr/lib/python2.3/cgi.py", line 39, in
?
import urllib
File "/opt/K/SCO/python/2.3.4/usr/lib/python2.3/urllib.py", line 26,
in ?
import socket
File "/opt/K/SCO/python/2.3.4/usr/lib/python2.3/socket.py", line 44,
in ?
import _socket
ImportError: dynamic linker: /usr/bin/python: relocation error: symbol
not found: getaddrinfo; referenced from:
/opt/K/SCO/python/2.3.4/usr/lib/python2.3/lib-dynload/_socketmodule.so

getaddrinfo is not supported in OpenServer 5, but it is available under
the UDK. That is, the function is present in /udk/usr/lib/libsocket.so.
I've tried adjusting LD_LIBRARY_PATH without success. My questions:

1) I've seen mention of native vs. Python getaddrinfo implementations.
If that's true, how can I force the program to use the Python one?

2) Is there an option to not use the BSD Library function?

3) Finally, is there a trick to searching for shared libaries?

Thanks,
Dave Harris

Jul 21 '06 #1
4 2179
In case you haven't heard Microsoft is suing SCO for stealing his
Internet concepts and letters and numbers, so you should probably just
ditch OpenServer and get Debian like all the smart people have done.

I guess the quality of SCO software has declined over the last forty or
fifty years and they had to have David Boies compile libsocket and that
is probably why this broken symbol problem is happenig.

I'm sorry if you cannot switch from the SCO platform, in which case
this message may not be very helpful. Have a nice day!

Jul 21 '06 #2

On Jul 21, 2006, at 4:20 PM, Steve M wrote:
In case you haven't heard Microsoft is suing SCO for stealing his
Internet concepts and letters and numbers, so you should probably just
ditch OpenServer and get Debian like all the smart people have done.

I guess the quality of SCO software has declined over the last
forty or
fifty years and they had to have David Boies compile libsocket and
that
is probably why this broken symbol problem is happenig.

I'm sorry if you cannot switch from the SCO platform, in which case
this message may not be very helpful. Have a nice day!
This is way off-topic, but it's SCO that is suing IBM and IBM
countersuing SCO. It appears that Microsoft was helping bankroll
SCO's lawsuit. If you want to see how it's going, look at a graph of
the SCOX (the ticker symbol) stock price since 2003 (paying close
attention to the more recent price as the judge has started ruling on
discovery issues). It was in 2003 when they started claiming everyone
using Linux owed them money and they sued IBM for billions of
dollars. Also see groklaw.net if you really want to know more about
it. In the interest of full disclosure, I made money shorting SCOX
stock from mid 2003 to mid 2004 (borrowed and sold at $11, bought
back at $5).

Dave

Jul 21 '06 #3
ed*****@gmail.com wrote:
1) I've seen mention of native vs. Python getaddrinfo implementations.
If that's true, how can I force the program to use the Python one?

2) Is there an option to not use the BSD Library function?

3) Finally, is there a trick to searching for shared libaries?
There is an autoconf test to determine whether getaddrinfo is
available on the system. You should study that test to find out
why it thinks the function is available when it is actually not.
If you can't do that, you can manually edit pyconfig.h to
change the outcome of configure.

Regards,
Martin
Jul 23 '06 #4

Martin v. Löwis wrote:
ed*****@gmail.com wrote:
1) I've seen mention of native vs. Python getaddrinfo implementations.
If that's true, how can I force the program to use the Python one?

2) Is there an option to not use the BSD Library function?

3) Finally, is there a trick to searching for shared libaries?

There is an autoconf test to determine whether getaddrinfo is
available on the system. You should study that test to find out
why it thinks the function is available when it is actually not.
If you can't do that, you can manually edit pyconfig.h to
change the outcome of configure.

Regards,
Martin
Thank you for the suggestion. I will try it July 24 when I am back in
the office.

I've dug into it further and, on the surface, it appears that IPv6 was
identified as available when the binary was built for OSR 5. IPv6 is
not available for OSR5, so the binary was built on OSR 6 and
mislabeled, or the autoconf test failed.

Thanks again, Martin, for the relevant reply,
Dave Harris

Jul 23 '06 #5

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

Similar topics

0
by: Bernhard Schmidt | last post by:
Hello, sorry for bothering, I'm not a programmer and I don't do much python, I'm more a networking guy trying to get his favourite linux distribution to update through the shiny new protocol...
0
by: Matt | last post by:
I'm trying to get the HTML data off of a webpage. Let's say for the sake of argument it's the python homepage. I've googled around and found some examples that people said worked. Here's what...
0
by: Minor Crank | last post by:
Sorry for the silly newbie question. Our manager has directed us to use the getaddrinfo() instead of the deprecated gethostbyname(). The problem is, I don't know where getaddrinfo() get its...
1
by: run | last post by:
My enveronment - IE6 - .Net 1.1 sp1 - Windows 2000 sp4 I cannot use function "CSMTPConnection" on Vc++.Net on Windows 2000. because WS2_32.dll on error message as "The procedure entry point...
3
by: Mike Kent | last post by:
If anyone is successfully compiling Pyton 2.3 on an SCO OpenServer 5 box, I'd appreciate hearing from you on how you managed to do it. So far, I'm unable to get a python that doesn't coredump.
1
by: mirandacascade | last post by:
I noticed the following lines from the connect() method of the HTTPConnection class within httplib: for res in socket.getaddrinfo(self.host, self.port, 0, socket.SOCK_STREAM): af, socktype,...
2
by: John Nagle | last post by:
Here's a strange little bug. "socket.getaddrinfo" blows up if given a bad domain name containing ".." in Unicode. The same string in ASCII produces the correct "gaierror" exception. Actually,...
3
by: Nathan | last post by:
Hi, I'm trying to do some network programming, but when I use 'struct addrinfo' or getaddrinfo, I see errors: gcc --std=c99 -Wall ipv6_test.c -o it ipv6_test.c: In function `main':...
1
by: Karl Chen | last post by:
I've discovered that since glibc 2.3.2, getaddrinfo(3) supports a useful flag called AI_ADDRCONFIG. It turns off AAAA lookups if the machine isn't configured for IPv6 (and similarly for IPv4,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.