Good afternoon folks,

I tried compiling the lowpan-tools on Fedora 15 and CentOS 6.2 systems
but I
could not pass the "./configure" step (called by autogen.sh) and I
would be
grateful if anyone could help me figure out why. I cloned the git repo
and am
using the latest version available at the time I write these lines
(revision
6d4636d57f87a14).

Here is the last lines of the output of the ./configure:
checking for python script directory...
${prefix}/lib/python2.7/site-packages
checking for python extension module directory...
${exec_prefix}/lib64/python2.7/site-packages
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for NL... yes
checking whether libnl requires additional libraries... failure
configure: error: in `/users/tcheneau/sources/linux-zigbee':
configure: error: failed to link program with libnl
See `config.log' for more details

I attached the corresponding (gzip'd) config.log to this mail if it can help.

The libnl3, as well as the corresponding development files, are
installed on my system as shown below (output of the Fedora 15):
$ rpm -qa "libnl*"
libnl3-cli-3.2.7-1.fc15.x86_64
libnl3-3.2.7-1.fc15.x86_64
libnl3-devel-3.2.7-1.fc15.x86_64
libnl-1.1-14.fc15.x86_64

Note that I cannot remove libnl (version 1) because it is a dependency
for a lot of packages, but I do not believe it should cause any trouble
(as I do not have the *-devel).

I tried to modify the configure.ac file in order to remove this test. I
believe this test has very small influence on the build (presence of
the
"-lm" flag), but I'm far from being an autotool guru, so I'm not
certain. Basically, I commented out the following lines that made the
"./configure" fail previously:
    AC_MSG_CHECKING([whether libnl requires additional libraries])
    _libnl_save_libs="$LIBS"
    LIBS="$NL_LIBS $LIBS"
    AC_LINK_IFELSE([AC_LANG_CALL([], [genl_connect])], libnl_add="none"
,
libnl_add="fail")
    if test "$libnl_add" = fail
    then
    LIBS="$NL_LIBS -lm $_libnl_save_libs"
AC_LINK_IFELSE([AC_LANG_CALL([], [genl_connect])], libnl_add="-lm" ,
libnl_add="fail")
    fi
    LIBS="$_libnl_save_libs"
    if test "$libnl_add" = fail
    then
        AC_MSG_RESULT(failure)
    dnl AC_MSG_RESULT([failed])
        AC_MSG_FAILURE([failed to link program with libnl])
    else if test "$libnl_add" = none
    then
        AC_MSG_RESULT([none required])
    else
        AC_MSG_RESULT([$libnl_add])
        NL_LIBS="$NL_LIBS $libnl_add"
    fi
    fi

The configure succeed, but the make fails with the following error:
[...]
Making all in src
make[2]: Entering directory
`/users/tcheneau/sources/linux-zigbee/src'
  CC     izchat.o
  CCLD   izchat
  CC     serial.o
  CCLD   izattach
  CC     izcoordinator-coordinator.o
  CCLD   izcoordinator
izcoordinator-coordinator.o: In function `parse_cb':
/users/tcheneau/sources/linux-zigbee/src/coordinator.c:185: undefined
reference to `genlmsg_parse'
izcoordinator-coordinator.o: In function `coordinator_associate':
/users/tcheneau/sources/linux-zigbee/src/coordinator.c:116: undefined
reference to `genlmsg_put'
izcoordinator-coordinator.o: In function `main':
/users/tcheneau/sources/linux-zigbee/src/coordinator.c:407: undefined
reference to `genl_connect'
/users/tcheneau/sources/linux-zigbee/src/coordinator.c:410: undefined
reference to `genl_ctrl_resolve'
izcoordinator-coordinator.o: In function `mlme_start':
/users/tcheneau/sources/linux-zigbee/src/coordinator.c:79: undefined
reference to `genlmsg_put'
../lib/.libs/libcommon.a(libcommon_la-genl.o): In function
`family_handler':
/users/tcheneau/sources/linux-zigbee/lib/genl.c:67: undefined
reference to `genlmsg_attrlen'
/users/tcheneau/sources/linux-zigbee/lib/genl.c:67: undefined
reference to `genlmsg_attrdata'
../lib/.libs/libcommon.a(libcommon_la-genl.o): In function
`nl_get_multicast_id':
/users/tcheneau/sources/linux-zigbee/lib/genl.c:112: undefined
reference to `genl_ctrl_resolve'
/users/tcheneau/sources/linux-zigbee/lib/genl.c:114: undefined
reference to `genlmsg_put'
collect2: ld returned 1 exit status
make[2]: *** [izcoordinator] Error 1
make[2]: Leaving directory `/users/tcheneau/sources/linux-zigbee/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/users/tcheneau/sources/linux-zigbee'
make: *** [all] Error 2

I do not know where the linking errors come from (and I do not know how
to obtain the full compilation command that cause the error either).

Should I use a more recent version of libnl3 (git version?) or was I
wrong to believe that the git tree of lowpan-tools can be compiled? I
must admit that I'm a bit lost here.

Thank you in advance for all your advice and suggestions, any help will
be appreciated.

Regards,
      Tony Cheneau

Attachment: config.log.gz
Description: GNU Zip compressed data

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel

Reply via email to