[Zope] Can not compile Splitter.c when executing w_pcgi.py in order to build Zope Server 2.4.0. on Solaris

Chris McDonough chrism@zope.com
Thu, 02 Aug 2001 19:41:52 -0400


Hi Alan,

Have you tried the Solaris binary distribution
(http://www.zope.org/Products/Zope/2.4.0/Zope-2.4.0-solaris-2.6-sparc.tgz)?

I fear that this may be a difference between the Sun C compiler and gcc
(which I believe we use to build the binary release, even on Solaris).

- C

"Hobesh, Alan F." wrote:
> 
> > -----Original Message-----
> > From: Alan Hobesh [SMTP:toolsadm@bofasecurities.com]
> > Sent: Thursday, August 02, 2001 3:59 PM
> > Subject:
> >
> > ==> Problem:
> >
> > ==> Can not compile Splitter.c when executing w_pcgi.py in order to build
> > Zope Server 2.4.0.
> >
> > ==> Python is version 2.1.1
> >
> > ==> OS is SunOS 5.6 Generic_105181-25 sun4u sparc SUNW,Ultra-250
> >
> > ==> Partial output of execution of 'python w_pcgi.py'
> >
> > ==> Thanks for your help!
> >
> > Script started on Thu Aug 02 15:39:30 2001
> > toolsadm@sf-backoff-dev1[186] python
> > Python 2.1.1 (#3, Aug  1 2001, 16:51:43) [C] on sunos5
> > Type "copyright", "credits" or "license" for more information.
> > >>> ^D
> > toolsadm@sf-backoff-dev1[187] python w_pcgi.py
> >
> > --------------------------------------------------------------------------
> > ----
> > Building the PCGI wrapper
> > ./configure
> > loading cache ./config.cache
> > checking for gcc... (cached) cc
> > checking whether the C compiler (cc  ) works... yes
> > checking whether the C compiler (cc  ) is a cross-compiler... no
> > checking whether we are using GNU C... (cached) no
> > checking how to run the C preprocessor... (cached) cc -E
> > checking MACHDEP... sunos5
> > checking for inet_addr in -lnsl... (cached) yes
> > checking for socket in -lsocket... (cached) yes
> > checking for ANSI C header files... (cached) yes
> > checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
> > checking for unistd.h... (cached) yes
> > checking for working const... (cached) yes
> > checking for pid_t... (cached) yes
> > checking return type of signal handlers... (cached) void
> > checking for putenv... (cached) yes
> > checking for socket... (cached) yes
> > checking for strerror... (cached) yes
> > checking for union semun... no
> > creating ./config.status
> > creating Makefile
> > make
> > --------------------------------------------------------------------------
> > ----
> > Writing the pcgi resource file (ie cgi script),
> > /tools/src/Zope-2.4.0-src/Zope.cgi
> > chmod 0755 /tools/src/Zope-2.4.0-src/Zope.cgi
> >
> > --------------------------------------------------------------------------
> > ----
> > Deleting '.pyc' and '.pyo' files recursively under
> > /tools/src/Zope-2.4.0-src...
> > Done.
> >
> > --------------------------------------------------------------------------
> > ----
> > Compiling python modules
> >
> > --------------------------------------------------------------------------
> > ----
> > Building extension modules
> > cp ./lib/python/Setup20 ./lib/python/Setup
> >
> > ------------------------------------------------
> > Compiling extensions in lib/python
> >
> > . . .
> >
> >
> > /tools/python2.1.1/lib/python2.1/config/makesetup \
> >        -m Makefile.pre -c
> > /tools/python2.1.1/lib/python2.1/config/config.c.in Setup -n
> > /tools/python2.1.1/lib/python2.1/config/Setup.config
> > /tools/python2.1.1/lib/python2.1/config/Setup.local
> > /tools/python2.1.1/lib/python2.1/config/Setup
> > make
> > cc -Xc -mt  -O -I/tools/python2.1.1/include/python2.1
> > -I/tools/python2.1.1/include/python2.1 -DHAVE_CONFIG_H  -c
> > ././src/Splitter.c -o ./Splitter.o
> > "././src/Splitter.c", line 85: warning: invalid white space character in
> > directive
> > "././src/Splitter.c", line 86: warning: invalid white space character in
> > directive
> > "././src/Splitter.c", line 88: warning: invalid white space character in
> > directive
> > "././src/Splitter.c", line 89: warning: invalid white space character in
> > directive
> > "././src/Splitter.c", line 90: warning: invalid white space character in
> > directive
> > "././src/Splitter.c", line 92: warning: invalid white space character in
> > directive
> > "././src/Splitter.c", line 93: warning: invalid white space character in
> > directive
> > "././src/Splitter.c", line 94: warning: invalid white space character in
> > directive
> > "././src/Splitter.c", line 111: syntax error before or at: /
> > "././src/Splitter.c", line 153: syntax error before or at: /
> > "././src/Splitter.c", line 264: warning: invalid white space character in
> > directive
> > "././src/Splitter.c", line 558: syntax error before or at: /
> > cc: acomp failed for ././src/Splitter.c
> > *** Error code 2
> > make: Fatal error: Command failed for target `Splitter.o'
> > Traceback (most recent call last):
> >   File "/tools/src/Zope-2.4.0-src/w_pcgi.py", line 111, in ?
> >     if __name__=='__main__': main(sys.argv[0])
> >   File "/tools/src/Zope-2.4.0-src/w_pcgi.py", line 109, in main
> >     import wo_pcgi; wo_pcgi.main(me)
> >   File "/tools/src/Zope-2.4.0-src/wo_pcgi.py", line 105, in main
> >     import build_extensions
> >   File "/tools/src/Zope-2.4.0-src/inst/build_extensions.py", line 109, in
> > ?
> >
> > make('lib','python','Products','PluginIndexes','TextIndex','Splitter','ISO
> > _8859_1_Splitter')
> >   File "/tools/src/Zope-2.4.0-src/inst/do.py", line 135, in make
> >     do('make')
> >   File "/tools/src/Zope-2.4.0-src/inst/do.py", line 104, in do
> >     if i and picky: raise SystemError, i
> > SystemError: 256
> > toolsadm@sf-backoff-dev1[188]
> > toolsadm@sf-backoff-dev1[188] ^D
> >
> > script done on Thu Aug 02 15:42:25 2001
> >
> > ==> I'm not sure which source file I am getting the error on...
> >
> > toolsadm@sf-backoff-dev1[228] ls -al `find . -name Splitter.c -print |
> > xargs`
> > -rw-r--r--   1 toolsadm toolsadm   15520 Jun  1 09:09
> > ./lib/python/Products/PluginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter
> > /src/Splitter.c
> > -rw-r--r--   1 toolsadm toolsadm   13862 May 30 08:57
> > ./lib/python/Products/PluginIndexes/TextIndex/Splitter/ZopeSplitter/src/Sp
> > litter.c
> > -rw-r--r--   1 toolsadm toolsadm   13862 May 23 11:18
> > ./lib/python/SearchIndex/Splitter.c
> >
> >
> >
> _____________________________________________________________________
> IMPORTANT NOTICES:
>           This message is intended only for the addressee. Please notify the
> sender by e-mail if you are not the intended recipient. If you are not the
> intended recipient, you may not copy, disclose, or distribute this message
> or its contents to any other person and any such actions may be unlawful.
> 
>          Banc of America Securities LLC("BAS") does not accept time
> sensitive, action-oriented messages or transaction orders, including orders
> to purchase or sell securities, via e-mail.
> 
>          BAS reserves the right to monitor and review the content of all
> messages sent to or from this e-mail address. Messages sent to or from this
> e-mail address may be stored on the BAS e-mail system.
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

-- 
Chris McDonough                           Zope Corporation
http://www.zope.org                    http://www.zope.com

""" Killing hundreds of birds with thousands of stones """