On Fri, Feb 8, 2013 at 10:45 AM, Christopher Schultz
<ch...@christopherschultz.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> G,
>
> On 2/8/13 2:26 PM, G Kitagawa wrote:
>> Operating System: Solaris 10 10/09
>>
>> Following the example from the Tomcat set up page, the configure
>> script appears to me (please remember I'm new to Tomcat) to run
>> well.  When I do the make (using /usr/ccs/bin/make), I'm getting
>> errors from jsvc-unix.c, which reference multiple lines in
>> siginfo.h (18 lines), signal.h and wait.h.
>
> Can you post a transcript, starting with ./configure?
>
> I've never tried to use a different 'make', but does jsvc require GNU
> make by any chance? I've seen some packages over the years that
> require GNU make (though not necessarily GCC).
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iEYEAREIAAYFAlEVY9kACgkQ9CaO5/Lv0PCSSACghV/wyNV1ShTgaYoZvvAAYUOk
> n8IAn3dRFATWaVpEif+KKRcZdCGV7xEH
> =vTR5
> -----END PGP SIGNATURE-----

As requested:

webserver# pwd
/opt/apache-tomcat-6.0.36/bin/commons-daemon-1.0.10-native-src/unix

webserver# ./configure --with-java=/usr/java
*** Current host ***
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking cached host system type... ok
*** C-Language compilation tools ***
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ranlib... :
checking for strip... :
*** Host support ***
checking C flags dependant on host system type... ok
*** Java compilation tools ***
checking JAVA_HOME... /usr/java
checking for JDK os include directory...  solaris
gcc flags added
*** Writing output files ***
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Makedefs
config.status: creating native/Makefile
*** All done ***
Now you can issue "make"
webserver#
webserver# /usr/ccs/bin/make
(cd native; /usr/ccs/bin/make  all)
gcc -g -O2 -DOS_SOLARIS -DDSO_DLFCN -DCPU=\"sparc\" -Wall
-Wstrict-prototypes -I/usr/java/include -I/usr/java/include/solaris -c
jsvc-unix.c -o jsvc-unix.o
In file included from /usr/include/sys/signal.h:34,
                 from /usr/include/signal.h:26,
                 from jsvc-unix.c:20:
/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:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/signal.h:26,
                 from jsvc-unix.c:20:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from jsvc-unix.c:20:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
In file included from jsvc-unix.c:24:
/usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
*** Error code 1
make: Fatal error: Command failed for target `jsvc-unix.o'
Current working directory
/opt/apache-tomcat-6.0.36/bin/commons-daemon-1.0.10-native-src/unix/native
*** Error code 1
make: Fatal error: Command failed for target `native/all'
webserver#

-- 

Solaris Rules - WinBLOWS

"I never wanted to be anything but an engineer" -- Capt. Montgomery Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to