Re: [strongSwan] configuration error when trying to use --enable-curl

2012-05-31 Thread Martin Willi
Hi,

 I have libcurl.so in the libexec/ipsec/plugins directory.

Your dynamic linker probably doesn't look for libraries, there. All the
libstrongswan-* plugins are not loaded implicitly by the linker, but by
dlopen().

 Any reason why it is failing to load? I tried to put libcurl.so in
 /usr/lib, /lib but no difference in the error.

Have you upgraded your ld cache using ldconfig? man ldconfig for
details...

Regards
Martin


___
Users mailing list
Users@lists.strongswan.org
https://lists.strongswan.org/mailman/listinfo/users


Re: [strongSwan] configuration error when trying to use --enable-curl

2012-05-31 Thread Yong Choo

Thank You.
Unfortunately, our linux version is for running real-time sw and we do 
not have all kernel modules. Looking at ours now, we do not have 
ldconfig...


The libexec/ipsec/plugins have all strongswan-*.so plugins and they are 
being loaded properly. I'm a bit confused why these strongswan-*.so can 
be loaded but not the libcurl.so?


On 5/31/2012 2:52 AM, Martin Willi wrote:

Hi,


I have libcurl.so in the libexec/ipsec/plugins directory.

Your dynamic linker probably doesn't look for libraries, there. All the
libstrongswan-* plugins are not loaded implicitly by the linker, but by
dlopen().


Any reason why it is failing to load? I tried to put libcurl.so in
/usr/lib, /lib but no difference in the error.

Have you upgraded your ld cache using ldconfig? man ldconfig for
details...

Regards
Martin

___
Users mailing list
Users@lists.strongswan.org
https://lists.strongswan.org/mailman/listinfo/users

Re: [strongSwan] configuration error when trying to use --enable-curl

2012-05-29 Thread Martin Willi
Hi, 

 LDFLAGS=/local/user_data/mkpne_yhc_yhc_ltefdd_la6.0_112784/eccm/build/INSTALL_STAGE/curl-7.25.0/usr/local/li)

LDFLAG takes linker options, not only the directory. Try to prepend -L:

 LDFLAGS=-L/local/...

Regards
Martin


___
Users mailing list
Users@lists.strongswan.org
https://lists.strongswan.org/mailman/listinfo/users


Re: [strongSwan] configuration error when trying to use --enable-curl

2012-05-29 Thread Yong Choo

Thank You.
Looks like that solved one problem but produced the following error:

configure:15460: checking curl/curl.h usability
configure:15460: powerpc-wrs-linux-gnu-ppc_e500v2-glibc_cgl-gcc -c -g -O2 
-fomit-frame-pointer -D__USE_STRING_INLINES -pipe -DDEBUG_LEVEL=3  conftest.c5
conftest.c:80:23: error: curl/curl.h: No such file or directory


The curl/curl.h file is located in

./INSTALL_STAGE/curl-7.25.0/usr/local/include/curl/curl.h


Any config variable that we can use to point to our cross-compilation 
area? Looks like CPPFLAGS?



On 5/29/2012 3:51 AM, Martin Willi wrote:

Hi,


LDFLAGS=/local/user_data/mkpne_yhc_yhc_ltefdd_la6.0_112784/eccm/build/INSTALL_STAGE/curl-7.25.0/usr/local/li)

LDFLAG takes linker options, not only the directory. Try to prepend -L:


LDFLAGS=-L/local/...

Regards
Martin

___
Users mailing list
Users@lists.strongswan.org
https://lists.strongswan.org/mailman/listinfo/users

Re: [strongSwan] configuration error when trying to use --enable-curl

2012-05-25 Thread Martin Willi
Hi,

 How do we specify how to find the library for curl (libcurl.a)? I dont
 think it is --lib

./configure --help says:

 LDFLAGS linker flags, e.g. -Llib dir if you have libraries in a
 nonstandard directory lib dir

Setting LDFLAGS=-L./INSTALL_STAGE/curl-7.25.0/usr/lib during ./configure
should work. But you'll need a dynamic CURL library (libcurl.so), as by
default it is linked dynamically.

Regards
Martin


___
Users mailing list
Users@lists.strongswan.org
https://lists.strongswan.org/mailman/listinfo/users


Re: [strongSwan] configuration error when trying to use --enable-curl

2012-05-25 Thread Yong Choo

Thank You.

When I used LDFLAGS to point the proper directory, now there is the 
following problem seen in the process of configuration:

Perhaps there is a bug? or some other mechanism that I'm not aware of?
(Note that 
LDFLAGS=/local/user_data/mkpne_yhc_yhc_ltefdd_la6.0_112784/eccm/build/INSTALL_STAGE/curl-7.25.0/usr/local/li) 



configure:5989: $? = 1
configure:6009: checking whether the C compiler works
configure:6031: powerpc-wrs-linux-gnu-ppc_e500v2-glibc_cgl-gcc -g -O2 
-fomit-frame-pointer -D__USE_STRING_INLINES -pipe -DDEBUG_LEVEL=3  
/local/user_data/mkpne_yhc_yhc_ltefdd_la6.0_112784/eccm/build/INSTALL_STAGE/curl-7.25.0/usr/local/lib
 conftest.c5
/local/user_data/mkpne_yhc_yhc_ltefdd_la6.0_112784/eccm/build/INSTALL_STAGE/curl-7.25.0/usr/local/lib:
 file not recognized: Is a directory
collect2: ld returned 1 exit status




On 5/25/2012 9:01 AM, Martin Willi wrote:

Do you mean that strongswan needs this libcurl.so when curl plugin
is loaded at runtime?

Yes.


If so, then where should this libcurl.so be located at run time, e.g.
as a part of all other strongswan's .so file location?

Wherever your dynamic linker looks for shared libraries,
usually /usr/lib, maybe /usr/local/lib. man ld.so and ldconfig for
details.

Regards
Martin

___
Users mailing list
Users@lists.strongswan.org
https://lists.strongswan.org/mailman/listinfo/users

[strongSwan] configuration error when trying to use --enable-curl

2012-05-24 Thread Yong Choo

Hi,
We are trying to have --enable-curl plugin be a part of the image using 
_*cross-compilation*_ for power-pc (not the native linux host)
We have downloaded the latest curl version from 
http://curl.haxx.se/download.html

We were able to compile and generate a libcurl.a in
./INSTALL_STAGE/curl-7.25.0/usr/lib/libcurl.a

We tried to compile for strongswan but in the 'configuration' stage, we 
get the following error:


configure:15423: checking for main in -lcurl
configure:15442: powerpc-wrs-linux-gnu-ppc_e500v2-glibc_cgl-gcc -o conftest -g -O2 
-fomit-frame-pointer -D__USE_STRING_INLINES -pipe -DDEBUG_LEVEL=3   conftest.c 
-lcurl5
/vobs/ngp_windriver/windriver_pne2.0/gnu/4.1-wrlinux-2.0/x86-linux2/bin/../lib/gcc/powerpc-wrs-linux-gnu/4.1.2/../../../../powerpc-wrs-linux-gnu/bin/ld:
 cannot find -lcurl

How do we specify how to find the library for curl (libcurl.a)? I dont 
think it is --lib
(I tried to build the strongswan in the native linux host machine and 
everything is fine.)


Thanks in advance,
-Yong Choo


___
Users mailing list
Users@lists.strongswan.org
https://lists.strongswan.org/mailman/listinfo/users