|
From: Peter T. <pet...@ya...> - 2007-03-09 20:25:53
|
Alright so been digging throught the archives and src to get this to compile on OBSD (mainly mod'ing the hell out of the FreeBSD makefile and some other items like s/FREEBSD/OPENBSD). The problem I am hitting now and google isn't helping I think is AMD64 specific .. ideas? (see below): 07-03-09 15:20:23 /usr/local/src/wrapper_3.2.3_src # ./build64.sh Wrapper Build System -------------------- Buildfile: build.xml init:msg: ********************************************************************** About to build a 64-bit version of the Java Service Wrapper 3.2.3. The OS Name is "OpenBSD", resolved from "OpenBSD". The Architecture is "x86", resolved from "amd64". The distribution name will be: wrapper-OpenBSD-x86-64-3.2.3 ********************************************************************** update-info: Copying 1 file to /usr/local/src/wrapper_3.2.3_src/src/java/org/tanukisoftware/wrapper Copying 1 file to /usr/local/src/wrapper_3.2.3_src/src/c compile-java-warn: ********************************************************************** WARNING The jar is being built for Java version 1.4. This will not be compatible with older JVMs. ********************************************************************** compile-java: Compiling 1 source file to /usr/local/src/wrapper_3.2.3_src/build/classes ClassArgument.name=org.tanukisoftware.wrapper.WrapperManager compile-c-unix: if test ! -d .deps; then mkdir .deps; fi gcc -Wall -pedantic -DOPENBSD -DPIC wrapper.c wrapperinfo.c wrappereventloop.c wrapper_unix.c property.c logger.c -lm -lcompat -pthread -o ../../bin/wrapper /tmp//ccF22459.o(.text+0xc54): In function `wrapperProtocolFunction': : warning: strcpy() is almost always misused, please use strlcpy() /tmp//ccF22459.o(.text+0x29): In function `wrapperAddDefaultProperties': : warning: sprintf() is often misused, please use snprintf() gcc -Wall -pedantic -DOPENBSD -DPIC -I/usr/local/jdk-1.5.0/include -I/usr/local/jdk-1.5.0/include/openbsd -c -o wrapperinfo.o wrapperinfo.c gcc -Wall -pedantic -DOPENBSD -DPIC -shared wrapperjni_unix.o wrapperinfo.o wrapperjni.o -o ../../lib/libwrapper.so /usr/bin/ld: wrapperjni_unix.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC wrapperjni_unix.o: could not read symbols: Bad value collect2: ld returned 1 exit status gmake: *** [libwrapper.so] Error 1 BUILD FAILED /usr/local/src/wrapper_3.2.3_src/build.xml:580: exec returned: 2 Total time: 7 seconds |