[mod_python] Re: mod_python 3.3.1 make error

Rares Vernica rvernica at gmail.com
Mon Mar 5 18:17:11 EST 2007


>> checking for flex... /opt/gnutools-1.1/bin/flex
>> found /opt/gnutools-1.1/bin/flex, we'll use this. Use --with-flex to 
>> specify another.
>> checking flex version... awk: syntax error near line 1
>> awk: bailing out near line 1
>> awk: syntax error near line 1
>> awk: bailing out near line 1
>> awk: syntax error near line 1
>> awk: bailing out near line 1
>> ./configure: line 3187: test: : integer expression expected
>> configure: WARNING: Flex version 2.5.4 found.
>>     Version 2.5.31 or greater is required.  You can generally ignore this
>>     warning unless you need to regenerate psp_parser.c from psp_parse.l.
>>     If you do need regenerate psp_parser.c, use --with-flex to specify 
>> the
>>     location of the correct flex version. See the README for more 
>> information.
> 
> Although this isn't stopping compilation, it is strange that awk is 
> failing.
> 
> Which 'awk' is found first in your path. Ie., run:
> 
>   which awk
> 
> Looks like it may be finding the brain damaged BSD version of 'awk' rather
> than SYSV one. Do you have /usr/ucb in your PATH before normal /bin and
> /usr/bin/directories.
> 
> The mod_python configure script should really be doing a search for the
> existence of 'gawk', 'nawk' and 'awk' in that order when it isn't.
> 

The awk is from /usr/bin. The OS is SunOs 5.10. I have no awk in 
/usr/ucb. Anyway, I liked gawk to awk in a directory which is first in 
path. So, no there is no error. I have an old flex so I have to fix thsi 
too.

>> Compiling for DSO.
>>
>> /opt/apache-2.0.52/bin/apxs 
>> -I/home/rvernica/loquat/usr/apple/src/mod_python-3.3.1/src/include 
>> -I/opt/apache-2.0.52/include -I/opt/python/2.4.3/include/python2.4 -c 
>> mod_python.c _apachemodule.c requestobject.c tableobject.c util.c 
>> serverobject.c connobject.c filterobject.c hlist.c hlistobject.c 
>> finfoobject.c -L/opt/python/2.4.3/lib/python2.4/config        -lm 
>> -lpython2.4   -lresolv -lsocket -lnsl -lrt -ldl  -lpthread   
>> -lm          _eprintf.o _floatdidf.o _muldi3.o
>> /opt/apache-2.0.52/build/libtool --silent --mode=compile gcc 
>> -prefer-pic  -DAP_HAVE_DESIGNATED_INITIALIZER -DSOLARIS2=8 
>> -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g -O2 -pthreads 
>> -I/opt/apache-2.0.52/include  -I/opt/apache-2.0.52/include 
>> -I/opt/apache-2.0.52/include 
>> -I/home/rvernica/loquat/usr/apple/src/mod_python-3.3.1/src/include 
>> -I/opt/apache-2.0.52/include -I/opt/python/2.4.3/include/python2.4  -c 
>> -o mod_python.lo mod_python.c && touch mod_python.slo
>> In file included from /usr/include/sys/wait.h:24,
>>                  from /opt/apache-2.0.52/include/apr.h:124,
>>                  from /opt/apache-2.0.52/include/ap_config.h:19,
>>                  from /opt/apache-2.0.52/include/httpd.h:29,
>>                  from 
>> /home/rvernica/loquat/usr/apple/src/mod_python-3.3.1/src/include/mod_python.h:42, 
>>
>>                  from mod_python.c:28:
>> /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
>> /usr/include/sys/siginfo.h:292: error: parse error before '}' token
>> /usr/include/sys/siginfo.h:294: error: parse error before '}' token
>> /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
>> /usr/include/sys/siginfo.h:398: error: conflicting types for '__fault'
>> /usr/include/sys/siginfo.h:267: error: previous declaration of 
>> '__fault' was here
> 
> Can you post the 10 lines either side of line 259 in include file:
> 
>   /usr/include/sys/siginfo.h

#else
					union __sigval	__value;
#endif
				} __kill;
				struct {
					clock_t __utime;
					int	__status;
					clock_t __stime;
				} __cld;
			} __pdata;
			ctid_t	__ctid;		/* contract ID		*/
			zoneid_t __zoneid;	/* zone ID		*/
		} __proc;

		struct {	/* SIGSEGV, SIGBUS, SIGILL, SIGTRAP, SIGFPE */
			void 	*__addr;	/* faulting address	*/
			int	__trapno;	/* illegal trap number	*/
			caddr_t	__pc;		/* instruction address	*/
		} __fault;

		struct {			/* SIGPOLL, SIGXFSZ	*/


> 
> Looks like order of includes is causing a problem. But then the includes 
> are
> from Apache header files which should be okay.
> 
> Can you confirm that you are running older Solaris 8.

It is SunOS 5.10.

> 
> You might try dropping /usr/ucb from your path as well, but don't it 
> will make a
> difference to compilation problem.

I don't have /usr/ucb in the path.

Thanks a lot,
Ray



More information about the Mod_python mailing list