edward6018 / libnetconf

Automatically exported from code.google.com/p/libnetconf
Other
0 stars 0 forks source link

Trouble configuring libnetconf on linux #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Download and extract libnetconf contents to a folder
2. cd libnetconf; ./configure

What is the expected output? What do you see instead?
Expected: 
Configured successfully.

What i see:
checking for xslt-config... yes
checking for libssh2_version in -lssh2... no
configure: error: Missing libssh2.

Contents of config.log:
configure:11635: checking for libssh2_version in -lssh2
359 configure:11660: gcc -o conftest 
-I/usr/cisco/packages/libxslt/libxslt-1.1.6/include 
-I/usr/cisco/packages/libxml2/current/include/libxml2 -I/usr/cisco/packag    
es/libxml2/current/include/libxml2  -O3  -DRCSID=\"$(IDGIT)\" 
-L/usr/cisco/packages/libxslt/libxslt-1.1.6/lib 
-L/usr/cisco/packages/libxml2/libxml2-2.6.9/lib     -lxslt -lxml2 -lz -lpthread 
-lm -L/usr/cisco/packages/libxml2/current/lib -lxml2 -lz -lpthread -lm  
conftest.c -lssh2   >&5
360 /usr/bin/ld: skipping incompatible 
/usr/cisco/packages/libxslt/libxslt-1.1.6/lib/libxslt.a when searching for 
-lxslt
361 /usr/bin/ld: cannot find -lxslt

I tried with --disable-libssh2 option and i see : 
checking for libssh2_version in -lssh2... no
configure: error: Missing libssh2.

Contents of config.log : 
configure:12169: gcc -o conftest 
-I/usr/cisco/packages/libxslt/libxslt-1.1.6/include 
-I/usr/cisco/packages/libxml2/current/include/libxml2 -I/usr/cisco/packa     
ges/libxml2/current/include/libxml2  -O3   -DRCSID=\"$(IDGIT)\" 
-DDISABLE_LIBSSH -L/usr/cisco/packages/libxslt/libxslt-1.1.6/lib 
-L/usr/cisco/packages/libxml     2/libxml2-2.6.9/lib -lxslt -lxml2 -lz 
-lpthread -lm -L/usr/cisco/packages/libxml2/current/lib -lxml2 -lz -lpthread 
-lm  conftest.c -lpthreads  -lutil >&5
 363 /usr/bin/ld: skipping incompatible /usr/cisco/packages/libxslt/libxslt-1.1.6/lib/libxslt.a when searching for -lxslt
 364 /usr/bin/ld: cannot find -lxslt
 365 collect2: ld returned 1 exit status
 366 configure:12169: $? = 1
 367 configure: failed program was:

On my system i see that there is path to libxslt

 ll /usr/lib/libxslt.so.1*
lrwxrwxrwx  1 root root     17 Oct 18  2011 /usr/lib/libxslt.so.1 -> 
libxslt.so.1.1.11
-rwxr-xr-x  1 root root 192608 Jul 23  2008 /usr/lib/libxslt.so.1.1.11

What version of the product are you using? On what operating system?
 0.6.0 on LINUX

Please provide any additional information below.

Original issue reported on code.google.com by shruthih...@gmail.com on 3 Feb 2014 at 5:44

GoogleCodeExporter commented 9 years ago
I'm not able to reproduce this problem. According to config.log, it seems that 
you have another libxslt version installed in /usr/ciscos/packages/libxslt/ and 
your linker know about (and use) this path. Please, try to check configuration 
in your /etc/ld.so.conf (or ld.so.conf.d/) and then run
# ldconfig

I'm also unable to reproduce described behaviour with --disable-libssh2. When I 
use it, libssh2 checks are skipped.

Please, let me know if the ldconfig helped. If not, can you provide the 
complete config.log file as attachment?

Original comment by rkre...@cesnet.cz on 3 Feb 2014 at 8:58

GoogleCodeExporter commented 9 years ago
Hello,

I figured out the problem. All I had to do was, install libxml2, libxslt
and libssh2 packages on my machine. After that i was able configure
successfully.

But I am running into another issue while executing 'make'

I get this error:
make
./libtool --tag=CC --quiet --mode=compile gcc -Wall
-I/ws/shhv-bgl/libssh2//include -I/ws/shhv-bgl/libxslt/include
-I/ws/shhv-bgl/libxml2//include/libxml2
-I/ws/shhv-bgl/libxml2//include/libxml2  -O3
 -DNC_WORKINGDIR_PATH=\"//var/lib/libnetconf/\" -DSETBIT=0
 -DRCSID=\""built from git 13013a72a3e64b0c82b8"\"
-I/ws/shhv-bgl/HNR/python/libnetconf/src  -fPIC -c src/error.c -o
.obj/src/error.lo
In file included from src/error.c:50:
src/netconf_internal.h:303: error: syntax error before "pthread_rwlock_t"
src/netconf_internal.h:303: warning: no semicolon at end of struct or union
src/netconf_internal.h:306: error: syntax error before '}' token
make: *** [.obj/src/error.lo] Error 1

Is there a work around for this? how do i compile successfully?

Original comment by shruthih...@gmail.com on 3 Feb 2014 at 9:23