libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] gnutls install


From: Tim Rühsen
Subject: Re: [libmicrohttpd] gnutls install
Date: Mon, 7 Oct 2019 21:00:43 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

Hi Erik,

On 07.10.19 20:47, Erik Smith wrote:
> More recent versions of MHD are requiring newer versions of gnutls then
> RH can provide, so I'm trying to build gnutls from source with a prefix
> into a third party lib bundle for my project.  I get all the way up to
> the part where gnutls fails on finding the nettle libs even though I'm
> building nettle and I'm setting PKG_CONFIG_PATH as well.   Anyone have
> any experience with this?
> 
> ./configure --prefix=$DIR/nettle/3.5.1 --disable-openssl --enable-shared
> --enable-mini-gmp
> make && make install
> 
> export PKG_CONFIG_PATH=$DIR/nettle/3.5.1/lib64/pkgconfig

Is nettle really being installed in lib64/ ? Here (amd64, Debian) it
goes into lib/.

> ./configure --prefix=$DIR/nettle/3.5.1 --disable-guile
> --with-included-libtasn1 --with-included-unistring --without-p11-kit
> --disable-rpath
> make && make install
> 
> /usr/bin/ld: warning: libnettle.so.7, needed by
> ../lib/.libs/libgnutls.so, not found (try using -rpath or -rpath link)

Since a while I also have issues with just setting PKG_CONFIG_PATH.

So my setup (for mingw, but that should not matter) starts with

unset CC
unset CXX

PREFIX=x86_64-w64-mingw32

export PATH="/usr/$PREFIX/bin:$PATH"
export INSTALLDIR="$PWD/$PREFIX"
export PKG_CONFIG_PATH=$INSTALLDIR/lib/pkgconfig:/usr/$PREFIX/lib/pkgconfig
export PKG_CONFIG_LIBDIR="$INSTALLDIR/lib/pkgconfig"
export PKG_CONFIG="/usr/bin/${PREFIX}-pkg-config"
export CPPFLAGS="-I$INSTALLDIR/include"
export LDFLAGS="-L$INSTALLDIR/lib"
export CFLAGS="-O2 -Wall -Wno-format"

build and install nettle with
  ./configure --build=x86_64-pc-linux-gnu --host=$PREFIX
--enable-mini-gmp --enable-shared --disable-documentation --pref
ix=$INSTALLDIR

build and install gnutls with
  ./configure --build=x86_64-pc-linux-gnu --host=$PREFIX \
    --with-nettle-mini --enable-shared --with-included-libtasn1 \
    --without-p11-kit --disable-doc --disable-tests --disable-tools \
    --disable-cxx \
    --disable-maintainer-mode --disable-libdane
--disable-hardware-acceleration --disable-guile --prefix=$INSTALLDIR

Regards, Tim

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]