
ugai at iias
Mar 15, 2000, 10:22 PM
Post #1 of 3
(438 views)
Permalink
|
|
PERL_THREADS on Solaris 2.6 (Re: [ANNOUNCE] mod_perl-1.21_03)
|
|
Dear all, Does anybody success to compile mod_perl-1.21_03 with PERL_THREADS on Solaris 2.6 and threaded-perl 5.005_3 I have got the following compile error message. gcc -O -D_REENTRANT -I/opt/local/include -I/opt/local/lib/perl5/5.00503/sun4-sol aris-thread/CORE -DMOD_PERL_VERSION=\"1.21_03\" -DMOD_PERL_STRING_VERSION=\"mod _perl/1.21_02\" -DPERL_THREADS=1 -I../.. -I/opt/local/lib/perl5/5.00503/sun4-sol aris-thread/CORE -I../../os/unix -I../../include -DSOLARIS2=260 -DMOD_PERL -DU SE_PERL_SSI -D_REENTRANT -I/opt/local/include -DPERL_THREADS -DUSE_EXPAT -I../.. /lib/expat-lite -DNO_DL_NEEDED `../../apaci` -c mod_perl.c In file included from mod_perl.c:60: mod_perl.h:180: parse error before `table' mod_perl.h:180: warning: no semicolon at end of struct or union mod_perl.h:181: warning: data definition has no type or storage class mod_perl.h:182: parse error before `*' mod_perl.h:182: warning: data definition has no type or storage class mod_perl.h:184: parse error before `}' mod_perl.h:184: warning: data definition has no type or storage class mod_perl.h:186: parse error before `*' mod_perl.h:186: warning: data definition has no type or storage class When I apply a patch to cancel the _INCLUDE_APACHE_FIRST, I could compile any other .c than perl_config.c. On perl_config.c I've got the following message. gcc -O -D_REENTRANT -I/opt/local/include -I/opt/local/lib/perl5/5.00503/sun4-solaris-thread/CORE -DMOD_PERL_VERSION=\"1.21_03\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.21_02\" -DPERL_THREADS=1 -I../.. -I/opt/local/lib/perl5/5.00503/sun4-solaris-thread/CORE -I../../os/unix -I../../include -DSOLARIS2=260 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -I/opt/local/include -DPERL_THREADS -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` -c perl_config.c perl_config.c: In function `perl_cmd_module': perl_config.c:581: `thr' undeclared (first use this function) perl_config.c:581: (Each undeclared identifier is reported only once perl_config.c:581: for each function it appears in.) perl_config.c: In function `perl_cmd_require': perl_config.c:609: `thr' undeclared (first use this function) Could anybody help me please? The patch I applied. *** /home/usr/ugai/tmp/modperl/src/modules/perl/mod_perl.h Fri Mar 3 10:31:57 2000 --- mod_perl.h Thu Mar 16 14:14:08 2000 *************** *** 22,30 **** --- 22,32 ---- #define SHARED_MODULE #endif + /* #ifdef PERL_THREADS #define _INCLUDE_APACHE_FIRST #endif + */ #ifdef _INCLUDE_APACHE_FIRST #include "apache_inc.h" Here is perl -V Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration: Platform: osname=solaris, osvers=2.6, archname=sun4-solaris-thread uname='sunos orion 5.6 generic_105181-07 sun4u sparc sunw,ultra-4 ' hint=recommended, useposix=true, d_sigaction=define usethreads=define useperlio=undef d_sfio=undef Compiler: cc='gcc', optimize='-O', gccversion=2.7.2.3 cppflags='-D_REENTRANT -I/opt/local/include' ccflags ='-D_REENTRANT -I/opt/local/include' stdchar='unsigned char', d_stdstdio=define, usevfork=false intsize=4, longsize=4, ptrsize=4, doublesize=8 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 alignbytes=8, usemymalloc=y, prototype=define Linker and Libraries: ld='gcc', ldflags =' -L/opt/local/lib' libpth=/opt/local/lib /local/gnu/lib /lib /usr/lib /usr/ccs/lib libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lposix4 -lpthread -lc -lcrypt libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-fPIC', lddlflags='-G -L/opt/local/lib' Characteristics of this binary (from libperl): Built under solaris Compiled at Mar 31 1999 17:51:54 %ENV: PERL5LIB="/home/usr/ugai/lib/perl" PERL_BADLANG="0" @INC: /home/usr/ugai/lib/perl /opt/local/lib/perl5/5.00503/sun4-solaris-thread /opt/local/lib/perl5/5.00503 /opt/local/lib/perl5/site_perl/5.005/sun4-solaris-thread /opt/local/lib/perl5/site_perl/5.005 . Yours sincerely Takanori Ugai -- Takanori Ugai internet: ugai [at] iias Document Processing Lab. FUJITSU LABORATORIES LTD. Kawasaki Japan
|