All of lore.kernel.org
 help / color / mirror / Atom feed
* libnetconf recipe configure error
@ 2016-08-02  7:56 Richard Zhang
  2016-08-02 11:46 ` Burton, Ross
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Zhang @ 2016-08-02  7:56 UTC (permalink / raw)
  To: yocto


[-- Attachment #1.1: Type: text/plain, Size: 2118 bytes --]

Hi all


I write a libnetconf recipe BB file to handle this package.

Like this:

DESCRIPTION = "libnetconf is a NETCONF library."
HOMEPAGE = "https://github.com/CESNET/libnetconf"

SECTION = "devel"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/COPYING;md5=22c218798908f95216326c4df42637b5"

DEPENDS += "libssh libxml2 libxslt openssl "

SRC_URI = "git://github.com/CESNET/libnetconf.git;procotol=https"
SRCREV="d4585969d71b7d7dec181955a6753b171b4a8424"

S = "${WORKDIR}/git"

inherit autotools

####################END##################################

The problem is libxslt. The libnetconf depends on it. Although I have put libxslt into DEPENDS, the 'configure' of libnetconf can't finish.
I find all libxslt content was built, locate at sysroot like '/usr/lib/...'  and '/use/include/libxslt/...'

Is there something wrong of my BB file or libxslt NOT build correctly?

Btw. The libxml2 is very fine.


Tail of the configure log file:


checking whether to build static libraries... no
checking for ELF visibility... yes
checking for xml2-config... yes
ERROR: /usr/bin/xml2-config should not be used, use an alternative such as pkg-config
ERROR: /usr/bin/xml2-config should not be used, use an alternative such as pkg-config
checking for xmlDOMWrapReconcileNamespaces in -lxml2... no
checking for xslt-config... yes
ERROR: /usr/bin/xslt-config should not be used, use an alternative such as pkg-config
ERROR: /usr/bin/xslt-config should not be used, use an alternative such as pkg-config
checking for xsltApplyStylesheet in -lxslt... no
configure: error: Missing libxslt library
NOTE: The following config.log files may provide further information.
WARNING: exit code 1 from a shell command.
NOTE: /mnt/c1/git/poky/build-toaster-5/tmp/work/i586-poky-linux/libnetconf/0.10-r0/build/config.log
ERROR: configure failed
ERROR: Function failed: do_configure (log file is located at /mnt/c1/git/poky/build-toaster-5/tmp/work/i586-poky-linux/libnetconf/0.10-r0/temp/log.do_configure.27216)


Full file is attached.



Thanks.

Richard Zhang



[-- Attachment #1.2: Type: text/html, Size: 11630 bytes --]

[-- Attachment #2: log.do_configure.27216 --]
[-- Type: application/octet-stream, Size: 11079 bytes --]

DEBUG: Executing python function sysroot_cleansstate
DEBUG: Python function sysroot_cleansstate finished
DEBUG: SITE files ['endian-little', 'bit-32', 'ix86-common', 'common-linux', 'common-glibc', 'i586-linux', 'common']
DEBUG: Executing shell function autotools_preconfigure
DEBUG: Shell function autotools_preconfigure finished
DEBUG: Executing python function autotools_copy_aclocals
DEBUG: SITE files ['endian-little', 'bit-32', 'ix86-common', 'common-linux', 'common-glibc', 'i586-linux', 'common']
DEBUG: Python function autotools_copy_aclocals finished
DEBUG: Executing shell function do_configure
automake (GNU automake) 1.15
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Tom Tromey <tromey@redhat.com>
       and Alexandre Duret-Lutz <adl@gnu.org>.
AUTOV is 1
NOTE: Executing ACLOCAL="aclocal --system-acdir=/mnt/c1/git/poky/build-toaster-5/tmp/work/i586-poky-linux/libnetconf/0.10-r0/build/aclocal-copy/" autoreconf --verbose --install --force --exclude=autopoint -I /mnt/c1/git/poky/build-toaster-5/tmp/work/i586-poky-linux/libnetconf/0.10-r0/git/m4/
autoreconf: Entering directory `.'
autoreconf: configure.in: not using Gettext
autoreconf: running: aclocal --system-acdir=/mnt/c1/git/poky/build-toaster-5/tmp/work/i586-poky-linux/libnetconf/0.10-r0/build/aclocal-copy/ -I /mnt/c1/git/poky/build-toaster-5/tmp/work/i586-poky-linux/libnetconf/0.10-r0/git/m4/ -I /mnt/c1/git/poky/build-toaster-5/tmp/work/i586-poky-linux/libnetconf/0.10-r0/git/m4/ --force 
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
autoreconf: configure.in: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.in,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
autoreconf: running: /mnt/c1/git/poky/build-toaster-5/tmp/sysroots/x86_64-linux/usr/bin/autoconf --include=/mnt/c1/git/poky/build-toaster-5/tmp/work/i586-poky-linux/libnetconf/0.10-r0/git/m4/ --force
autoreconf: configure.in: not using Autoheader
autoreconf: configure.in: not using Automake
autoreconf: running: gnu-configize
autoreconf: Leaving directory `.'
NOTE: Running ../git/configure  --build=x86_64-linux 		  --host=i586-poky-linux 		  --target=i586-poky-linux 		  --prefix=/usr 		  --exec_prefix=/usr 		  --bindir=/usr/bin 		  --sbindir=/usr/sbin 		  --libexecdir=/usr/libexec 		  --datadir=/usr/share 		  --sysconfdir=/etc 		  --sharedstatedir=/com 		  --localstatedir=/var 		  --libdir=/usr/lib 		  --includedir=/usr/include 		  --oldincludedir=/usr/include 		  --infodir=/usr/share/info 		  --mandir=/usr/share/man 		  --disable-silent-rules 		  --disable-dependency-tracking 		  --with-libtool-sysroot=/mnt/c1/git/poky/build-toaster-5/tmp/sysroots/qemux86  --disable-static 
configure: WARNING: unrecognized options: --disable-silent-rules, --disable-dependency-tracking
configure: loading site script /mnt/c1/git/poky/_toaster_clones/_git___git.yoctoproject.org_poky.git_krogoth/meta/site/endian-little
configure: loading site script /mnt/c1/git/poky/_toaster_clones/_git___git.yoctoproject.org_poky.git_krogoth/meta/site/ix86-common
configure: loading site script /mnt/c1/git/poky/_toaster_clones/_git___git.yoctoproject.org_poky.git_krogoth/meta/site/common-linux
configure: loading site script /mnt/c1/git/poky/_toaster_clones/_git___git.yoctoproject.org_poky.git_krogoth/meta/site/common-glibc
configure: loading site script /mnt/c1/git/poky/_toaster_clones/_git___git.yoctoproject.org_poky.git_krogoth/meta/site/common
configure: loading site script /mnt/c1/git/poky/_toaster_clones/_git___git.openembedded.org_meta-openembedded_krogoth/meta-oe/site/endian-little
configure: loading site script /mnt/c1/git/poky/build-toaster-5/tmp/work/i586-poky-linux/libnetconf/0.10-r0/build/aclocal-copy/glibc_config
configure: loading site script /mnt/c1/git/poky/build-toaster-5/tmp/work/i586-poky-linux/libnetconf/0.10-r0/build/aclocal-copy/ncurses_config
checking build system type... x86_64-pc-linux-gnu
checking host system type... i586-poky-linux-gnu
cut: ./VERSION: No such file or directory
sed: -e expression #1, char 0: no previous regular expression
checking for pkg-config... /mnt/c1/git/poky/build-toaster-5/tmp/sysroots/x86_64-linux/usr/bin/pkg-config
checking for pyang... no
checking for xsltproc... yes
checking for host architecture... i586 is supported
checking for doxygen... no
checking for rpmbuild... rpmbuild
checking for greadlink... readlink
configure: WARNING: Try installing greadlink.
checking for libtool... yes
checking for i586-poky-linux-clang... i586-poky-linux-gcc  -m32 -march=i586 --sysroot=/mnt/c1/git/poky/build-toaster-5/tmp/sysroots/qemux86
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i586-poky-linux-gcc  -m32 -march=i586 --sysroot=/mnt/c1/git/poky/build-toaster-5/tmp/sysroots/qemux86 accepts -g... yes
checking for i586-poky-linux-gcc  -m32 -march=i586 --sysroot=/mnt/c1/git/poky/build-toaster-5/tmp/sysroots/qemux86 option to accept ISO C89... none needed
checking how to run the C preprocessor... i586-poky-linux-gcc -E --sysroot=/mnt/c1/git/poky/build-toaster-5/tmp/sysroots/qemux86  -m32 -march=i586
checking whether ln -s works... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by i586-poky-linux-gcc  -m32 -march=i586 --sysroot=/mnt/c1/git/poky/build-toaster-5/tmp/sysroots/qemux86... i586-poky-linux-ld --sysroot=/mnt/c1/git/poky/build-toaster-5/tmp/sysroots/qemux86  
checking if the linker (i586-poky-linux-ld --sysroot=/mnt/c1/git/poky/build-toaster-5/tmp/sysroots/qemux86  ) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... i586-poky-linux-nm
checking the name lister (i586-poky-linux-nm) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to i586-poky-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for i586-poky-linux-ld --sysroot=/mnt/c1/git/poky/build-toaster-5/tmp/sysroots/qemux86   option to reload object files... -r
checking for i586-poky-linux-objdump... i586-poky-linux-objdump
checking how to recognize dependent libraries... pass_all
checking for i586-poky-linux-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for i586-poky-linux-ar... i586-poky-linux-ar
checking for archiver @FILE support... @
checking for i586-poky-linux-strip... i586-poky-linux-strip
checking for i586-poky-linux-ranlib... i586-poky-linux-ranlib
checking for gawk... gawk
checking command to parse i586-poky-linux-nm output from i586-poky-linux-gcc  -m32 -march=i586 --sysroot=/mnt/c1/git/poky/build-toaster-5/tmp/sysroots/qemux86 object... ok
checking for sysroot... /mnt/c1/git/poky/build-toaster-5/tmp/sysroots/qemux86
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for i586-poky-linux-mt... no
checking for mt... mt
configure: WARNING: using cross tools not prefixed with host triplet
checking if mt is a manifest tool... no
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for dlfcn.h... (cached) yes
checking for objdir... .libs
checking if i586-poky-linux-gcc  -m32 -march=i586 --sysroot=/mnt/c1/git/poky/build-toaster-5/tmp/sysroots/qemux86 supports -fno-rtti -fno-exceptions... no
checking for i586-poky-linux-gcc  -m32 -march=i586 --sysroot=/mnt/c1/git/poky/build-toaster-5/tmp/sysroots/qemux86 option to produce PIC... -fPIC -DPIC
checking if i586-poky-linux-gcc  -m32 -march=i586 --sysroot=/mnt/c1/git/poky/build-toaster-5/tmp/sysroots/qemux86 PIC flag -fPIC -DPIC works... yes
checking if i586-poky-linux-gcc  -m32 -march=i586 --sysroot=/mnt/c1/git/poky/build-toaster-5/tmp/sysroots/qemux86 static flag -static works... yes
checking if i586-poky-linux-gcc  -m32 -march=i586 --sysroot=/mnt/c1/git/poky/build-toaster-5/tmp/sysroots/qemux86 supports -c -o file.o... yes
checking if i586-poky-linux-gcc  -m32 -march=i586 --sysroot=/mnt/c1/git/poky/build-toaster-5/tmp/sysroots/qemux86 supports -c -o file.o... (cached) yes
checking whether the i586-poky-linux-gcc  -m32 -march=i586 --sysroot=/mnt/c1/git/poky/build-toaster-5/tmp/sysroots/qemux86 linker (i586-poky-linux-ld --sysroot=/mnt/c1/git/poky/build-toaster-5/tmp/sysroots/qemux86  ) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ELF visibility... yes
checking for xml2-config... yes
ERROR: /usr/bin/xml2-config should not be used, use an alternative such as pkg-config
ERROR: /usr/bin/xml2-config should not be used, use an alternative such as pkg-config
checking for xmlDOMWrapReconcileNamespaces in -lxml2... no
checking for xslt-config... yes
ERROR: /usr/bin/xslt-config should not be used, use an alternative such as pkg-config
ERROR: /usr/bin/xslt-config should not be used, use an alternative such as pkg-config
checking for xsltApplyStylesheet in -lxslt... no
configure: error: Missing libxslt library
NOTE: The following config.log files may provide further information.
WARNING: exit code 1 from a shell command.
NOTE: /mnt/c1/git/poky/build-toaster-5/tmp/work/i586-poky-linux/libnetconf/0.10-r0/build/config.log
ERROR: configure failed
ERROR: Function failed: do_configure (log file is located at /mnt/c1/git/poky/build-toaster-5/tmp/work/i586-poky-linux/libnetconf/0.10-r0/temp/log.do_configure.27216)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: libnetconf recipe configure error
  2016-08-02  7:56 libnetconf recipe configure error Richard Zhang
@ 2016-08-02 11:46 ` Burton, Ross
  2016-08-03  0:10   ` 答复: " Richard Zhang
  0 siblings, 1 reply; 3+ messages in thread
From: Burton, Ross @ 2016-08-02 11:46 UTC (permalink / raw)
  To: Richard Zhang; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 792 bytes --]

On 2 August 2016 at 08:56, Richard Zhang <richard.zhang@pica8.com> wrote:

> checking for xml2-config... yes
>
> ERROR: /usr/bin/xml2-config should not be used, use an alternative such as
> pkg-config
>
> ERROR: /usr/bin/xml2-config should not be used, use an alternative such as
> pkg-config
>
> checking for xmlDOMWrapReconcileNamespaces in -lxml2... no
>
> checking for xslt-config... yes
>
> ERROR: /usr/bin/xslt-config should not be used, use an alternative such as
> pkg-config
>
> ERROR: /usr/bin/xslt-config should not be used, use an alternative such as
> pkg-config
>
>
This is the problem.  xml2-config and xslt-config are broken in
cross-compile situations, so you need to patch libnetconf's configure.ac to
use pkgconfig instead of those scripts.

Ross

[-- Attachment #2: Type: text/html, Size: 2381 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* 答复: libnetconf recipe configure error
  2016-08-02 11:46 ` Burton, Ross
