netpbm at 10.81.01+universal+x11 build failed on Snow Leopard

Marius Schamschula lists at schamschula.com
Thu Jan 18 15:37:17 UTC 2018


Looks like the snowleopard_fixes-1.0 PortGroup is needed here!

> On Jan 18, 2018, at 9:29 AM, Richard L. Hamilton <rlhamil at smart.net> wrote:
> 
> Looks like at least the immediate problem (not to say there might not be others) is that strnlen() is missing on Snow Leopard.
> 
> When this came up for something else before, some magic known as snowleopard_fixes took care of it, according to old email.  I gather that supplies the functions missing on Snow Leopard that are relatively straightforward to re-create and have been helpful getting ports to build there.
> 
> How might that magic be added to the Portfile for netpbm?  Ticket #55716 filed.
> 
> 
> :info:build sldtoppm.c:218:17: warning: implicit declaration of function 'strnlen' is invalid in C99 [-Wimplicit-function-declaration]
> :info:build             if (strnlen(slideName, 32) == 32)
> :info:build                 ^
> :info:build 1 warning generated.
> :info:build sldtoppm.c:218:17: warning: implicit declaration of function 'strnlen' is invalid in C99 [-Wimplicit-function-declaration]
> :info:build             if (strnlen(slideName, 32) == 32)
> :info:build                 ^
> [...]
> :info:build /opt/local/bin/clang-mp-3.9 -o sldtoppm sldtoppm.o     -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_netpbm/netpbm/work/advanced/lib -lnetpbm -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -arch i386   -lm  
> :info:build Undefined symbols for architecture x86_64:
> :info:build   "_strnlen", referenced from:
> :info:build       _main in sldtoppm.o
> :info:build ld: symbol(s) not found for architecture x86_64
> :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
> 

Marius
--
Marius Schamschula



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20180118/220db748/attachment.html>


More information about the macports-users mailing list