Build error net/librsync (unable to find library -lpopt)
Matthias Andree
matthias.andree at gmx.de
Sat May 16 15:14:00 UTC 2020
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:
> ===> 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
> -- The C compiler identification is Clang 8.0.1
> -- Check for working C compiler: /usr/local/libexec/ccache/cc
> -- Check for working C compiler: /usr/local/libexec/ccache/cc - works
> [...]
> --- CMAKE_SYSTEM = FreeBSD-12.1-RELEASE-p5
> +-- CMAKE_SYSTEM = FreeBSD-12.1-RELEASE-p4
> +-- Found POPT: /usr/local/lib/libpopt.so
> -- Found components for POPT
> -- POPT_ROOT_DIR = /usr/local
> -- POPT_INCLUDE_DIRS = /usr/local/include
> --- POPT_LIBRARIES = popt
> +-- POPT_LIBRARIES = /usr/local/lib/libpopt.so
> -- Found BZip2: /usr/lib/libbz2.so (found version "1.0.8")
> -- Looking for BZ2_bzCompressInit
> -- Looking for BZ2_bzCompressInit - found
And the POPT_LIBRARIES=... difference is breaking the build. Adding
LDFLAGS+=-L${LOCALBASE}/lib fixes the ports build for me. Now let's go
for the root cause...
More information about the freebsd-ports
mailing list