[Bug 276182] qt5-imageformats-5.15.12p12 won't build from source

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 08 Jan 2024 02:21:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276182

--- Comment #9 from dennis <drac7ft@gmail.com> ---
Still getting the same undefined symbols while trying to link.

fbsdhost# pkg create qt5-imageformats
pkg: No installed package matching "qt5-imageformats" found

fbsdhost# pkg delete -yf qt5-imageformats
Updating database digests format: 100%
No packages matched for pattern 'qt5-imageformats'

Checking integrity... done (0 conflicting)
1 packages requested for removal: 0 locked, 1 missing

I did a "make clean", then "make install".  It does the configure as noted
earlier and then starts building.  There are no compiler warnings, except for
one about jasper.  It occurs a few steps before the unresolved symbol error.

---

main.o main.cpp
--- sub-jp2-all ---
--- .obj/qjp2handler.o ---
In file included from qjp2handler.cpp:49:
In file included from /usr/local/include/jasper/jasper.h:73:
/usr/local/include/jasper/jas_config.h:117:2: warning: "Your code is being
built against an older version of the C standard than JasPer was.  Although
this is supported, this may require some extra preprocessor defines when
building." [-W#warnings]
#warning "Your code is being built against an older version of the C standard
than JasPer was.  Although this is supported, this may require some extra
preprocessor defines when building."
 ^
 --- sub-tga-all ---
 --- ../../../../plugins/imageformats/libqtga.so ---
 rm -f libqtga.so
 c++ -Wl,--undefined-version -Wl,--as-needed -fstack-protector-strong
-Wl,--no-undefined -pthread -Wl,-rpath,/usr/local/lib/qt5 -shared -o libqtga.so
.obj/qtgahandler.o  .obj/qtgafile.o  .obj/main.o 
-L/usr/ports/graphics/qt5-imageformats/work/kde-qtimageformats-5.15.12p12/lib
-L/usr/local/lib /usr/local/lib/qt5/libQt5Gui.so
/usr/local/lib/qt5/libQt5Core.so -lGL 
 --- sub-wbmp-all ---
 --- ../../../../plugins/imageformats/libqwbmp.so ---
 rm -f libqwbmp.so
 c++ -Wl,--undefined-version -Wl,--as-needed -fstack-protector-strong
-Wl,--no-undefined -pthread -Wl,-rpath,/usr/local/lib/qt5 -shared -o
libqwbmp.so .obj/qwbmphandler.o  .obj/main.o 
-L/usr/ports/graphics/qt5-imageformats/work/kde-qtimageformats-5.15.12p12/lib
-L/usr/local/lib /usr/local/lib/qt5/libQt5Gui.so
/usr/local/lib/qt5/libQt5Core.so -lGL 
 --- sub-mng-all ---
 --- ../../../../plugins/imageformats/libqmng.so ---
 rm -f libqmng.so
 c++ -Wl,--undefined-version -Wl,--as-needed -fstack-protector-strong
-Wl,--no-undefined -pthread -Wl,-rpath,/usr/local/lib/qt5 -shared -o libqmng.so
.obj/main.o  .obj/qmnghandler.o 
-L/usr/ports/graphics/qt5-imageformats/work/kde-qtimageformats-5.15.12p12/lib
-L/usr/local/lib /usr/local/lib/qt5/libQt5Gui.so
/usr/local/lib/qt5/libQt5Core.so -lGL -lmng 
--- sub-tga-all ---
mv -f libqtga.so ../../../../plugins/imageformats/libqtga.so
--- sub-wbmp-all ---
mv -f libqwbmp.so ../../../../plugins/imageformats/libqwbmp.so
--- sub-mng-all ---
ld: error: undefined symbol: mng_setcb_writedata
>>> referenced by qmnghandler.cpp
>>>               .obj/qmnghandler.o:(QMngHandlerPrivate::QMngHandlerPrivate(QMngHandler*))

ld: error: undefined symbol: mng_create

-- 
You are receiving this mail because:
You are the assignee for the bug.