Unfortunately building graphics/netpbm as part of the dependency chain for misc/freebsd-doc-en 11/14 >> textproc/docproj >> graphics/netpbm (6/100) on FreeBSD 11.0S results in pamthreshold.o: In function `computeGlobalThreshold.isra.1': pamthreshold.c:(.text+0x190): undefined reference to `betweenZeroAndOne' pamthreshold.c:(.text+0x1ac): undefined reference to `betweenZeroAndOne' pamthreshold.c:(.text+0x30c): undefined reference to `betweenZeroAndOne' pamthreshold.c:(.text+0x328): undefined reference to `betweenZeroAndOne' pamthreshold.c:(.text+0x47c): undefined reference to `betweenZeroAndOne' collect2: error: ld returned 1 exit status so lets go hunting... find /usr/include/ | xargs grep betweenZero find /usr/src/ -type f | xargs grep betweenZero results in nothing useful, and find /var/ports/usr/ports/graphics/netpbm/work/netpbm-10.35.98/ | xargs grep betweenZeroAndOne only results in function calls like assert(betweenZeroAndOne(globalRange.min)); again nothing useful. I suspect something has been removed; somewhere??? Platform: FreeBSD b2.hs 11.0-STABLE FreeBSD 11.0-STABLE #0 r311660M: Sun Jan 8 21:30:51 AEDT 2017 root@hathor:/110002/D/K8/hqdev-amd64-smp-vga amd64 1100509 1100509
The code is compiled with NDEBUG, so all the code inside assert istn't even used. Did you change the DEBUG settings? Did you try installing package?
(In reply to Tilman Keskinoz from comment #1) Apologies for the delay, I receive a lot of email. These are the flags that are passed to the compiler. # make -C /usr/ports/graphics/netpbm -VCFLAGS -O2 -pipe -DOPENSSL_NO_SSL2 -DOPENSSL_NO_SSL3 -g0 -ggdb0 -DSTRIP_FBSDID -UNDEBUG -UDEBUGGING -UEBUGGING -UDEBUG -Wno-error -fstack-protector-strong -fstack-protector-strong -march=core2 -mtune=core2 -DPNG_DEPSTRUCT= -Iutil -fno-strict-aliasing The various options that are used around DEBUG is to turn off debugging from various ports that use it. Yes there is/was a port that mis-spelt DEBUGGING. :? Due to there being an "Error 1", the package isn't assembled; hence not able to install.
Custom CFLAGS are unsupported.
(In reply to dewayne from comment #2) The answer to this PR was self-induced in that NDEBUG was *undef*ined as part of the CFLAGS variable. The purpose of this variable is "tell the C library to make assert() a noop as opposed to generating code to check the assertion and crash the program" (from one of the Makefiles that does use NDEBUG). Our development machine undefined this variable for all 1047-1 ports.