|
From: Leif M. <le...@ta...> - 2007-03-14 05:56:11
|
Peter,
I am not currently able to try this out myself. I can try to get an
OpenBSD system set
up under VMware. But 'll be honest about my current todo list...It is
going to take me a
little while.
Looking out your output, in addition to the warnings, the thing that
as actually causing
the build to fail is the following:
/usr/bin/ld: wrapperjni_unix.o: relocation R_X86_64_32 can not be used
when making a shared object; recompile with -fPIC
It looks like your "wrapper" process is being built correctly. It
is the "libwrapper.so"
file that is failing.
What does your Makefile look like? Are you sure that the -fPIC
option was
added at a point that it will be used by both builds?
Cheers,
Leif
Peter Thoenen wrote:
> 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
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
>
|