Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build on Mac OS X #953

Merged
merged 2 commits into from
Jan 12, 2024

Fix FreeBSD build

fd82950
Select commit
Loading
Failed to load commit list.
Merged

Fix build on Mac OS X #953

Fix FreeBSD build
fd82950
Select commit
Loading
Failed to load commit list.
Cirrus CI / FreeBSD failed Jan 11, 2024 in 1m 9s

Task Summary

Instruction compile failed in 00:11

Details

⚠️ Not enough compute credits to prioritize tasks!

✅ 00:02 clone
✅ 00:25 pkginstall
✅ 00:27 configure
❌ 00:11 compile

/bin/sh ../libtool  --tag=CC    --mode=link cc   -Wall -Wextra -O2 -Werror=unknown-warning-option -Wall -Wextra -Wmost -Werror=incompatible-pointer-types -Werror=implicit -Werror=int-conversion -Wno-error=reserved-identifier -Wno-error=documentation-deprecated-sync -Wno-unused-parameter -module -no-undefined -avoid-version -export-dynamic  -export-symbols '../camlibs/camlib.sym' -rpath  '/usr/local/lib/libgphoto2/2.5.31.1'  -o jd11.la  jd11/la-jd11.lo jd11/la-serial.lo  jd11/la-decomp.lo ../libgphoto2/libgphoto2.la  ../libgphoto2_port/libgphoto2_port/libgphoto2_port.la -lm  -L/usr/local/lib -lltdl
libtool: link: cc -shared  -fPIC -DPIC  jd11/.libs/la-jd11.o jd11/.libs/la-serial.o jd11/.libs/la-decomp.o   -Wl,-rpath -Wl,/tmp/cirrus-ci-build/libgphoto2/.libs -Wl,-rpath -Wl,/tmp/cirrus-ci-build/libgphoto2_port/libgphoto2_port/.libs -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -L/tmp/cirrus-ci-build/libgphoto2_port/libgphoto2_port/.libs ../libgphoto2/.libs/libgphoto2.so -L/usr/local/lib /tmp/cirrus-ci-build/libgphoto2_port/libgphoto2_port/.libs/libgphoto2_port.so -lexif ../libgphoto2_port/libgphoto2_port/.libs/libgphoto2_port.so -lintl -lpthread -lregex -lm /usr/local/lib/libltdl.so  -O2   -Wl,-soname -Wl,jd11.so -Wl,-retain-symbols-file -Wl,../camlibs/camlib.sym -o .libs/jd11.so
libtool: link: ( cd ".libs" && rm -f "jd11.la" && ln -s "../jd11.la" "jd11.la" )
/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -D_GPHOTO2_INTERNAL_CODE -DLOCALEDIR=\"/usr/local/share/locale\" -DCAMLIBS=\"/usr/local/lib/libgphoto2/2.5.31.1\" -I.. -I..  -I../libgphoto2_port -I/usr/local/include  -Wall -Wextra -O2 -Werror=unknown-warning-option -Wall -Wextra -Wmost -Werror=incompatible-pointer-types -Werror=implicit -Werror=int-conversion -Wno-error=reserved-identifier -Wno-error=documentation-deprecated-sync -Wno-unused-parameter -MT jl2005a/la-library.lo -MD -MP -MF jl2005a/.deps/la-library.Tpo -c -o jl2005a/la-library.lo `test -f 'jl2005a/library.c' || echo './'`jl2005a/library.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -D_GPHOTO2_INTERNAL_CODE -DLOCALEDIR=\"/usr/local/share/locale\" -DCAMLIBS=\"/usr/local/lib/libgphoto2/2.5.31.1\" -I.. -I.. -I../libgphoto2_port -I/usr/local/include -Wall -Wextra -O2 -Werror=unknown-warning-option -Wall -Wextra -Wmost -Werror=incompatible-pointer-types -Werror=implicit -Werror=int-conversion -Wno-error=reserved-identifier -Wno-error=documentation-deprecated-sync -Wno-unused-parameter -MT jl2005a/la-library.lo -MD -MP -MF jl2005a/.deps/la-library.Tpo -c jl2005a/library.c  -fPIC -DPIC -o jl2005a/.libs/la-library.o
mv -f jl2005a/.deps/la-library.Tpo jl2005a/.deps/la-library.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -D_GPHOTO2_INTERNAL_CODE -DLOCALEDIR=\"/usr/local/share/locale\" -DCAMLIBS=\"/usr/local/lib/libgphoto2/2.5.31.1\" -I.. -I..  -I../libgphoto2_port -I/usr/local/include  -Wall -Wextra -O2 -Werror=unknown-warning-option -Wall -Wextra -Wmost -Werror=incompatible-pointer-types -Werror=implicit -Werror=int-conversion -Wno-error=reserved-identifier -Wno-error=documentation-deprecated-sync -Wno-unused-parameter -MT jl2005a/la-jl2005a.lo -MD -MP -MF jl2005a/.deps/la-jl2005a.Tpo -c -o jl2005a/la-jl2005a.lo `test -f 'jl2005a/jl2005a.c' || echo './'`jl2005a/jl2005a.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -D_GPHOTO2_INTERNAL_CODE -DLOCALEDIR=\"/usr/local/share/locale\" -DCAMLIBS=\"/usr/local/lib/libgphoto2/2.5.31.1\" -I.. -I.. -I../libgphoto2_port -I/usr/local/include -Wall -Wextra -O2 -Werror=unknown-warning-option -Wall -Wextra -Wmost -Werror=incompatible-pointer-types -Werror=implicit -Werror=int-conversion -Wno-error=reserved-identifier -Wno-error=documentation-deprecated-sync -Wno-unused-parameter -MT jl2005a/la-jl2005a.lo -MD -MP -MF jl2005a/.deps/la-jl2005a.Tpo -c jl2005a/jl2005a.c  -fPIC -DPIC -o jl2005a/.libs/la-jl2005a.o
mv -f jl2005a/.deps/la-jl2005a.Tpo jl2005a/.deps/la-jl2005a.Plo
/bin/sh ../libtool  --tag=CC    --mode=link cc   -Wall -Wextra -O2 -Werror=unknown-warning-option -Wall -Wextra -Wmost -Werror=incompatible-pointer-types -Werror=implicit -Werror=int-conversion -Wno-error=reserved-identifier -Wno-error=documentation-deprecated-sync -Wno-unused-parameter -module -no-undefined -avoid-version -export-dynamic  -export-symbols '../camlibs/camlib.sym' -rpath  '/usr/local/lib/libgphoto2/2.5.31.1'  -o jl2005a.la  jl2005a/la-library.lo jl2005a/la-jl2005a.lo ../libgphoto2/libgphoto2.la  ../libgphoto2_port/libgphoto2_port/libgphoto2_port.la -lm  -L/usr/local/lib -lltdl
libtool: link: cc -shared  -fPIC -DPIC  jl2005a/.libs/la-library.o jl2005a/.libs/la-jl2005a.o   -Wl,-rpath -Wl,/tmp/cirrus-ci-build/libgphoto2/.libs -Wl,-rpath -Wl,/tmp/cirrus-ci-build/libgphoto2_port/libgphoto2_port/.libs -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -L/tmp/cirrus-ci-build/libgphoto2_port/libgphoto2_port/.libs ../libgphoto2/.libs/libgphoto2.so -L/usr/local/lib /tmp/cirrus-ci-build/libgphoto2_port/libgphoto2_port/.libs/libgphoto2_port.so -lexif ../libgphoto2_port/libgphoto2_port/.libs/libgphoto2_port.so -lintl -lpthread -lregex -lm /usr/local/lib/libltdl.so  -O2   -Wl,-soname -Wl,jl2005a.so -Wl,-retain-symbols-file -Wl,../camlibs/camlib.sym -o .libs/jl2005a.so
libtool: link: ( cd ".libs" && rm -f "jl2005a.la" && ln -s "../jl2005a.la" "jl2005a.la" )
/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -D_GPHOTO2_INTERNAL_CODE -DLOCALEDIR=\"/usr/local/share/locale\" -DCAMLIBS=\"/usr/local/lib/libgphoto2/2.5.31.1\" -I.. -I..  -I../libgphoto2_port -I/usr/local/include -I/usr/local/include  -Wall -Wextra -O2 -Werror=unknown-warning-option -Wall -Wextra -Wmost -Werror=incompatible-pointer-types -Werror=implicit -Werror=int-conversion -Wno-error=reserved-identifier -Wno-error=documentation-deprecated-sync -Wno-unused-parameter -MT jl2005c/la-library.lo -MD -MP -MF jl2005c/.deps/la-library.Tpo -c -o jl2005c/la-library.lo `test -f 'jl2005c/library.c' || echo './'`jl2005c/library.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -D_GPHOTO2_INTERNAL_CODE -DLOCALEDIR=\"/usr/local/share/locale\" -DCAMLIBS=\"/usr/local/lib/libgphoto2/2.5.31.1\" -I.. -I.. -I../libgphoto2_port -I/usr/local/include -I/usr/local/include -Wall -Wextra -O2 -Werror=unknown-warning-option -Wall -Wextra -Wmost -Werror=incompatible-pointer-types -Werror=implicit -Werror=int-conversion -Wno-error=reserved-identifier -Wno-error=documentation-deprecated-sync -Wno-unused-parameter -MT jl2005c/la-library.lo -MD -MP -MF jl2005c/.deps/la-library.Tpo -c jl2005c/library.c  -fPIC -DPIC -o jl2005c/.libs/la-library.o
mv -f jl2005c/.deps/la-library.Tpo jl2005c/.deps/la-library.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -D_GPHOTO2_INTERNAL_CODE -DLOCALEDIR=\"/usr/local/share/locale\" -DCAMLIBS=\"/usr/local/lib/libgphoto2/2.5.31.1\" -I.. -I..  -I../libgphoto2_port -I/usr/local/include -I/usr/local/include  -Wall -Wextra -O2 -Werror=unknown-warning-option -Wall -Wextra -Wmost -Werror=incompatible-pointer-types -Werror=implicit -Werror=int-conversion -Wno-error=reserved-identifier -Wno-error=documentation-deprecated-sync -Wno-unused-parameter -MT jl2005c/la-jl2005c.lo -MD -MP -MF jl2005c/.deps/la-jl2005c.Tpo -c -o jl2005c/la-jl2005c.lo `test -f 'jl2005c/jl2005c.c' || echo './'`jl2005c/jl2005c.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -D_GPHOTO2_INTERNAL_CODE -DLOCALEDIR=\"/usr/local/share/locale\" -DCAMLIBS=\"/usr/local/lib/libgphoto2/2.5.31.1\" -I.. -I.. -I../libgphoto2_port -I/usr/local/include -I/usr/local/include -Wall -Wextra -O2 -Werror=unknown-warning-option -Wall -Wextra -Wmost -Werror=incompatible-pointer-types -Werror=implicit -Werror=int-conversion -Wno-error=reserved-identifier -Wno-error=documentation-deprecated-sync -Wno-unused-parameter -MT jl2005c/la-jl2005c.lo -MD -MP -MF jl2005c/.deps/la-jl2005c.Tpo -c jl2005c/jl2005c.c  -fPIC -DPIC -o jl2005c/.libs/la-jl2005c.o
mv -f jl2005c/.deps/la-jl2005c.Tpo jl2005c/.deps/la-jl2005c.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -D_GPHOTO2_INTERNAL_CODE -DLOCALEDIR=\"/usr/local/share/locale\" -DCAMLIBS=\"/usr/local/lib/libgphoto2/2.5.31.1\" -I.. -I..  -I../libgphoto2_port -I/usr/local/include -I/usr/local/include  -Wall -Wextra -O2 -Werror=unknown-warning-option -Wall -Wextra -Wmost -Werror=incompatible-pointer-types -Werror=implicit -Werror=int-conversion -Wno-error=reserved-identifier -Wno-error=documentation-deprecated-sync -Wno-unused-parameter -MT jl2005c/la-jpeg_memsrcdest.lo -MD -MP -MF jl2005c/.deps/la-jpeg_memsrcdest.Tpo -c -o jl2005c/la-jpeg_memsrcdest.lo `test -f 'jl2005c/jpeg_memsrcdest.c' || echo './'`jl2005c/jpeg_memsrcdest.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -D_GPHOTO2_INTERNAL_CODE -DLOCALEDIR=\"/usr/local/share/locale\" -DCAMLIBS=\"/usr/local/lib/libgphoto2/2.5.31.1\" -I.. -I.. -I../libgphoto2_port -I/usr/local/include -I/usr/local/include -Wall -Wextra -O2 -Werror=unknown-warning-option -Wall -Wextra -Wmost -Werror=incompatible-pointer-types -Werror=implicit -Werror=int-conversion -Wno-error=reserved-identifier -Wno-error=documentation-deprecated-sync -Wno-unused-parameter -MT jl2005c/la-jpeg_memsrcdest.lo -MD -MP -MF jl2005c/.deps/la-jpeg_memsrcdest.Tpo -c jl2005c/jpeg_memsrcdest.c  -fPIC -DPIC -o jl2005c/.libs/la-jpeg_memsrcdest.o
mv -f jl2005c/.deps/la-jpeg_memsrcdest.Tpo jl2005c/.deps/la-jpeg_memsrcdest.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -D_GPHOTO2_INTERNAL_CODE -DLOCALEDIR=\"/usr/local/share/locale\" -DCAMLIBS=\"/usr/local/lib/libgphoto2/2.5.31.1\" -I.. -I..  -I../libgphoto2_port -I/usr/local/include -I/usr/local/include  -Wall -Wextra -O2 -Werror=unknown-warning-option -Wall -Wextra -Wmost -Werror=incompatible-pointer-types -Werror=implicit -Werror=int-conversion -Wno-error=reserved-identifier -Wno-error=documentation-deprecated-sync -Wno-unused-parameter -MT jl2005c/la-jl2005bcd_decompress.lo -MD -MP -MF jl2005c/.deps/la-jl2005bcd_decompress.Tpo -c -o jl2005c/la-jl2005bcd_decompress.lo `test -f 'jl2005c/jl2005bcd_decompress.c' || echo './'`jl2005c/jl2005bcd_decompress.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -D_GPHOTO2_INTERNAL_CODE -DLOCALEDIR=\"/usr/local/share/locale\" -DCAMLIBS=\"/usr/local/lib/libgphoto2/2.5.31.1\" -I.. -I.. -I../libgphoto2_port -I/usr/local/include -I/usr/local/include -Wall -Wextra -O2 -Werror=unknown-warning-option -Wall -Wextra -Wmost -Werror=incompatible-pointer-types -Werror=implicit -Werror=int-conversion -Wno-error=reserved-identifier -Wno-error=documentation-deprecated-sync -Wno-unused-parameter -MT jl2005c/la-jl2005bcd_decompress.lo -MD -MP -MF jl2005c/.deps/la-jl2005bcd_decompress.Tpo -c jl2005c/jl2005bcd_decompress.c  -fPIC -DPIC -o jl2005c/.libs/la-jl2005bcd_decompress.o
mv -f jl2005c/.deps/la-jl2005bcd_decompress.Tpo jl2005c/.deps/la-jl2005bcd_decompress.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -D_GPHOTO2_INTERNAL_CODE -DLOCALEDIR=\"/usr/local/share/locale\" -DCAMLIBS=\"/usr/local/lib/libgphoto2/2.5.31.1\" -I.. -I..  -I../libgphoto2_port -I/usr/local/include -I/usr/local/include  -Wall -Wextra -O2 -Werror=unknown-warning-option -Wall -Wextra -Wmost -Werror=incompatible-pointer-types -Werror=implicit -Werror=int-conversion -Wno-error=reserved-identifier -Wno-error=documentation-deprecated-sync -Wno-unused-parameter -MT jl2005c/la-img_enhance.lo -MD -MP -MF jl2005c/.deps/la-img_enhance.Tpo -c -o jl2005c/la-img_enhance.lo `test -f 'jl2005c/img_enhance.c' || echo './'`jl2005c/img_enhance.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -D_GPHOTO2_INTERNAL_CODE -DLOCALEDIR=\"/usr/local/share/locale\" -DCAMLIBS=\"/usr/local/lib/libgphoto2/2.5.31.1\" -I.. -I.. -I../libgphoto2_port -I/usr/local/include -I/usr/local/include -Wall -Wextra -O2 -Werror=unknown-warning-option -Wall -Wextra -Wmost -Werror=incompatible-pointer-types -Werror=implicit -Werror=int-conversion -Wno-error=reserved-identifier -Wno-error=documentation-deprecated-sync -Wno-unused-parameter -MT jl2005c/la-img_enhance.lo -MD -MP -MF jl2005c/.deps/la-img_enhance.Tpo -c jl2005c/img_enhance.c  -fPIC -DPIC -o jl2005c/.libs/la-img_enhance.o
mv -f jl2005c/.deps/la-img_enhance.Tpo jl2005c/.deps/la-img_enhance.Plo
/bin/sh ../libtool  --tag=CC    --mode=link cc   -Wall -Wextra -O2 -Werror=unknown-warning-option -Wall -Wextra -Wmost -Werror=incompatible-pointer-types -Werror=implicit -Werror=int-conversion -Wno-error=reserved-identifier -Wno-error=documentation-deprecated-sync -Wno-unused-parameter -module -no-undefined -avoid-version -export-dynamic  -export-symbols '../camlibs/camlib.sym' -rpath  '/usr/local/lib/libgphoto2/2.5.31.1'  -o jl2005c.la  jl2005c/la-library.lo jl2005c/la-jl2005c.lo  jl2005c/la-jpeg_memsrcdest.lo  jl2005c/la-jl2005bcd_decompress.lo jl2005c/la-img_enhance.lo ../libgphoto2/libgphoto2.la  ../libgphoto2_port/libgphoto2_port/libgphoto2_port.la -L/usr/local/lib -ljpeg -lm  -L/usr/local/lib -lltdl
libtool: link: cc -shared  -fPIC -DPIC  jl2005c/.libs/la-library.o jl2005c/.libs/la-jl2005c.o jl2005c/.libs/la-jpeg_memsrcdest.o jl2005c/.libs/la-jl2005bcd_decompress.o jl2005c/.libs/la-img_enhance.o   -Wl,-rpath -Wl,/tmp/cirrus-ci-build/libgphoto2/.libs -Wl,-rpath -Wl,/tmp/cirrus-ci-build/libgphoto2_port/libgphoto2_port/.libs -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -L/tmp/cirrus-ci-build/libgphoto2_port/libgphoto2_port/.libs ../libgphoto2/.libs/libgphoto2.so -L/usr/local/lib /tmp/cirrus-ci-build/libgphoto2_port/libgphoto2_port/.libs/libgphoto2_port.so -lexif ../libgphoto2_port/libgphoto2_port/.libs/libgphoto2_port.so -lintl -lpthread -lregex -ljpeg -lm /usr/local/lib/libltdl.so  -O2   -Wl,-soname -Wl,jl2005c.so -Wl,-retain-symbols-file -Wl,../camlibs/camlib.sym -o .libs/jl2005c.so
libtool: link: ( cd ".libs" && rm -f "jl2005c.la" && ln -s "../jl2005c.la" "jl2005c.la" )
/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -D_GPHOTO2_INTERNAL_CODE -DLOCALEDIR=\"/usr/local/share/locale\" -DCAMLIBS=\"/usr/local/lib/libgphoto2/2.5.31.1\" -I.. -I..  -I../libgphoto2_port -I/usr/local/include  -Wall -Wextra -O2 -Werror=unknown-warning-option -Wall -Wextra -Wmost -Werror=incompatible-pointer-types -Werror=implicit -Werror=int-conversion -Wno-error=reserved-identifier -Wno-error=documentation-deprecated-sync -Wno-unused-parameter -MT kodak/dc120/la-dc120.lo -MD -MP -MF kodak/dc120/.deps/la-dc120.Tpo -c -o kodak/dc120/la-dc120.lo `test -f 'kodak/dc120/dc120.c' || echo './'`kodak/dc120/dc120.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -D_GPHOTO2_INTERNAL_CODE -DLOCALEDIR=\"/usr/local/share/locale\" -DCAMLIBS=\"/usr/local/lib/libgphoto2/2.5.31.1\" -I.. -I.. -I../libgphoto2_port -I/usr/local/include -Wall -Wextra -O2 -Werror=unknown-warning-option -Wall -Wextra -Wmost -Werror=incompatible-pointer-types -Werror=implicit -Werror=int-conversion -Wno-error=reserved-identifier -Wno-error=documentation-deprecated-sync -Wno-unused-parameter -MT kodak/dc120/la-dc120.lo -MD -MP -MF kodak/dc120/.deps/la-dc120.Tpo -c kodak/dc120/dc120.c  -fPIC -DPIC -o kodak/dc120/.libs/la-dc120.o
kodak/dc120/dc120.c:425:9: error: implicit declaration of function 'usleep' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        usleep(1500 * 1000);
        ^
kodak/dc120/dc120.c:425:9: note: did you mean 'sleep'?
/usr/include/unistd.h:365:15: note: 'sleep' declared here
unsigned int     sleep(unsigned int);
                 ^
1 error generated.
*** Error code 1

Stop.
make[3]: stopped in /tmp/cirrus-ci-build/camlibs
*** Error code 1

Stop.
make[2]: stopped in /tmp/cirrus-ci-build/camlibs
*** Error code 1

Stop.
make[1]: stopped in /tmp/cirrus-ci-build
*** Error code 1

Stop.
make: stopped in /tmp/cirrus-ci-build