Can someone please help?  I cannot find the answer in the archives...

much appreciated,
Ryan

Greetings,

I'm trying to compile jsvc-src (from apache-tomcat-5.5.17 binary core distribution) on debian sarge. I've installed jdk-1_5_0_08-linux-i586.bin using make-jpkg.

So autoconf and ./configure on jsvc-src works fine. But I'm getting errors when running make:

make[1]: *** [jsvc-unix.o] Error 1
make[1]: Leaving directory `/apps/apache-tomcat-5.5.17/bin/jsvc-src/native'
make: *** [native/all] Error 2

What am I doing wrong?  How do I compile this succesfully?

I've attached the output of configure and make for your perusal.

much appreciated,
Ryan

------------------------------------------------------------------------

*** Current host ***
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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... ranlib
*** Host support ***
checking C flags dependant on host system type... ok
*** Java compilation tools ***
checking for javac... /usr/bin/javac
checking wether the Java compiler (/usr/bin/javac) works... yes
checking for jar... /usr/bin/jar
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"
make -C native all
make[1]: Entering directory `/apps/apache-tomcat-5.5.17/bin/jsvc-src/native'
gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\"i386\" -I/usr/include 
-I/usr/include/linux -Wall -Wstrict-prototypes -c jsvc-unix.c -o jsvc-unix.o
In file included from /usr/include/_G_config.h:44,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:72,
                 from jsvc.h:20,
                 from jsvc-unix.c:17:
/usr/include/gconv.h:72: error: syntax error before "size_t"
/usr/include/gconv.h:88: error: syntax error before "size_t"
/usr/include/gconv.h:97: error: syntax error before "size_t"
/usr/include/gconv.h:174: error: syntax error before "size_t"
/usr/include/gconv.h:177: error: syntax error before '}' token
In file included from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:72,
                 from jsvc.h:20,
                 from jsvc-unix.c:17:
/usr/include/_G_config.h:47: error: field `__cd' has incomplete type
/usr/include/_G_config.h:50: error: field `__cd' has incomplete type
In file included from /usr/include/stdio.h:72,
                 from jsvc.h:20,
                 from jsvc-unix.c:17:
/usr/include/libio.h:351: error: syntax error before "size_t"
/usr/include/libio.h:360: error: syntax error before "size_t"
/usr/include/libio.h:468: error: syntax error before "_IO_sgetn"
/usr/include/libio.h:468: error: syntax error before "size_t"
In file included from jsvc.h:20,
                 from jsvc-unix.c:17:
/usr/include/stdio.h:302: error: syntax error before "size_t"
/usr/include/stdio.h:309: error: syntax error before "size_t"
/usr/include/stdio.h:351: error: syntax error before "size_t"
/usr/include/stdio.h:355: error: syntax error before "size_t"
/usr/include/stdio.h:603: error: syntax error before "fread"
/usr/include/stdio.h:603: error: syntax error before "size_t"
/usr/include/stdio.h:609: error: syntax error before "fwrite"
/usr/include/stdio.h:609: error: syntax error before "size_t"
/usr/include/stdio.h:631: error: syntax error before "fread_unlocked"
/usr/include/stdio.h:631: error: syntax error before "size_t"
/usr/include/stdio.h:633: error: syntax error before "fwrite_unlocked"
/usr/include/stdio.h:633: error: syntax error before "size_t"
In file included from jsvc.h:21,
                 from jsvc-unix.c:17:
/usr/include/stdlib.h:137: error: syntax error before "__ctype_get_mb_cur_max"
In file included from /usr/include/sys/types.h:266,
                 from /usr/include/stdlib.h:416,
                 from jsvc.h:21,
                 from jsvc-unix.c:17:
/usr/include/bits/pthreadtypes.h:50: error: syntax error before "size_t"
/usr/include/bits/pthreadtypes.h:53: error: syntax error before "__stacksize"
In file included from jsvc.h:21,
                 from jsvc-unix.c:17:
/usr/include/stdlib.h:433: error: syntax error before "size_t"
/usr/include/stdlib.h:462: error: syntax error before "size_t"
/usr/include/stdlib.h:556: error: syntax error before "__size"
/usr/include/stdlib.h:558: error: syntax error before "__nmemb"
/usr/include/stdlib.h:567: error: syntax error before "size_t"
In file included from /usr/include/stdlib.h:578,
                 from jsvc.h:21,
                 from jsvc-unix.c:17:
/usr/include/alloca.h:33: error: syntax error before "__size"
In file included from jsvc.h:21,
                 from jsvc-unix.c:17:
