[Bug 228764] devel/godot: fails to build on multiple bundled vs. system library conflicts
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Jun 5 14:22:01 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228764
Bug ID: 228764
Summary: devel/godot: fails to build on multiple bundled vs.
system library conflicts
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs at FreeBSD.org
Reporter: amdmi3 at FreeBSD.org
CC: FreeBSD at ShaneWare.Biz
Flags: maintainer-feedback?(FreeBSD at ShaneWare.Biz)
CC: FreeBSD at ShaneWare.Biz
There are multiple conflicts between bundled dependencies and systemwide
installed libraries which lead to build errors. For now, I've run into:
- enet:
modules/enet/networked_multiplayer_enet.cpp:65:11: error: no member named
'wildcard' in '_ENetAddress'
address.wildcard = 1;
~~~~~~~ ^
modules/enet/networked_multiplayer_enet.cpp:67:3: error: use of undeclared
identifier 'enet_address_set_ip'; did you mean 'enet_address_get_host'?
enet_address_set_ip(&address, bind_ip.get_ipv6(), 16);
^~~~~~~~~~~~~~~~~~~
enet_address_get_host
/usr/local/include/enet/enet.h:536:14: note: 'enet_address_get_host' declared
here
- zstd:
[Initial build] clang -o
thirdparty/zstd/compress/zstd_compress.x11.opt.64.llvm.o -c -O2 -pipe
-march=nocona -fstack-protector -fno-strict-aliasing -g1 -O3 -ffast-math -O2
-march=nocona -fstack-protector -fno-strict-aliasing -DRTAUDIO_ENABLED -pipe
-pthread -Ithirdparty/rtaudio -w -DNDEBUG -DZSTD_STATIC_LINKING_ONLY
-DFREETYPE_ENABLED -DRECAST_ENABLED -DSVG_ENABLED -DTYPED_METHOD_BIND
-DTOUCH_ENABLED -DOSS_ENABLED -DX11_ENABLED -DUNIX_ENABLED -DOPENGL_ENABLED
-DGLES_ENABLED -DGLES_OVER_GL -DPTRCALL_ENABLED -DGDSCRIPT_ENABLED
-DMINIZIP_ENABLED -DXML_ENABLED -DGLAD_ENABLED -DGLES_OVER_GL -D_THREAD_SAFE
-Icore -Icore/math -Ieditor -Idrivers -I. -I/usr/local/include
-I/usr/local/include/freetype2 -I/usr/local/include/libpng16 -Iplatform/x11
-Ithirdparty/zstd -Ithirdparty/zstd/common -Ithirdparty/rtaudio
-Ithirdparty/glad -Ithirdparty/recastnavigation/Recast
-Ithirdparty/recastnavigation/Recast/Include -Ithirdparty/nanosvg
thirdparty/zstd/compress/zstd_compress.c
In file included from thirdparty/zstd/compress/zstd_compress.c:29:
thirdparty/zstd/compress/zstd_compress_internal.h:46:5: error: unknown type
name 'ZSTD_dictMode_e'
ZSTD_dictMode_e dictMode;
^
thirdparty/zstd/compress/zstd_compress_internal.h:449:37: error: unknown type
name 'ZSTD_dictMode_e'
ZSTD_dictMode_e dictMode,
^
thirdparty/zstd/compress/zstd_compress.c:215:8: error: conflicting types for
'ZSTD_initCCtxParams'
size_t ZSTD_initCCtxParams(ZSTD_CCtx_params* cctxParams, int compressionLevel)
{
^
thirdparty/zstd/compress/zstd_compress.c:212:12: note: previous implicit
declaration is here
return ZSTD_initCCtxParams(params, ZSTD_CLEVEL_DEFAULT);
^
thirdparty/zstd/compress/zstd_compress.c:283:10: error: use of undeclared
identifier 'ZSTD_p_nbThreads'; did you mean 'ZSTD_p_nbWorkers'?
case ZSTD_p_nbThreads:
^~~~~~~~~~~~~~~~
ZSTD_p_nbWorkers
/usr/local/include/zstd.h:1031:5: note: 'ZSTD_p_nbWorkers' declared here
ZSTD_p_nbWorkers=400, /* Select how many threads will be spawned to
compress in parallel.
^
These are likely caused by incorrect include path order, e.g. system path
preceeds local one and (some) headers from /usr/local/include are included
instead of local ones.
The solution should be either fixing the include order (or using -isystem
instead of -I for external include paths), or switching to external depends
(which is a good practice in general).
PS. Also I've enabled verbose build as required by PHB.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list