tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Huxing Zhang" <huxing....@alibaba-inc.com>
Subject Re: Tomcat Native 1.2.2
Date Wed, 04 Nov 2015 09:37:51 GMT
Hi All,

I have trouble running tcnative test under Mac OSX(EI Capitan).

I used the jdk8,  apr 1.5.2, openssl 1.0.2d(OpenSSL 1.0.2d 9 Jul 2015) to build the tcnative
code in trunk.

I followed the instructions described in native/BUILDING:

Step by step build output is:
1) sh buildconf --with-apr=/Users/wangtao/work/apache-tomcat/apr/apr-1.5.2

Looking for apr source in /Users/wangtao/work/apache-tomcat/apr/apr-1.5.2
Creating configure ...
Generating 'make' outputs ...
rebuilding rpm spec file
Using version '1.2.2' and release '1' in RPM spec file

2) ./configure --with-apr=/usr/local/apr --with-ssl=/usr/local/openssl
checking build system type... x86_64-apple-darwin15.0.0
checking host system type... x86_64-apple-darwin15.0.0
checking target system type... x86_64-apple-darwin15.0.0
checking for a BSD-compatible install... /usr/bin/install -c
checking for working mkdir -p... yes
Tomcat Native Version: 1.2.2
checking for chosen layout... tcnative
checking for APR... yes
configure: APR 1.5.2 detected.
  setting CC to "gcc"
  setting CPP to "gcc -E"
  adding "-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include" to TCNATIVE_PRIV_INCLUDES
checking for JDK os include directory...  darwin
  adding "-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin" to TCNATIVE_PRIV_INCLUDES
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ISO C89... none needed
checking for OpenSSL library... using openssl from /usr/local/openssl/lib and /usr/local/openssl/include
checking OpenSSL library version >= 1.0.2... ok
checking for OpenSSL DSA support... yes
  adding "-I/usr/local/openssl/include" to TCNATIVE_PRIV_INCLUDES
  setting TCNATIVE_LDFLAGS to "-L/usr/local/openssl/lib -lssl -lcrypto"
  adding "-DHAVE_OPENSSL" to CFLAGS
  setting TCNATIVE_LIBS to ""
  setting TCNATIVE_LIBS to " /usr/local/apr/lib/libapr-1.la -lpthread"
checking for apr_pollset_wakeup in -lapr-1... yes
  adding "-DHAVE_POLLSET_WAKEUP" to CFLAGS
configure: creating ./config.status
config.status: creating tcnative.pc
config.status: creating Makefile
config.status: executing default commands

3) make
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/address.lo -c src/address.c && touch src/address.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/bb.lo -c src/bb.c && touch src/bb.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/dir.lo -c src/dir.c && touch src/dir.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/error.lo -c src/error.c && touch src/error.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/file.lo -c src/file.c && touch src/file.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/info.lo -c src/info.c && touch src/info.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/jnilib.lo -c src/jnilib.c && touch src/jnilib.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/lock.lo -c src/lock.c && touch src/lock.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/misc.lo -c src/misc.c && touch src/misc.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/mmap.lo -c src/mmap.c && touch src/mmap.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/multicast.lo -c src/multicast.c && touch
src/multicast.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/network.lo -c src/network.c && touch src/network.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/os.lo -c src/os.c && touch src/os.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/poll.lo -c src/poll.c && touch src/poll.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/pool.lo -c src/pool.c && touch src/pool.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/proc.lo -c src/proc.c && touch src/proc.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/shm.lo -c src/shm.c && touch src/shm.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/ssl.lo -c src/ssl.c && touch src/ssl.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/sslcontext.lo -c src/sslcontext.c && touch
src/sslcontext.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/sslinfo.lo -c src/sslinfo.c && touch src/sslinfo.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/sslnetwork.lo -c src/sslnetwork.c && touch
src/sslnetwork.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/sslutils.lo -c src/sslutils.c && touch src/sslutils.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/stdlib.lo -c src/stdlib.c && touch src/stdlib.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/thread.lo -c src/thread.c && touch src/thread.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o src/user.lo -c src/user.c && touch src/user.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o os/unix/system.lo -c os/unix/system.c && touch
os/unix/system.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -o os/unix/uxpipe.lo -c os/unix/uxpipe.c && touch
os/unix/uxpipe.lo
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=link  gcc -g -O2   -DHAVE_CONFIG_H
 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -g -O2 -DHAVE_OPENSSL -DHAVE_POLLSET_WAKEUP
  -I/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/include -I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include