@ 2016-08-03  0:10   ` Richard Zhang
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Zhang @ 2016-08-03  0:10 UTC (permalink / raw)
  To: Burton, Ross; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 824 bytes --]


On 2 August 2016 at 08:56, Richard Zhang <richard.zhang@pica8.com<mailto:richard.zhang@pica8.com>> wrote:
checking for xml2-config... yes
ERROR: /usr/bin/xml2-config should not be used, use an alternative such as pkg-config
ERROR: /usr/bin/xml2-config should not be used, use an alternative such as pkg-config
checking for xmlDOMWrapReconcileNamespaces in -lxml2... no
checking for xslt-config... yes
ERROR: /usr/bin/xslt-config should not be used, use an alternative such as pkg-config
ERROR: /usr/bin/xslt-config should not be used, use an alternative such as pkg-config

This is the problem.  xml2-config and xslt-config are broken in cross-compile situations, so you need to patch libnetconf's configure.ac<http://configure.ac> to use pkgconfig instead of those scripts.

Ross


Thanks.
Best Regard.


[-- Attachment #2: Type: text/html, Size: 5284 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-03  0:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-02  7:56 libnetconf recipe configure error Richard Zhang
2016-08-02 11:46 ` Burton, Ross
2016-08-03  0:10   ` 答复: " Richard Zhang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.