With anup-to-date pkgsrc, and starting from a clean/empty sandbox, I
built all the dependencies, and then got the following errors for
ghostscript-agpl (entire log available upon request):
...
gmake[2]: Leaving directory
'/tmp/pkgs/print/ghostscript-agpl/work.x86_64/ghostscript-9.55.0'
/usr/pkg/bin/gmake -f Makefile DISPLAY_DEV=./soobj/display.dev
BUILDDIRPREFIX=so GENOPT='' LDFLAGS='-Wl,-z,relro -Wl,-z,now -L/usr/pkg/lib
-L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -L/usr/lib -Wl,-R/usr/lib
-Wl,-R/usr/pkg/lib -L/usr/X11R7/lib '\
CFLAGS='-O2 -DNDEBUG -I/usr/pkg/include -I/usr/X11R7/include -I/usr/include
-I/usr/X11R7/include/freetype2 -Wall -Wstrict-prototypes -Wundef
-Wmissing-declarations -Wmissing-prototypes -Wwrite-strings
-fno-strict-aliasing -Werror=declaration-after-statement -fno-builtin
-fno-common -Werror=return-type -DHAVE_STDINT_H=1 -DHAVE_DIRENT_H=1
-DHAVE_SYS_DIR_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1
-DHAVE_INTTYPES_H=1 -DGX_COLOR_INDEX_TYPE="unsigned long long"
-D__USE_UNIX98=1 -DBUILD_PDF=1 -I./pdf -O2 -fPIC -D_FORTIFY_SOURCE=2 -fPIC
-I/usr/pkg/include -I/usr/X11R7/include -I/usr/include
-I/usr/X11R7/include/freetype2 -DHAVE_RESTRICT=1 -I/usr/pkg/include
-DUSE_LIBPAPER -I/usr/pkg/include -fno-strict-aliasing -DHAVE_POPEN_PROTO=1
' prefix=/usr/pkg\
./sobin/gsc ./sobin/gsx -so-loader -so-loader -so-loader -so-loader
gmake[2]: Entering directory
'/tmp/pkgs/print/ghostscript-agpl/work.x86_64/ghostscript-9.55.0'
ldld: : ./sobin/libgs.so./sobin/libgs.so: undefined reference to `: undefined
reference to `gscms_transformm_color_constgscms_transformm_color_const'
'
gmake[2]: *** [base/unix-dll.mak:202: sobin/gsx] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[2]: *** [base/unix-dll.mak:198: sobin/gsc] Error 1
gmake[2]: Leaving directory
'/tmp/pkgs/print/ghostscript-agpl/work.x86_64/ghostscript-9.55.0'
gmake[1]: *** [base/unix-dll.mak:330: so-subtarget] Error 2
gmake[1]: Leaving directory
'/tmp/pkgs/print/ghostscript-agpl/work.x86_64/ghostscript-9.55.0'
gmake: *** [base/unix-dll.mak:277: so] Error 2
*** Error code 2
Stop.
make[1]: stopped in /build/pkgsrc/print/ghostscript-agpl
*** Error code 1
Stop.
make: stopped in /build/pkgsrc/print/ghostscript-agpl
### 2560 - ghostscript-agpl - Failed on Thu, Sep 30, 2021 at 22:14:44 UTC
+--------------------+--------------------------+----------------------+
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| (Retired) | FA29 0E3B 35AF E8AE 6651 | paul%whooppee.com@localhost |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette%netbsd.org@localhost |
| | | pgoyette99%gmail.com@localhost |
+--------------------+--------------------------+----------------------+