[Mailman-Users] Problem with compilation under Solaris 9
Jean Berthold
jean.berthold at eos-gd.ch
Mon Apr 14 13:17:40 CEST 2003
Hello all,
I have some problem for installing mailman under Solaris 9.
At first I tried to install python from the source, unsuccessfully
because a problem of "libstdc++.so.5" which is not compatible.
After, I installed the Solaris package:
root at vanuatu # pkginfo | grep python
application SMCpython python
Python 2.2.2 (#1, Feb 11 2003, 06:15:33)
Apache is running:
root at vanuatu # /usr/apache/bin/httpd -v
Server version: Apache/1.3.26 (Unix)
Server built: Jun 25 2002 09:37:00
When I run:
--------------
mailman at vanuatu # ./configure --prefix=/usr/local/mailman
--with-mail-gid=other --with-cgi-gid=nobody
It work fine except:
...
...
Traceback (most recent call last):
File "conftest.py", line 2, in ?
from socket import *
File "/usr/local/lib/python2.2/socket.py", line 41, in ?
from _socket import *
ImportError: No module named _socket
checking for default mail host name... Can't open conftest.out
checking for default URL host component... Can't open conftest.out
...
...
creating build/cron/mailpasswds
creating build/cron/nightly_gzip
creating build/cron/senddigests
configuration completed at Mon Apr 14 12:40:21 MEST 2003
At next time, I launched:
--------------------------
mailman at vanuatu # make
for d in bin cron misc Mailman scripts src templates messages tests; \
do \
(cd $d; make); \
done
for d in Cgi Logging Archiver Handlers Bouncers Queue MTA Gui Commands;
\
do \
(cd $d; make); \
done
gcc -c -I. -DPREFIX="\"/usr/local/mailman\""
-DPYTHON="\"/usr/local/bin/python\"" -DHELPFUL -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 ./common.c
gcc -c -I. -DPREFIX="\"/usr/local/mailman\""
-DPYTHON="\"/usr/local/bin/python\"" -DHELPFUL -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 ./vsnprintf.c
gcc -DSCRIPT="\"admindb\"" -I. -DCGI_GROUP="\"nobody\"" -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o
vsnprintf.o -o admindb ./cgi-wrapper.c
gcc -DSCRIPT="\"admin\"" -I. -DCGI_GROUP="\"nobody\"" -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o
vsnprintf.o -o admin ./cgi-wrapper.c
gcc -DSCRIPT="\"confirm\"" -I. -DCGI_GROUP="\"nobody\"" -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o
vsnprintf.o -o confirm ./cgi-wrapper.c
gcc -DSCRIPT="\"create\"" -I. -DCGI_GROUP="\"nobody\"" -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o
vsnprintf.o -o create ./cgi-wrapper.c
gcc -DSCRIPT="\"edithtml\"" -I. -DCGI_GROUP="\"nobody\"" -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o
vsnprintf.o -o edithtml ./cgi-wrapper.c
gcc -DSCRIPT="\"listinfo\"" -I. -DCGI_GROUP="\"nobody\"" -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o
vsnprintf.o -o listinfo ./cgi-wrapper.c
gcc -DSCRIPT="\"options\"" -I. -DCGI_GROUP="\"nobody\"" -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o
vsnprintf.o -o options ./cgi-wrapper.c
gcc -DSCRIPT="\"private\"" -I. -DCGI_GROUP="\"nobody\"" -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o
vsnprintf.o -o private ./cgi-wrapper.c
gcc -DSCRIPT="\"rmlist\"" -I. -DCGI_GROUP="\"nobody\"" -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o
vsnprintf.o -o rmlist ./cgi-wrapper.c
gcc -DSCRIPT="\"roster\"" -I. -DCGI_GROUP="\"nobody\"" -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o
vsnprintf.o -o roster ./cgi-wrapper.c
gcc -DSCRIPT="\"subscribe\"" -I. -DCGI_GROUP="\"nobody\"" -g -O2 -g -O2
-DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1
-DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o
vsnprintf.o -o subscribe ./cgi-wrapper.c
gcc -I. -DMAIL_GROUP="\"other\"" -g -O2 -g -O2 -DHAVE_STRERROR=1
-DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1 -DHAVE_SYSLOG_H=1
-DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1 common.o vsnprintf.o -o mailman
./mail-wrapper.c
And install it:
---------------
...
...
Compiling /usr/local/mailman/Mailman/htmlformat.py ...
Compiling /usr/local/mailman/Mailman/i18n.py ...
Compiling /usr/local/mailman/Mailman/mm_cfg.py ...
Compiling /usr/local/mailman/Mailman/versions.py ...
Traceback (most recent call last):
File "bin/update", line 47, in ?
from Mailman import Utils
File "/usr/local/mailman/Mailman/Utils.py", line 35, in ?
import cgi
File "/usr/local/lib/python2.2/cgi.py", line 39, in ?
import urllib
File "/usr/local/lib/python2.2/urllib.py", line 26, in ?
import socket
File "/usr/local/lib/python2.2/socket.py", line 41, in ?
from _socket import *
ImportError: No module named _socket
*** Error code 1
make: Fatal error: Command failed for target `update'
mailman at vanuatu #
If I check the file "/usr/local/lib/python2.2/socket.py" :
24
25 [*] not available on all platforms!
26
27 Special objects:
28
29 SocketType -- type object for socket objects
30 error -- exception raised for I/O errors
31
32 Integer constants:
33
34 AF_INET, AF_UNIX -- socket domains (first argument to socket()
call)
35 SOCK_STREAM, SOCK_DGRAM, SOCK_RAW -- socket types (second
argument)
36
37 Many other constants may be defined; these may be used in calls
to
38 the setsockopt() and getsockopt() methods.
39 """
40
41 from _socket import *
My questions:
----------------
1. Is there a known problem about this _socket module ?
2. I don't know python, is it possible to install this module ?
3. Is exist a Solaris mailman package for Solaris 9 ?
I tried to install mailman with root account AND mailman account, error
messages are identical.
I compiled Apache, python and mailman successfully under a Solaris 8 box
(for testing).
Can you help me ?
Thanks in advance and sorry for my english ...
--
________________________________
Jean Berthold
EOS - energie ouest suisse
Chemin de Mornex 10 , CP 570
CH-1001 Lausanne , Switzerland
Tel. : +41 (0)21 341 24 58
Fax : +41 (0)21 341 20 49
E-Mail : jean.berthold at eos-gd.ch
________________________________
...Unix is like a wigwam - no windows, no gates, apache inside...
More information about the Mailman-Users
mailing list