[Mailman-Users] Problem with compilation under Solaris 9

Jean Berthold jean.berthold at eos-gd.ch
Tue Apr 15 10:26:31 CEST 2003


Hello,

Now I tried to re-install Python from the sources.

"./configure" seems working correctly

but "./make" :

                Modules/python.o \
                libpython2.2.a -lsocket -lnsl -ldl  -lpthread -lthread   -lm
case $MAKEFLAGS in \
*-s*) CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG -g -O3 -Wall
-Wstrict-prototypes' ./python -E ./setup.py -q build;; \
*) CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes'
./python -E ./setup.py build;; \
esac
ld.so.1: ./python: fatal: libstdc++.so.5: open failed: No such file or directory
*** Error code 137
make: Fatal error: Command failed for target `sharedmods'

if I try a find to locate this   libstdc++.so.5
root at vanuatu # find / -type f -exec grep "libstdc++.so.5" /dev/null {} \;
/var/sadm/install/contents:/usr/local/lib/libstdc++.so=libstdc++.so.5.0.0 s none
SMCgcc
/var/sadm/install/contents:/usr/local/lib/libstdc++.so.5=libstdc++.so.5.0.0 s none
SMCgcc
/var/sadm/install/contents:/usr/local/lib/libstdc++.so.5.0.0 f none 0755 bin bin
8402256 43236 1030525336 SMCgcc
/var/sadm/install/contents:/usr/local/lib/sparcv9/libstdc++.so=libstdc++.so.5.0.0
s none SMCgcc
/var/sadm/install/contents:/usr/local/lib/sparcv9/libstdc++.so.5=libstdc++.so.5.0.0
s none SMCgcc
/var/sadm/install/contents:/usr/local/lib/sparcv9/libstdc++.so.5.0.0 f none 0755
bin bin 5441032 32551 1030525394 SMCgcc
/usr/local/lib/libstdc++.la:dlname='libstdc++.so.5'
/usr/local/lib/libstdc++.la:library_names='libstdc++.so.5.0.0 libstdc++.so.5
libstdc++.so'
/usr/local/lib/sparcv9/libstdc++.la:dlname='libstdc++.so.5'
/usr/local/lib/sparcv9/libstdc++.la:library_names='libstdc++.so.5.0.0
libstdc++.so.5 libstdc++.so'

My $PATH:
root at vanuatu # print $PATH
/usr/ccs/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/sfw/sbin:/opt/sfw/bin:/usr/openwin/bin:/usr/dt/bin:/usr/apache/bin

Is this path correct or do I need change it for including /usr/local/lib/sparcv9 ?

root at vanuatu # which gcc
/usr/local/bin/gcc
root at vanuatu # which python
/usr/local/bin/python
root at vanuatu # which apachectl
/usr/apache/bin/apachectl
root at vanuatu #

I tried to change my path, unsuccessfully ...

Usually, all libraries are automatically used by the system, Im right ?


Jon Carnes a écrit :

> Not much help, but apparently you are not the first to have a rough time
> installing Python on Solaris:
>
> http://mail.python.org/pipermail/python-bugs-list/2002-November/014410.html
>
> On Mon, 2003-04-14 at 07:17, Jean Berthold wrote:
> > 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...
> >
> > ------------------------------------------------------
> > Mailman-Users mailing list
> > Mailman-Users at python.org
> > http://mail.python.org/mailman/listinfo/mailman-users
> > Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
> > Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
> >
> > This message was sent to: jonc at nc.rr.com
> > Unsubscribe or change your options at
> > http://mail.python.org/mailman/options/mailman-users/jonc%40nc.rr.com

--
________________________________

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