/usr/include/stdlib.h:583: error: syntax error before "__size"
/usr/include/stdlib.h:739: error: syntax error before "size_t"
/usr/include/stdlib.h:743: error: syntax error before "size_t"
/usr/include/stdlib.h:812: error: syntax error before "size_t"
/usr/include/stdlib.h:815: error: syntax error before "size_t"
/usr/include/stdlib.h:819: error: syntax error before "size_t"
/usr/include/stdlib.h:822: error: syntax error before "size_t"
/usr/include/stdlib.h:830: error: syntax error before "size_t"
/usr/include/stdlib.h:833: error: syntax error before '*' token
/usr/include/stdlib.h:837: error: syntax error before "wchar_t"
/usr/include/stdlib.h:841: error: syntax error before "mbstowcs"
/usr/include/stdlib.h:841: error: syntax error before '*' token
/usr/include/stdlib.h:844: error: syntax error before "wcstombs"
/usr/include/stdlib.h:845: error: syntax error before '*' token
In file included from /usr/include/sys/stat.h:105,
                 from jsvc.h:25,
                 from jsvc-unix.c:17:
/usr/include/bits/stat.h:70: error: field `st_atim' has incomplete type
/usr/include/bits/stat.h:71: error: field `st_mtim' has incomplete type
/usr/include/bits/stat.h:72: error: field `st_ctim' has incomplete type
In file included from /usr/include/linux/signal.h:6,
                 from jsvc-unix.c:19:
/usr/include/asm/signal.h:29: error: conflicting types for `sigset_t'
/usr/include/sys/select.h:38: error: previous declaration of `sigset_t'
/usr/include/asm/signal.h:176: error: syntax error before "size_t"
In file included from /usr/include/asm/siginfo.h:4,
                 from /usr/include/linux/signal.h:7,
                 from jsvc-unix.c:19:
/usr/include/asm-generic/siginfo.h:51: error: syntax error before "timer_t"
/usr/include/asm-generic/siginfo.h:70: error: syntax error before "clock_t"
/usr/include/asm-generic/siginfo.h:87: error: syntax error before '}' token
/usr/include/asm-generic/siginfo.h:88: error: syntax error before '}' token
In file included from /usr/include/sys/wait.h:139,
                 from jsvc-unix.c:23:
/usr/include/bits/siginfo.h:34: error: redefinition of `union sigval'
/usr/include/bits/siginfo.h:52: error: redefinition of `struct siginfo'
/usr/include/bits/siginfo.h:65: error: syntax error before '.' token
/usr/include/bits/siginfo.h:66: error: syntax error before '.' token
/usr/include/bits/siginfo.h:72: error: syntax error before '.' token
/usr/include/bits/siginfo.h:73: error: syntax error before '.' token
/usr/include/bits/siginfo.h:75: error: syntax error before '}' token
/usr/include/bits/siginfo.h:80: error: syntax error before '.' token
/usr/include/bits/siginfo.h:81: error: syntax error before '.' token
/usr/include/bits/siginfo.h:83: error: syntax error before '}' token
/usr/include/bits/siginfo.h:83: error: conflicting types for `_rt'
/usr/include/asm-generic/siginfo.h:63: error: previous declaration of `_rt'
/usr/include/bits/siginfo.h:88: error: syntax error before '.' token
/usr/include/bits/siginfo.h:89: error: syntax error before '.' token
/usr/include/bits/siginfo.h:90: error: syntax error before '.' token
/usr/include/bits/siginfo.h:91: error: syntax error before '.' token
/usr/include/bits/siginfo.h:92: error: syntax error before '.' token
/usr/include/bits/siginfo.h:98: error: syntax error before '.' token
/usr/include/bits/siginfo.h:99: error: conflicting types for `_sigfault'
/usr/include/asm-generic/siginfo.h:80: error: previous declaration of 
`_sigfault'
/usr/include/bits/siginfo.h:104: error: syntax error before '.' token
/usr/include/bits/siginfo.h:105: error: syntax error before '.' token
/usr/include/bits/siginfo.h:106: error: conflicting types for `_sigpoll'
/usr/include/asm-generic/siginfo.h:86: error: previous declaration of `_sigpoll'
/usr/include/bits/siginfo.h:107: error: syntax error before '}' token
/usr/include/bits/siginfo.h:108: error: syntax error before '}' token
/usr/include/bits/siginfo.h:133: error: syntax error before '-' token
/usr/include/bits/siginfo.h:155: error: syntax error before '(' token
/usr/include/bits/siginfo.h:176: error: syntax error before '(' token
/usr/include/bits/siginfo.h:197: error: syntax error before '(' token
/usr/include/bits/siginfo.h:206: error: syntax error before '(' token
/usr/include/bits/siginfo.h:217: error: syntax error before '(' token
/usr/include/bits/siginfo.h:226: error: syntax error before '(' token
/usr/include/bits/siginfo.h:243: error: syntax error before '(' token
In file included from jsvc-unix.c:23:
/usr/include/sys/wait.h:151: error: syntax error before "siginfo_t"
In file included from jsvc-unix.c:26:
/usr/include/pwd.h:141: error: syntax error before "size_t"
/usr/include/pwd.h:147: error: syntax error before "size_t"
/usr/include/pwd.h:152: error: syntax error before "size_t"
/usr/include/pwd.h:166: error: syntax error before "size_t"
In file included from jsvc-unix.c:27:
/usr/include/grp.h:143: error: syntax error before "size_t"
/usr/include/grp.h:152: error: syntax error before "size_t"
/usr/include/grp.h:165: error: syntax error before "size_t"
/usr/include/grp.h:178: error: syntax error before "__n"
jsvc-unix.c: In function `set_user_group':
jsvc-unix.c:88: warning: implicit declaration of function `setgid'
jsvc-unix.c:93: warning: implicit declaration of function `getuid'
jsvc-unix.c:99: warning: implicit declaration of function `setuid'
jsvc-unix.c: In function `set_caps':
jsvc-unix.c:129: warning: implicit declaration of function `memset'
jsvc-unix.c:136: warning: implicit declaration of function `syscall'
jsvc-unix.c: In function `checkuser':
jsvc-unix.c:197: warning: implicit declaration of function `fork'
jsvc-unix.c: In function `controller':
jsvc-unix.c:239: warning: implicit declaration of function `kill'
jsvc-unix.c:240: warning: implicit declaration of function `signal'
jsvc-unix.c: In function `signal_set':
jsvc-unix.c:253: warning: assignment makes pointer from integer without a cast
jsvc-unix.c: In function `check_pid':
jsvc-unix.c:271: warning: implicit declaration of function `getpid'
jsvc-unix.c:274: warning: implicit declaration of function `open'
jsvc-unix.c:279: warning: implicit declaration of function `lockf'
jsvc-unix.c:279: error: `F_LOCK' undeclared (first use in this function)
jsvc-unix.c:279: error: (Each undeclared identifier is reported only once
jsvc-unix.c:279: error: for each function it appears in.)
jsvc-unix.c:280: warning: implicit declaration of function `read'
jsvc-unix.c:286: error: `F_ULOCK' undeclared (first use in this function)
jsvc-unix.c:287: warning: implicit declaration of function `close'
jsvc-unix.c:294: warning: implicit declaration of function `lseek'
jsvc-unix.c: In function `get_pidf':
jsvc-unix.c:321: error: `F_LOCK' undeclared (first use in this function)
jsvc-unix.c:323: error: `F_ULOCK' undeclared (first use in this function)
jsvc-unix.c: In function `remove_tmp_file':
jsvc-unix.c:372: warning: implicit declaration of function `unlink'
jsvc-unix.c: In function `wait_child':
jsvc-unix.c:392: warning: implicit declaration of function `sleep'
jsvc-unix.c:405: error: `F_LOCK' undeclared (first use in this function)
jsvc-unix.c:407: error: `F_ULOCK' undeclared (first use in this function)
jsvc-unix.c: In function `child':
jsvc-unix.c:473: warning: implicit declaration of function `setpgrp'
jsvc-unix.c: In function `set_output':
jsvc-unix.c:573: warning: implicit declaration of function `strcmp'
jsvc-unix.c:588: warning: implicit declaration of function `dup'
jsvc-unix.c: In function `main':
jsvc-unix.c:638: warning: implicit declaration of function `strdup'
jsvc-unix.c:638: warning: assignment makes pointer from integer without a cast
jsvc-unix.c:639: warning: implicit declaration of function `strrchr'
jsvc-unix.c:642: warning: assignment makes pointer from integer without a cast
jsvc-unix.c:649: warning: assignment makes pointer from integer without a cast
jsvc-unix.c:655: warning: implicit declaration of function `execve'
jsvc-unix.c:677: warning: implicit declaration of function `setsid'
jsvc-unix.c: At top level:
/usr/include/gconv.h:176: warning: array `__data' assumed to have one element
make[1]: *** [jsvc-unix.o] Error 1
make[1]: Leaving directory `/apps/apache-tomcat-5.5.17/bin/jsvc-src/native'
make: *** [native/all] Error 2

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to