Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 May 2020 17:13:56 +0200
From:      Matthias Andree <matthias.andree@gmx.de>
To:        freebsd-ports@freebsd.org
Cc:        Xavier Humbert <xavier@groumpf.org>, Jakob Breivik Grimstveit <jakob@grimstveit.no>, Kurt Jaeger <pi@freebsd.org>
Subject:   Re: Build error net/librsync (unable to find library -lpopt)
Message-ID:  <36af14f0-de6b-d0a5-cf65-ec153ad8445a@gmx.de>
In-Reply-To: <20200516140559.GX39563@home.opsec.eu>
References:  <CAFVH1KXcyMR7nHC0xeAO=Wkdm%2BCrt=d6p1QyrAaeNfM18K6qrg@mail.gmail.com> <20200516140559.GX39563@home.opsec.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 16.05.20 um 16:05 schrieb Kurt Jaeger:
> Hi!
>
>> Problems building net/librsync, please advice :-)
>>
>> Looking forward to having duplicity installed! :)
> Please try to use poudriere to build it. I tested it, works fine.
>
Kurt,

That's reaching too short. I can see that it build in poudriere, but it
appears to do something differently from a live system:

> =C2=A0=3D=3D=3D>=C2=A0 Performing out-of-source build
> -/bin/mkdir -p /usr/ports.svn/net/librsync/work/.build
> +/bin/mkdir -p /wrkdirs/usr/ports/net/librsync/work/.build
> =C2=A0-- The C compiler identification is Clang 8.0.1
> =C2=A0-- Check for working C compiler: /usr/local/libexec/ccache/cc
> =C2=A0-- Check for working C compiler: /usr/local/libexec/ccache/cc - wo=
rks
> [...]
> --- CMAKE_SYSTEM =3D FreeBSD-12.1-RELEASE-p5
> +-- CMAKE_SYSTEM =3D FreeBSD-12.1-RELEASE-p4
> +-- Found POPT: /usr/local/lib/libpopt.so =C2=A0
> =C2=A0-- Found components for POPT
> =C2=A0-- POPT_ROOT_DIR=C2=A0 =3D /usr/local
> =C2=A0-- POPT_INCLUDE_DIRS=C2=A0 =3D /usr/local/include
> --- POPT_LIBRARIES =3D popt
> +-- POPT_LIBRARIES =3D /usr/local/lib/libpopt.so
> =C2=A0-- Found BZip2: /usr/lib/libbz2.so (found version "1.0.8")
> =C2=A0-- Looking for BZ2_bzCompressInit
> =C2=A0-- Looking for BZ2_bzCompressInit - found
And the POPT_LIBRARIES=3D... difference is breaking the build. Adding
LDFLAGS+=3D-L${LOCALBASE}/lib fixes the ports build for me. Now let's go
for the root cause...




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36af14f0-de6b-d0a5-cf65-ec153ad8445a>