Error in java/eclipse 4.33 build

From: Norbert Grundmann <ngrundmann_at_gmx.de>
Date: Thu, 24 Oct 2024 11:47:22 UTC
Hello,

today I got a freebsd package failure in the build of eclipse 4.33 on
amd64 for relases 13.3 and 14.1...  the error is this:

...
[INFO]      [exec] cc -O -Wall -fPIC -DSWT_VERSION=4966r5   -DGTK -I/usr/local/openjdk17/include  -DFREEBSD -Wno-deprecated-non-prototype -I`pkg-config --variable=prefix gtk+-3.0`/include -I/usr/local/openjdk17/include/freebsd -Werror  -c glx.c
[INFO]      [exec] cc -O -Wall -fPIC -DSWT_VERSION=4966r5   -DGTK -I/usr/local/openjdk17/include  -DFREEBSD -Wno-deprecated-non-prototype -I`pkg-config --variable=prefix gtk+-3.0`/include -I/usr/local/openjdk17/include/freebsd -Werror  -c glx_structs.c
[INFO]      [exec] cc -O -Wall -fPIC -DSWT_VERSION=4966r5   -DGTK -I/usr/local/openjdk17/include  -DFREEBSD -Wno-deprecated-non-prototype -I`pkg-config --variable=prefix gtk+-3.0`/include -I/usr/local/openjdk17/include/freebsd -Werror  -c glx_stats.c
[INFO]      [exec] cc -shared -fPIC  -L`pkg-config --variable=prefix gtk+-3.0`/lib -s -o libswt-glx-gtk-4966r5.so swt.o glx.o glx_structs.o glx_stats.o -lGL*-lGLU* -lm
[INFO]      [exec] gmake[1]: Leaving directory '/wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-R4_33_maintenance/eclipse.platform.swt/binaries/org.eclipse.swt.gtk.freebsd.x86_64/target/natives-build-temp'
[INFO]      [exec] *** GTK3 Build failed, aborting further actions..
*[INFO] [exec] ld: error: unable to find library -lGLU*
[INFO]      [exec] cc: error: linker command failed with exit code 1 (use -v to see invocation)
[INFO]      [exec] gmake[1]: *** [make_unix.mak:245: libswt-glx-gtk-4966r5.so] Error 1
...

The bold line is the error - it cannot find -lGLU.  What does it mean? 
in Makefile I use:

BUILD_DEPENDS=  git:devel/git \
                 mvn:devel/maven39 \
                 zip:archivers/zip
LIB_DEPENDS=    libsecret-1.so:security/libsecret \
                 libwebkit2gtk-4.0.so:www/webkit2-gtk3
USES=           compiler:c++17-lang gmake pkgconfig gnome
USE_GNOME=      gtk30
USE_JAVA=       17+

do I have to change settings?

by the way: I run a manual make succesfully on 14.1-RELEASE-p5 in
/usr/port/java/eclipse on my PC :-)

many thanks and have a nice day :-)  Norbert

--
Norbert Grundmann

I love penguins at the south pole,
windows in my house and apples on my tree,
but not in my computer