Build WSF/C for FreeBSD

ebridger's picture
Was planning (will still proceed on Linux) an EPA Environmental Exchange Network project (SOAP transports) project and downloaded ws02-wsf-c-src-1.3.0 to compile on FreeBSD6.2. ./configure worked fine but make fails trying to build axis2c. Digging around I see this has already been reported (and fixed for WSFPHP). https://wso2.org/jira/browse/WSFPHP-143 but remains an open issue in apache-axis-c https://issues.apache.org/jira/browse/AXIS2C-1239 My build errors are identical. I'm new to WS02 WSF so I'm wondering how it was fixed in PHP (isn't that just a binding to the C library?) Has anyone had success building wsf-c on FreeBSD? Eric
ebridger's picture

WSFPHP Patch almost works

I tried manually doing the PHP patch posted here http://wso2.org/forum/thread/2997#comment-5580, just means adding missing includes to 2 files axis2c/util/include/platforms/unix/axutil_date_time_util_unix.h and axis2c/util/src/platforms/unix/uuid_gen_unix.c and using ./configure LDFLAGS="-L/usr/lib/libcompat.a", libtool complained about -Lcompat. It almost worked .. Making all in test /bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -pthread -g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Wno-implicit-function-declaration -L/usr/lib/libcompat.a -lpthread -o test test.o ../src/libneethi.la ../../axiom/src/om/libaxis2_axiom.la ../../util/src/libaxutil.la ../src/libneethi.la gcc -g -O2 -pthread -g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Wno-implicit-function-declaration -o .libs/test test.o -L/usr/lib/libcompat.a ../../axiom/src/om/.libs/libaxis2_axiom.so ../../util/src/.libs/libaxutil.so ../src/.libs/libneethi.so /home/src/wso2/wso2-wsf-c-src-1.3.0/axis2c/axiom/src/om/.libs/libaxis2_axiom.so /home/src/wso2/wso2-wsf-c-src-1.3.0/axis2c/axiom/src/parser/guththila/.libs/libaxis2_parser.so /home/src/wso2/wso2-wsf-c-src-1.3.0/axis2c/guththila/src/.libs/libguththila.so /home/src/wso2/wso2-wsf-c-src-1.3.0/axis2c/util/src/.libs/libaxutil.so -lpthread -lz -Wl,--rpath -Wl,/opt/wso2/wsf_c/lib ../../util/src/.libs/libaxutil.so: undefined reference to `ftime' *** Error code 1 Stop in /home/src/wso2/wso2-wsf-c-src-1.3.0/axis2c/neethi/test. *** Error code 1 Stop in /home/src/wso2/wso2-wsf-c-src-1.3.0/axis2c/neethi. *** Error code 1 Stop in /home/src/wso2/wso2-wsf-c-src-1.3.0/axis2c/neethi. *** Error code 1 Stop in /home/src/wso2/wso2-wsf-c-src-1.3.0/axis2c. *** Error code 1 Stop in /home/src/wso2/wso2-wsf-c-src-1.3.0/axis2c. *** Error code 1 Stop in /home/src/wso2/wso2-wsf-c-src-1.3.0. *** Error code 1 Stop in /home/src/wso2/wso2-wsf-c-src-1.3.0.
gbohmann's picture

Same Problem

I encountered this same issue with FreeBSD 7.1 and fixed it by executing the following steps: 1) Ran: make clean 2) Set the following variables, which you may need to adjust depending on your settings: export CPATH=/usr/local/include export LD_LIBRARY_PATH=/usr/local/lib As referenced here: http://wso2.org/forum/thread/2997#comment-5580 After doing the above two steps, my build finally worked. I suspect that I had old files/settings left over from trying all kinds of things to get the project to build before hitting the same error that you did.
ian.lincoln.midcoast.com's picture

The fix here...

I work with Eric. I'm not sure that he ever got this working on our FreeBSD box. ( He did get it working on Linux). I'm just revisiting the FreeBSD box and I pretty much followed the advice above and was successful but wanted to spell it out... FreeBSD 6.2-RELEASE-p8 I'm using a bash shell. I added/modified these two lines in my .profile file. CPATH=/usr/local/include; export CPATH LD_LIBRARY_PATH=/usr/opt/opendap:/usr/local/lib; export LD_LIBRARY_PATH Sourced my .profile file to set up my environment. source .profile Switched to Super User preserving my profile ( I couldn't make this as myself. Permissions problem) su -m ran configure again ./configure LDFLAGS="-lcompat" Then make clean make clean make make install It worked! Or at least didn't give me any noticeable errors. Ian
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)