473,473 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Python 2.3.2 Compile problems on Solaris 7.

I'm having problems compiling Python with socket support (and support
for several other libraries) on Solaris 7.

When I do the standard ./configure, make, make install dance, I got a
fully compiled Python without an _socket module.

So I uncommented the appropriate socketmodule.c line in Modules/Setup,
and recompiled.

I get this:

gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I.
-I./Include -DPy_BUILD_CORE -c ./Modules/socketmodule.c -o
Modules/socketmodule.oIn file included from
Modules/socketmodule.c:293:
Modules/getnameinfo.c: In function `fake_getnameinfo':
Modules/getnameinfo.c:173: warning: implicit declaration of function
`inet_ntop'Modules/getnameinfo.c:174: warning: comparison between
pointer and integer
Modules/getnameinfo.c:206: warning: comparison between pointer and
integer
Modules/socketmodule.c: In function `socket_inet_pton':
Modules/socketmodule.c:2972: error: `AF_INET6' undeclared (first use
in this function)Modules/socketmodule.c:2972: error: (Each undeclared
identifier is reported only onceModules/socketmodule.c:2972: error:
for each function it appears in.)
Modules/socketmodule.c: In function `socket_inet_ntop':
Modules/socketmodule.c:3016: error: `INET_ADDRSTRLEN' undeclared
(first use in this function)Modules/socketmodule.c:3046: warning:
assignment makes pointer from integer without a
castModules/socketmodule.c:3016: warning: unused variable `ip'
*** Error code 1
make: Fatal error: Command failed for target `Modules/socketmodule.o'

I even tried copying the socketmodule.c from the 2.3b1 source code
(which we had been using until now, which supported sockets on our
machine) and recompiling to no avail.

That's the major problem I'm having and need to solve.

Aside from that, I'm also getting hundreds of errors like this:

<unknown> 0x1c60
/usr/common/lib/libncurses.a(lib_tparm.o)

with several libraries, including curses and ssl.

This is the first real compilation error I've ever had with Python,
and I don't know what to do from here. Any help is appreciated :)

Thanks,
Jeremy
Jul 18 '05 #1
1 1770
Jeremy Fincher wrote:
This is the first real compilation error I've ever had with Python,
and I don't know what to do from here. Any help is appreciated :)


You should try to analyse the problem, taking one problem at a time.
To do so, you need to read the error message, and try to match it to
the source code you got. Then a solution may become apparent.

Looking at the first non-warning message:

Modules/socketmodule.c: In function `socket_inet_pton':
Modules/socketmodule.c:2972: error: `AF_INET6' undeclared (first use
in this function)Modules/socketmodule.c:2972: error: (Each undeclared
identifier is reported only onceModules/socketmodule.c:2972: error:
for each function it appears in.)

What is line 2972 of socketmodule.c? In my copy, it reads

#ifndef ENABLE_IPV6
if(af == AF_INET6) {
PyErr_SetString(socket_error,
"can't use AF_INET6, IPv6 is disabled");
return NULL;
}
#endif

So the error would go away if ENABLE_IPV6 was not defined. Does this
ring a bell?

Regards,
Martin

Jul 18 '05 #2

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

Similar topics

4
by: Logan | last post by:
Several people asked me for the following HOWTO, so I decided to post it here (though it is still very 'alpha' and might contain many (?) mistakes; didn't test what I wrote, but wrote it - more or...
1
by: Skip Montanaro | last post by:
This is kinda off-topic for this group, but since I'm packaging Python perhaps not too far OT. I built a Solaris package for Python 2.3.3 then copied it to another system and installed it. ...
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...
2
by: Gary Robinson | last post by:
I'm in the market for a server to run some python code which is optimized via psyco. Sun T2100 servers come with Solaris 10, which comes with python pre-installed. Since those servers use the...
4
by: Martijn de Munnik | last post by:
Hi, I want to compile python on my solaris 10 system (amd 64 bit). I did the following: ../configure --prefix=/opt/64/python make which resulted in this error:
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 421 open ( +3) / 3530 closed ( +8) / 3951 total (+11) Bugs : 963 open ( +4) / 6426 closed (+21) / 7389 total (+25) RFE : 255 open...
0
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,...
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...
1
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...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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...

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.