Hi Rémy, Thank you for helping me!
On Tue, Jan 7, 2020 at 5:22 PM Rémy Maucherat <r...@apache.org> wrote: > On Tue, Jan 7, 2020 at 4:11 PM Martin Grigorov <mgrigo...@apache.org> > wrote: > >> Hello, >> >> I have hard time making the APR related tests to pass here. >> >> BuildBot config uses: >> >> command=['bash' , '-c' , 'echo >> test.apr.loc=/home/buildslave/slave/tomcat-trunk/basepath/tomcat-native-1.2.23-bin/lib >> >> build.properties'], >> >> What exactly is expected to find in this lib folder ? >> I've build tomcat-native locally and installed it at output/build/lib/, >> i.e. there are several libtcnative-1*** files in it >> >> ./configure --with-apr=(which apr-1-config) --with-ssl=yes >> --with-java-home=$JAVA_8_HOME >> --prefix=/home/martin/git/apache/tomcat/output/build >> >> Tomcat's build.xml has >> <property name="test.apr.loc" value="${test.basedir}/bin"/> >> which resolves to output/build/bin and there is nothing native there >> >> No matter what I try it still fails with: >> org.apache.catalina.LifecycleException: The configured protocol >> [org.apache.coyote.http11.Http11AprProtocol] requires the APR/native >> library which is not available >> >> It fails the same way even with >> test.apr.loc=/home/martin/git/apache/tomcat/output/build/lib >> in my build.properties >> >> tomcat-native-1.2.23-*bin*/lib suggests that it contains binaries but I >> am unable to find where to download this bundle from. >> https://tomcat.apache.org/download-native.cgi has links to the sources. >> There is a text "You can find binaries release too. You may download them >> from HERE" but it points to >> http://mirrors.netix.net/apache/tomcat/tomcat-connectors/native/1.2.23/binaries/ >> where I see only Windows binaries >> >> Any pointers ? >> > > Well, you can put native in your OS library path. Failing this, this has > been harmonized in Tomcat 9 to also load it from the "bin" folder in all > cases (embedded like the testuite, standalone). > (I use fish shell) $ set -x LD_LIBRARY_PATH /home/martin/git/apache/tomcat/output/build/lib $ echo $LD_LIBRARY_PATH /home/martin/git/apache/tomcat/output/build/lib $ ant test-only-apr still fails with the same error This is with master branch, i.e. Tomcat 9.x. I copied all binaries to ./bin folder too cp output/build/lib/libtcnative-1.* output/build/bin/ but still the tests fail :-/ > Rémy >