[Libwebsockets] Configure error

"Andy Green (林安廸)" andy at warmcat.com
Tue Jan 15 14:57:57 CET 2013


On 15/01/13 21:27, the mail apparently from Jack Mitchell included:
> I am the maintainer of the ArchLinux libwebsockets package and I have an
> error on configure as follows:
>
> ==> Determining latest git revision...
>    -> Version found: 20130115
> ==> Making package: libwebsockets-git 20130115-0 (Tue 15 Jan 13:24:10
> GMT 2013)
> ==> Checking runtime dependencies...
> ==> Checking buildtime dependencies...
> ==> Retrieving Sources...
> ==> Extracting Sources...
> ==> Starting build()...
> ==> Building libwebsockets-git...
>    -> Cloning git://git.warmcat.com/libwebsockets repository...
> Cloning into 'libwebsockets'...
> remote: Counting objects: 2752, done.
> remote: Compressing objects: 100% (2112/2112), done.
> remote: Total 2752 (delta 2086), reused 818 (delta 622)
> Receiving objects: 100% (2752/2752), 1.17 MiB | 1.06 MiB/s, done.
> Resolving deltas: 100% (2086/2086), done.
> Already on 'master'
> Preparing the libwebsockets build system...please wait
>
> Found GNU Autoconf version 2.69
> Found GNU Automake version 1.13.1
> Found GNU Libtool version 2.4.2
>
> Automatically preparing build ... Warning: autoreconf failed
> Attempting to run the preparation steps individually
>
> Preparing build ... ERROR: aclocal failed
> ==> ERROR: A failure occurred in build().
>      Aborting...
>
> I have had a report saying that if the m4 directory is created then the
> build works OK.

I can't reproduce, sorry

[agreen at kaiji libwebsockets]$ mv m4 m4-dead
[agreen at kaiji libwebsockets]$ ./autogen.sh
Preparing the libwebsockets build system...please wait

Found GNU Autoconf version 2.69
Found GNU Automake version 1.12.2
Found GNU Libtool version 2.4.2

Automatically preparing build ... done

The libwebsockets build system is now prepared.  To build here, run:
   ./configure
   make
[agreen at kaiji libwebsockets]$

I guess it's some difference in either autotools or libtool?

I added a small workaround patch that creates ./m4/ in the repo, see if 
that helps

http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/commit/?id=fa17ca722544c9cdb14b87ca8a09fbcdc49d8cb5

-Andy

> Do you hava any idea what the route cause could be? The PKGBUILD file is
> paste below and should be fairly obvious what it is doing.
>
> # Maintainer: Jack Mitchell <jack at embed.me.uk>
>
> pkgname=libwebsockets-git
> pkgver=20130115
> pkgrel=0
>
> pkgdesc="C Websockets Server Library"
> arch=(i686 x86_64)
> url='http://git.warmcat.com/cgi-bin/cgit/libwebsockets'
> license=(LGPL)
>
> depends=()
> makedepends=(git)
> provides=('libwebsockets')
>
> _gitroot="git://git.warmcat.com/libwebsockets"
> _gitbranch="master"
> _gitname="libwebsockets"
>
> source=()
> md5sums=()
>
> build() {
>
>    msg "Building ${pkgname}..."
>
>    if [ -d "$_gitname" ] ; then
>      warning 'Repository directory already exists!'
>      cd "$_gitname"
>      git checkout master
>      msg2 "Pulling..."
>      git pull "$_gitroot" master
>    else
>      msg2 "Cloning $_gitroot repository..."
>      git clone "$_gitroot" "$_gitname"
>      cd "$_gitname"
>      git checkout "$_gitbranch"
>    fi
>
>    ./autogen.sh
>
>    ./configure --prefix=/usr
>
>    make
> }
>
> package(){
>
>    msg "Packaging ${pkgname}..."
>    cd "$_gitname"
>    make DESTDIR="$pkgdir" install
>
> }
>
>




More information about the Libwebsockets mailing list