Download raw body.
[wip new] geo/ncview
Am 16.09.25 um 16:44 schrieb Marco van Hulten: > Hello > > I've added a port for ncview, something to view netCDF files. > > Building and installing works. I can open some netCDF files, but not > all of them. I'll have a deeper look into that. > > Clang fails on undefined symbols, even as header files are included, so > I needed to set COMPILER to port-gcc only. Without that override, > including weird patches like the one attached brings the compilation > further. In the end it still fails on symbol 'main' not found. > > I tried to reproduce this issue in a very simple header, file with > function and file calling function combination, but of course that's > too simple to reproduce the problem. > > I don't know if the problem is worth tackling of it works with gcc. > > Thanks for insights. Errors in configure for me: checking /usr/local/include/png.h usability... yes checking /usr/local/include/png.h presence... yes checking for /usr/local/include/png.h... yes Using user-specified png include dir=/usr/local/include checking for /usr/local/lib/libpng.so... no Error: user specified png library directory does not have libpng.so ! *** Error 1 in /home/martin/ports/geo/ncview (/home/martin/ports/infrastructure/mk/bsd.port.mk:3030 'do-configure': @for d in /home/martin/p...) *** Error 2 in . (/home/martin/ports/infrastructure/mk/bsd.port.mk:3050 '/home/martin/ports/pobj/ncview-2.1.11/build-amd64/.configure_done') *** Error 2 in /home/martin/ports/geo/ncview (/home/martin/ports/infrastructure/mk/bsd.port.mk:2712 'all': @lock=ncview-2.1.11; export _LOC...) The configure test here should account for the library version in the filename. Something like: <snip> #if test -r "$PNG_LIBDIR/$PNG_LIBNAME"; then if test -n "$(find $PNG_LIBDIR -maxdepth 1 -name $PNG_LIBNAME* -print)"; then </snip> Also, I would prefer the port to work with the in-tree compiler.
[wip new] geo/ncview