On Sat, 20 Sep 2025 22:14:14 +0200 Martin Reindl wrote:
> 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>

Thanks, I forgot about the symlink I made at the time of submitting.
Applied and tested this, cleaned up port, attached.

> Also, I would prefer the port to work with the in-tree compiler.

Does that mean the core CVS tree, as opposed to ports and packages?

Right now it works with 8.4.0 that is in the ports tree.  I understand
you'd prefer it to work with /usr/bin/cc.

There are many (types of) errors and warnings that that compiler
throws.  I appears to me that the code could use improvements.  I have
not been able to reach the author and I have to consider if I have
sufficient time and skills to patch it up.

 Marco

Attachment: ncview.tar.gz
Description: application/gzip

Reply via email to