-I/Users/wangtao/.jenv/candidates/java/1.8.0_51/include/darwin -I/usr/local/openssl/include
 -I/usr/local/apr/include/apr-1   -version-info 2:2:2    -o libtcnative-1.la -rpath /usr/local/apr/lib
src/address.lo src/bb.lo src/dir.lo src/error.lo src/file.lo src/info.lo src/jnilib.lo src/lock.lo
src/misc.lo src/mmap.lo src/multicast.lo src/network.lo src/os.lo src/poll.lo src/pool.lo
src/proc.lo src/shm.lo src/ssl.lo src/sslcontext.lo src/sslinfo.lo src/sslnetwork.lo src/sslutils.lo
src/stdlib.lo src/thread.lo src/user.lo os/unix/system.lo os/unix/uxpipe.lo -L/usr/local/openssl/lib
-lssl -lcrypto  /usr/local/apr/lib/libapr-1.la -lpthread
ld: warning: ld: warning: ignoring file /usr/local/openssl/lib/libcrypto.a, file was built
for archive which is not the architecture being linked (x86_64): /usr/local/openssl/lib/libcrypto.aignoring
file /usr/local/openssl/lib/libssl.a, file was built for archive which is not the architecture
being linked (x86_64): /usr/local/openssl/lib/libssl.a

Everything looks fine, and I get libtcnative-1.0.dylib produced in .libs/, the dir looks like
as follows:
.libs  ll
total 2840
-rwxr-xr-x  1 wangtao  staff   200K Nov  4 17:28 libtcnative-1.0.dylib
-rw-r--r--  1 wangtao  staff   1.2M Nov  4 17:28 libtcnative-1.a
lrwxr-xr-x  1 wangtao  staff    21B Nov  4 17:28 libtcnative-1.dylib -> libtcnative-1.0.dylib
lrwxr-xr-x  1 wangtao  staff    19B Nov  4 17:28 libtcnative-1.la -> ../libtcnative-1.la
-rw-r--r--  1 wangtao  staff   1.0K Nov  4 17:28 libtcnative-1.lai

And then after I ant jar and ant run-echo, I got the following errors:

Buildfile: /Users/wangtao/work/apache-tomcat/tcnative/trunk/build.xml

env:
     [echo] java.home = /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/jre
     [echo] user.home = /Users/wangtao
     [echo] tc.library.path = /Users/wangtao/work/apache-tomcat/tcnative/trunk/native/.libs
     [echo]

prepare:

compile:
    [javac] /Users/wangtao/work/apache-tomcat/tcnative/trunk/build.xml:220: warning: 'includeantruntime'
was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

compile-examples:
    [javac] /Users/wangtao/work/apache-tomcat/tcnative/trunk/build.xml:346: warning: 'includeantruntime'
was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

run-echo:
     [echo] Running Tomcat Native Echo example ...
     [java] Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/wangtao/work/apache-tomcat/tcnative/trunk/native/.libs/libtcnative-1.0.dylib:
dlopen(/Users/wangtao/work/apache-tomcat/tcnative/trunk/native/.libs/libtcnative-1.0.dylib,
1): Symbol not found: _OCSP_RESPONSE_new
     [java]   Referenced from: /Users/wangtao/work/apache-tomcat/tcnative/trunk/native/.libs/libtcnative-1.0.dylib
     [java]   Expected in: flat namespace
     [java]  in /Users/wangtao/work/apache-tomcat/tcnative/trunk/native/.libs/libtcnative-1.0.dylib
     [java] 	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
     [java] 	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1937)
     [java] 	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1855)
     [java] 	at java.lang.Runtime.loadLibrary0(Runtime.java:870)
     [java] 	at java.lang.System.loadLibrary(System.java:1122)
     [java] 	at org.apache.tomcat.jni.Library.<init>(Unknown Source)
     [java] 	at org.apache.tomcat.jni.Library.initialize(Unknown Source)
     [java] 	at org.apache.tomcat.jni.Echo.main(Unknown Source)
     [java] Java Result: 1

Any ideas about what is going wrong here?

------------------------------------------------------------------
From:Mark Thomas <markt@apache.org>
Send Time:2015年11月4日(星期三) 09:00
To:Tomcat Developers List <dev@tomcat.apache.org>
Subject:Tomcat Native 1.2.2


I've just finished running the unit tests for APR on OSX with the
current 1.2.x trunk and 9.0.x, 8.0.x and 7.0.x and all pass.

I plan to tag 1.2.2 tomorrow morning and will hopefully be able to start
a new vote later in the day.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message