* [Buildroot] problem compiling host-tiff-4.6.0
@ 2024-04-01 7:58 Ralf Dragon
2024-04-04 15:37 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Ralf Dragon @ 2024-04-01 7:58 UTC (permalink / raw)
To: buildroot, peter, gustavo
Dear all,
for me in current master and 2024.02.x branches, the package
host-tiff-4.6.0 fails to compile with:
...
libtool: link: /usr/bin/gcc -O2
-I/home/dragon/src/ft/ftcommunity-TXT/output/build/rootfs/per-package/host-tiff/host/include
-Wall -W -Wl,-rpath
-Wl,/home/dragon/src/ft/ftcommunity-TXT/output/build/rootfs/per-package/host-tiff/host/lib
-o tiffcp tiffcp.o
-L/home/dragon/src/ft/ftcommunity-TXT/output/build/rootfs/per-package/host-tiff/host/lib
../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lLerc -ljbig -lm
-Wl,-rpath
-Wl,/home/dragon/src/ft/ftcommunity-TXT/output/build/rootfs/build/host-tiff-4.6.0/libtiff/.libs
-Wl,-rpath
-Wl,/home/dragon/src/ft/ftcommunity-TXT/output/build/rootfs/per-package/host-tiff/host/lib
/usr/bin/ld: ../libtiff/.libs/libtiff.so: undefined reference to
`deflateInit_'
/usr/bin/ld: ../libtiff/.libs/libtiff.so: undefined reference to `deflate'
/usr/bin/ld: ../libtiff/.libs/libtiff.so: undefined reference to
`deflateEnd'
/usr/bin/ld: ../libtiff/.libs/libtiff.so: undefined reference to `inflate'
...
It seems that the following diff fixes the problem, but I guess that the
HOST_TIFF_CONF_OPTS were added in 91b16f for a reason and that the
problem is a different.
--- a/package/tiff/tiff.mk
+++ b/package/tiff/tiff.mk
@@ -23,7 +23,6 @@ TIFF_DEPENDENCIES = host-pkgconf
HOST_TIFF_CONF_OPTS = \
--disable-cxx \
- --disable-zlib \
--disable-libdeflate \
--disable-lzma \
--disable-jpeg \
Could someone advise what to do?
Ralf
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Buildroot] problem compiling host-tiff-4.6.0
2024-04-01 7:58 [Buildroot] problem compiling host-tiff-4.6.0 Ralf Dragon
@ 2024-04-04 15:37 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2024-04-04 15:37 UTC (permalink / raw)
To: Ralf Dragon; +Cc: buildroot
>>>>> "Ralf" == Ralf Dragon <hypnotoad@lindra.de> writes:
> Dear all,
> for me in current master and 2024.02.x branches, the package
> host-tiff-4.6.0 fails to compile with:
Thanks for the heads up, reproduced here.
> ...
> libtool: link: /usr/bin/gcc -O2
> -I/home/dragon/src/ft/ftcommunity-TXT/output/build/rootfs/per-package/host-tiff/host/include
> -Wall -W -Wl,-rpath
> -Wl,/home/dragon/src/ft/ftcommunity-TXT/output/build/rootfs/per-package/host-tiff/host/lib
> -o tiffcp tiffcp.o
> -L/home/dragon/src/ft/ftcommunity-TXT/output/build/rootfs/per-package/host-tiff/host/lib
> ../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lLerc -ljbig -lm
> -Wl,-rpath
> -Wl,/home/dragon/src/ft/ftcommunity-TXT/output/build/rootfs/build/host-tiff-4.6.0/libtiff/.libs
> -Wl,-rpath
> -Wl,/home/dragon/src/ft/ftcommunity-TXT/output/build/rootfs/per-package/host-tiff/host/lib
> /usr/bin/ld: ../libtiff/.libs/libtiff.so: undefined reference to
> `deflateInit_'
> /usr/bin/ld: ../libtiff/.libs/libtiff.so: undefined reference to `deflate'
> /usr/bin/ld: ../libtiff/.libs/libtiff.so: undefined reference to
> `deflateEnd'
> /usr/bin/ld: ../libtiff/.libs/libtiff.so: undefined reference to `inflate'
> ...
> It seems that the following diff fixes the problem, but I guess that
> the HOST_TIFF_CONF_OPTS were added in 91b16f for a reason and that the
> problem is a different.
Indeed. If you look closely to the failing line you see that you are
linking host-tiff with -lLerc and -ljbig. Presumably you have the
development packages for those libraries installed on your build host?
I have sent a series to explicitly disable lerc and jbig support in
tiff, which should fix the issue:
https://patchwork.ozlabs.org/project/buildroot/list/?series=401697
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-04 15:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-01 7:58 [Buildroot] problem compiling host-tiff-4.6.0 Ralf Dragon
2024-04-04 15:37 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox