[libmicrohttpd] next release

2018-10-18 Thread Gauthier Haderer
Hi,

The last release was made in February. Do you have any plan to release a
new version of MHD soon?

Cheers,


Gauthier


[libmicrohttpd] [PATCH] Fix build issue when parent dir is an automake project dir

2018-10-18 Thread Tim Rühsen
Building fails if the parent directory is an automake project dir:

$ ./bootstrap
libtoolize: putting auxiliary files in '..'.
libtoolize: copying file '../ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:61: installing '../compile'
configure.ac:67: error: required file '../config.rpath' not found
configure.ac:26: installing '../missing'
doc/examples/Makefile.am: installing '../depcomp'
autoreconf: automake failed with exit status: 1

The fix is to specify AC_CONFIG_AUX_DIR before AM_INIT_AUTOMAKE.

Regards, Tim

From 864cfff6d1284b07820de236dd57295c6460f389 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tim=20R=C3=BChsen?= 
Date: Thu, 18 Oct 2018 16:21:55 +0200
Subject: [PATCH] Fix build issue when parent dir is an automake project dir

Building fails if the parent directory is an automake project dir:

$ ./bootstrap
libtoolize: putting auxiliary files in '..'.
libtoolize: copying file '../ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:61: installing '../compile'
configure.ac:67: error: required file '../config.rpath' not found
configure.ac:26: installing '../missing'
doc/examples/Makefile.am: installing '../depcomp'
autoreconf: automake failed with exit status: 1

The fix is to specify AC_CONFIG_AUX_DIR before AM_INIT_AUTOMAKE.
---
 configure.ac | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index e2f9891d..27e86a57 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,6 +23,7 @@
 AC_PREREQ([2.64])
 LT_PREREQ([2.4.0])
 AC_INIT([GNU Libmicrohttpd],[0.9.59],[libmicrohttpd@gnu.org])
+AC_CONFIG_AUX_DIR([build-aux])
 AM_INIT_AUTOMAKE([silent-rules] [subdir-objects])
 AC_CONFIG_HEADERS([MHD_config.h])
 AC_CONFIG_MACRO_DIR([m4])
-- 
2.19.1



signature.asc
Description: OpenPGP digital signature


[libmicrohttpd] Build issue on MINGW

2018-10-18 Thread Tim Rühsen
Hi,

the build on MinGW fails in lib/src/ due to

@echo Creating $@ and libmicrohttpd2.exp by $(DLLTOOL)... && \
dll_name=`$(EGREP) -o dlname=\'.+\' libmicrohttpd2.la` && \

libmicrohttpd2.la contains
  dlname=''
and thus the egrep (or grep -E) fails.

I am on Debian unstable and use this sequence in a script:

unset CC
PREFIX=x86_64-w64-mingw32
export INSTALLDIR="$PWD/$PREFIX"
export PKG_CONFIG_PATH=$INSTALLDIR/lib/pkgconfig
export CPPFLAGS="-I$INSTALLDIR/include"
export LDFLAGS="-L$INSTALLDIR/lib"
export CFLAGS="-O2 -Wall -Wno-format"

git clone --recursive https://github.com/dlfcn-win32/dlfcn-win32.git
cd dlfcn-win32
./configure --prefix=$PREFIX --cc=$PREFIX-gcc
make
cp -p libdl.a ../$PREFIX/lib/
cp -p dlfcn.h ../$PREFIX/include/
cd ..

git clone --recursive https://gnunet.org/git/libmicrohttpd.git
cd libmicrohttpd
./bootstrap
./configure --build=x86_64-pc-linux-gnu --host=$PREFIX
--prefix=$INSTALLDIR --disable-doc --disable-examples --enable-shared
make clean
make -j$(nproc)
cd ..


Regards, Tim



signature.asc
Description: OpenPGP digital signature


Re: [libmicrohttpd] [PATCH] Fix build issue when parent dir is an automake project dir

2018-10-18 Thread Christian Grothoff
Pushed as suggested in 9199e5aa..41ac9325

On 10/18/2018 04:35 PM, Tim Rühsen wrote:
> Building fails if the parent directory is an automake project dir:
> 
> $ ./bootstrap
> libtoolize: putting auxiliary files in '..'.
> libtoolize: copying file '../ltmain.sh'
> libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
> libtoolize: copying file 'm4/libtool.m4'
> libtoolize: copying file 'm4/ltoptions.m4'
> libtoolize: copying file 'm4/ltsugar.m4'
> libtoolize: copying file 'm4/ltversion.m4'
> libtoolize: copying file 'm4/lt~obsolete.m4'
> configure.ac:61: installing '../compile'
> configure.ac:67: error: required file '../config.rpath' not found
> configure.ac:26: installing '../missing'
> doc/examples/Makefile.am: installing '../depcomp'
> autoreconf: automake failed with exit status: 1
> 
> The fix is to specify AC_CONFIG_AUX_DIR before AM_INIT_AUTOMAKE.
> 
> Regards, Tim
> 


0x939E6BE1E29FC3CC.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: [libmicrohttpd] Build issue on MINGW

2018-10-18 Thread Christian Grothoff
Hi Tim,

The issue is that in line Makefile.am:10, we have "noinst_" instead of
"lib_" because the code is far from complete and it must not yet be
installed. That causes the dlname='' issue you describe.

The best fix I can propose: I'm adding an option (--enable-experimental)
which disables building src/lib/ by default, so that users that don't
care about the experimental code don't get disrupted like this.

Happy hacking!

Christian

On 10/18/2018 04:45 PM, Tim Rühsen wrote:
> Hi,
> 
> the build on MinGW fails in lib/src/ due to
> 
> @echo Creating $@ and libmicrohttpd2.exp by $(DLLTOOL)... && \
> dll_name=`$(EGREP) -o dlname=\'.+\' libmicrohttpd2.la` && \
> 
> libmicrohttpd2.la contains
>   dlname=''
> and thus the egrep (or grep -E) fails.
> 
> I am on Debian unstable and use this sequence in a script:
> 
> unset CC
> PREFIX=x86_64-w64-mingw32
> export INSTALLDIR="$PWD/$PREFIX"
> export PKG_CONFIG_PATH=$INSTALLDIR/lib/pkgconfig
> export CPPFLAGS="-I$INSTALLDIR/include"
> export LDFLAGS="-L$INSTALLDIR/lib"
> export CFLAGS="-O2 -Wall -Wno-format"
> 
> git clone --recursive https://github.com/dlfcn-win32/dlfcn-win32.git
> cd dlfcn-win32
> ./configure --prefix=$PREFIX --cc=$PREFIX-gcc
> make
> cp -p libdl.a ../$PREFIX/lib/
> cp -p dlfcn.h ../$PREFIX/include/
> cd ..
> 
> git clone --recursive https://gnunet.org/git/libmicrohttpd.git
> cd libmicrohttpd
> ./bootstrap
> ./configure --build=x86_64-pc-linux-gnu --host=$PREFIX
> --prefix=$INSTALLDIR --disable-doc --disable-examples --enable-shared
> make clean
> make -j$(nproc)
> cd ..
> 
> 
> Regards, Tim
> 


0x939E6BE1E29FC3CC.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature