Hi Gert,
I did a quick try on poudriere for a 14.0-amd46 to compile gammu
with all options activated and it compiles without issue.
Can you provide more details the way you build gammu ?
Regards
-- rodrigo
On 04/01/24 11:39, Gert Lynge wrote:
Hi Rodrigo
After doing a freensd-update from 12.4 to 14.0 (following the
documentation for major upgrade), I have a hard time making
gammu-1.42.0 with MySQL support from ports.
The port directory is cloned from scratch with git and the other >700
ports I’ve installed are compiling without issues (after I figured out
a few issues with them).
Only gammu seems to cause me problems. It was working perfectly on
12.4 and previous versions (have been running it for years 😊).
Do you know of any issues running gammu on FreeBSD 14?
Do you have any suggestions or hints?
Can I provide you with more info?
---
[ 81% 341/417] /usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include/gudev-1.0 -I/usr/local/include
-I/usr/ports/comms/gammu/work/.build/gammu-detect/../include
-I/usr/ports/comms/gammu/work/.build/gammu-detect -O2 -pipe
-march=core2 -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -Wall -Werror-implicit-function-declaration
-Wno-deprecated-declarations -Wdeclaration-after-statement
-Wpointer-arith -Wfloat-equal -Wbad-function-cast
-Wmissing-format-attribute -Wmissing-noreturn -Wshadow
-Wstrict-prototypes -Wsign-compare -Wunreachable-code
-Wno-error=unreachable-code -Wno-pointer-sign -Wwrite-strings
-Wredundant-decls -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral
-Wextra -Wno-unused-parameter -fPIC -O2 -pipe -march=core2
-DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing
-DNDEBUG -std=gnu11 -MD -MT
gammu-detect/CMakeFiles/gammu-detect.dir/udev.c.o -MF
gammu-detect/CMakeFiles/gammu-detect.dir/udev.c.o.d -o
gammu-detect/CMakeFiles/gammu-detect.dir/udev.c.o -c
/usr/ports/comms/gammu/work/gammu-1.42.0/gammu-detect/udev.c
[ 82% 342/417] : && /usr/bin/cc -O2 -pipe -march=core2 -DLIBICONV_PLUG
-fstack-protector-strong -fno-strict-aliasing -Wall
-Werror-implicit-function-declaration -Wno-deprecated-declarations
-Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal
-Wbad-function-cast -Wmissing-format-attribute -Wmissing-noreturn
-Wshadow -Wstrict-prototypes -Wsign-compare -Wunreachable-code
-Wno-error=unreachable-code -Wno-pointer-sign -Wwrite-strings
-Wredundant-decls -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral
-Wextra -Wno-unused-parameter -fPIC -O2 -pipe -march=core2
-DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing
-DNDEBUG -Wl,--as-needed -fstack-protector-strong
gammu-detect/CMakeFiles/gammu-detect.dir/main.c.o
gammu-detect/CMakeFiles/gammu-detect.dir/udev.c.o -o
gammu-detect/gammu-detect
-Wl,-rpath,/usr/local/lib:/usr/ports/comms/gammu/work/.build/libgammu:
/usr/local/lib/libglib-2.0.so /usr/local/lib/libgobject-2.0.so
/usr/local/lib/libglib-2.0.so libgammu/libGammu.so.8.1.42.0
-lgudev-1.0 -lgobject-2.0 -lglib-2.0 -lintl
/usr/local/lib/libintl.so /usr/local/lib/libglib-2.0.so
/usr/local/lib/libgobject-2.0.so /usr/local/lib/libglib-2.0.so
/usr/local/lib/libgobject-2.0.so -lpthread -lbluetooth -lc -lm
/usr/local/lib/libintl.so && :
FAILED: gammu-detect/gammu-detect
: && /usr/bin/cc -O2 -pipe -march=core2 -DLIBICONV_PLUG
-fstack-protector-strong -fno-strict-aliasing -Wall
-Werror-implicit-function-declaration -Wno-deprecated-declarations
-Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal
-Wbad-function-cast -Wmissing-format-attribute -Wmissing-noreturn
-Wshadow -Wstrict-prototypes -Wsign-compare -Wunreachable-code
-Wno-error=unreachable-code -Wno-pointer-sign -Wwrite-strings
-Wredundant-decls -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral
-Wextra -Wno-unused-parameter -fPIC -O2 -pipe -march=core2
-DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing
-DNDEBUG -Wl,--as-needed -fstack-protector-strong
gammu-detect/CMakeFiles/gammu-detect.dir/main.c.o
gammu-detect/CMakeFiles/gammu-detect.dir/udev.c.o -o
gammu-detect/gammu-detect
-Wl,-rpath,/usr/local/lib:/usr/ports/comms/gammu/work/.build/libgammu:
/usr/local/lib/libglib-2.0.so /usr/local/lib/libgobject-2.0.so
/usr/local/lib/libglib-2.0.so libgammu/libGammu.so.8.1.42.0
-lgudev-1.0 -lgobject-2.0 -lglib-2.0 -lintl
/usr/local/lib/libintl.so /usr/local/lib/libglib-2.0.so
/usr/local/lib/libgobject-2.0.so /usr/local/lib/libglib-2.0.so
/usr/local/lib/libgobject-2.0.so -lpthread -lbluetooth -lc -lm
/usr/local/lib/libintl.so && :
ld: error: unable to find library -lgudev-1.0
ld: error: unable to find library -lgobject-2.0
ld: error: unable to find library -lglib-2.0
ld: error: unable to find library -lintl
cc: error: linker command failed with exit code 1 (use -v to see
invocation)
ninja: build stopped: subcommand failed.
*** Error code 1
Stop.
make[2]: stopped in /usr/ports/comms/gammu
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/comms/gammu
*** Error code 1
Stop.
make: stopped in /usr/ports/comms/gammu
---
[root@bsd /usr/ports/comms/gammu]# uname -a
FreeBSD bsd.lynge.org 14.0-RELEASE-p3 FreeBSD 14.0-RELEASE-p3 #0: Mon
Dec 11 04:56:01 UTC 2023
r...@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
amd64
<mailto:r...@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC%20amd64>
---
[root@bsd /usr/ports/comms/gammu]# /usr/bin/cc --version
FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git
llvmorg-16.0.6-0-g7cbf1a259152)
Target: x86_64-unknown-freebsd14.0
Thread model: posix
InstalledDir: /usr/bin
---
[root@bsd /usr/ports/comms/gammu]# ls -l /usr/local/lib/libgudev*
lrwxr-xr-x 1 root wheel 17 Dec 29 11:17
/usr/local/lib/libgudev-1.0.so -> libgudev-1.0.so.0
lrwxr-xr-x 1 root wheel 21 Dec 29 11:17
/usr/local/lib/libgudev-1.0.so.0 -> libgudev-1.0.so.0.3.0
-rwxr-xr-x 1 root wheel 43688 Dec 29 11:17
/usr/local/lib/libgudev-1.0.so.0.3.0
---
[root@bsd /usr/ports/comms/gammu]# ls -l /usr/local/lib/libgobject*
-rw-r--r-- 1 root wheel 784622 Dec 29 11:20
/usr/local/lib/libgobject-2.0.a
lrwxr-xr-x 1 root wheel 19 Dec 29 11:21
/usr/local/lib/libgobject-2.0.so -> libgobject-2.0.so.0
lrwxr-xr-x 1 root wheel 26 Dec 29 11:21
/usr/local/lib/libgobject-2.0.so.0 -> libgobject-2.0.so.0.7800.3
-rwxr-xr-x 1 root wheel 385136 Dec 29 11:21
/usr/local/lib/libgobject-2.0.so.0.7800.3
---
[root@bsd /usr/ports/comms/gammu]# ls -l /usr/local/lib/libglib*
-rw-r--r-- 1 root wheel 2435626 Dec 29 11:20 /usr/local/lib/libglib-2.0.a
lrwxr-xr-x 1 root wheel 16 Dec 29 11:21
/usr/local/lib/libglib-2.0.so -> libglib-2.0.so.0
lrwxr-xr-x 1 root wheel 23 Dec 29 11:21
/usr/local/lib/libglib-2.0.so.0 -> libglib-2.0.so.0.7800.3
-rwxr-xr-x 1 root wheel 1329184 Dec 29 11:21
/usr/local/lib/libglib-2.0.so.0.7800.3
---
[root@bsd /usr/ports/comms/gammu]# ls -l /usr/local/lib/libintl*
-rw-r--r-- 1 root wheel 259656 Dec 27 19:46 /usr/local/lib/libintl.a
lrwxr-xr-x 1 root wheel 16 Dec 27 19:46 /usr/local/lib/libintl.so
-> libintl.so.8.4.0
lrwxr-xr-x 1 root wheel 16 Dec 27 19:46
/usr/local/lib/libintl.so.8 -> libintl.so.8.4.0
-rw-r--r-- 1 root wheel 135616 Dec 27 19:46
/usr/local/lib/libintl.so.8.4.0
---
Best Regards,
Gert Lynge