Skip to contentSkip to conversation

libtiff compilation fails when libjpeg62-dev is present on host

Buildroot Baruch Siach 3 participants 12 messages Nov 9, 2009 – Nov 23, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi Buildroot list,

I need to compile libtiff as a dependency of ImageMagic on a recent Debian Squeeze host. The strange this is that when the libjpeg62-dev is installed on the host libtools finds the host /usr/lib/libjpeg.la file during build, which makes the build to fail at link time as follows:

libtool: link: /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc -Os -pipe -Os --sysroot /home/baruch/git/buildroot/build_arm/staging_dir/ -shared .libs/tif_aux.o .libs/tif_close.o .libs/tif_codec.o .libs/tif_color.o .libs/tif_compress.o .libs/tif_dir.o .libs/tif_dirinfo.o .libs/tif_dirread.o .libs/tif_dirwrite.o .libs/tif_dumpmode.o .libs/tif_error.o .libs/tif_extension.o .libs/tif_fax3.o .libs/tif_fax3sm.o .libs/tif_flush.o .libs/tif_getimage.o .libs/tif_jpeg.o .libs/tif_luv.o .libs/tif_lzw.o .libs/tif_next.o .libs/tif_ojpeg.o .libs/tif_open.o .libs/tif_packbits.o .libs/tif_pixarlog.o .libs/tif_predict.o .libs/tif_print.o .libs/tif_read.o .libs/tif_strip.o .libs/tif_swab.o .libs/tif_thunder.o .libs/tif_tile.o .libs/tif_unix.o .libs/tif_version.o .libs/tif_warning.o .libs/tif_write.o .libs/tif_zip.o -Wl,--whole-archive ../port/.libs/libport.a -Wl,--no-whole-archive /usr/lib/libjpeg.so -lz -lm -lc -Wl,-soname -Wl,libtiff.so.3 -o .libs/libtiff.so.3.8.2
/usr/lib/libjpeg.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status

Removing libjpeg62-dev, or even renaming the host /usr/lib/libjpeg.la file makes the problem go away. Is there a sane solutions for this?

baruch

Signature · 3 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

Baruch> Hi Buildroot list,

Baruch> I need to compile libtiff as a dependency of ImageMagic on a Baruch> recent Debian Squeeze host. The strange this is that when the Baruch> libjpeg62-dev is installed on the host libtools finds the host Baruch> /usr/lib/libjpeg.la file during build, which makes the build to Baruch> fail at link time as follows:

Baruch> libtool: link: /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc -Os -pipe -Os --sysroot /home/baruch/git/buildroot/build_arm/staging_dir/ -shared .libs/tif_aux.o .libs/tif_close.o .libs/tif_codec.o .libs/tif_color.o .libs/tif_compress.o .libs/tif_dir.o .libs/tif_dirinfo.o .libs/tif_dirread.o .libs/tif_dirwrite.o .libs/tif_dumpmode.o .libs/tif_error.o .libs/tif_extension.o .libs/tif_fax3.o .libs/tif_fax3sm.o .libs/tif_flush.o .libs/tif_getimage.o .libs/tif_jpeg.o .libs/tif_luv.o .libs/tif_lzw.o .libs/tif_next.o .libs/tif_ojpeg.o .libs/tif_open.o .libs/tif_packbits.o .libs/tif_pixarlog.o .libs/tif_predict.o .libs/tif_print.o .libs/tif_read.o .libs/tif_strip.o .libs/tif_swab.o .libs/tif_thunder.o .libs/tif_tile.o .libs/tif_unix.o .libs/tif_version.o .libs/tif_warning.o .libs/tif_write.o .libs/tif_zip.o -Wl,--whole-archive ../port/.libs/libport.a -Wl,--no-whole-archive /usr/lib/libjpeg.so -lz -lm -lc -Wl,-soname -Wl,libtiff.so.3 -o .libs/libtiff.so.3.8.2

Must be an issue with the external toolchain support, because it builds here with an internal toolchain. I'll take a closer look at it next weekend when I'm back.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw
In reply to Baruch Siach

Le lundi 09 novembre 2009 ? 09:19 +0200, Baruch Siach a ?crit :

Quoted 7 lines

Hi Buildroot list,

I need to compile libtiff as a dependency of ImageMagic on a recent Debian Squeeze host. The strange this is that when the libjpeg62-dev is installed on the host libtools finds the host /usr/lib/libjpeg.la file during build, which makes the build to fail at link time as follows:

Quoted 9 lines

libtool: link: /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc -Os -pipe -Os --sysroot /home/baruch/git/buildroot/build_arm/staging_dir/ -shared .libs/tif_aux.o .libs/tif_close.o .libs/tif_codec.o .libs/tif_color.o .libs/tif_compress.o .libs/tif_dir.o .libs/tif_dirinfo.o .libs/tif_dirread.o .libs/tif_dirwrite.o .libs/tif_dumpmode.o .libs/tif_error.o .libs/tif_extension.o .libs/tif_fax3.o .libs/tif_fax3sm.o .libs/tif_flush.o .libs/tif_getimage.o .libs/tif_jpeg.o .libs/tif_luv.o .libs/tif_lzw.o .libs/tif_next.o .libs/tif_ojpeg.o .libs/tif_open.o .libs/tif_packbits.o .libs/tif_pixarlog.o .libs/tif_predict.o .libs/tif_print.o .libs/tif_read.o .libs/tif_strip.o .libs/tif_swab.o .libs/tif_thunder.o .libs/tif_tile.o .libs/tif_unix.o .libs/tif_version.o .libs/tif_warning.o .libs/tif_write.o .libs/tif_zip.o -Wl,--whole-archive ../port/.libs/libport.a -Wl,--no-whole-archive /usr/lib/libjpeg.so -lz -lm -lc -Wl,-soname -Wl,libtiff.so.3 -o .libs/libtiff.so.3.8.2
/usr/lib/libjpeg.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status

Removing libjpeg62-dev, or even renaming the host /usr/lib/libjpeg.la file makes the problem go away. Is there a sane solutions for this?

baruch

I got the same problem with a bunch of package (gtk/glib/dbus-glib...) using an external toolchain.

I usually fix the problem by enabling libtool patching on the package.

Signature · 1 line
Lionel Landwerlin <[email protected]>
#3 lore raw

Hi Lionel,

Quoted 15 lines · Lionel Landwerlin

Le lundi 09 novembre 2009 ? 09:19 +0200, Baruch Siach a ?crit :

Quoted 14 lines

Hi Buildroot list,

I need to compile libtiff as a dependency of ImageMagic on a recent Debian Squeeze host. The strange this is that when the libjpeg62-dev is installed on the host libtools finds the host /usr/lib/libjpeg.la file during build, which makes the build to fail at link time as follows:

libtool: link: /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc -Os -pipe -Os --sysroot /home/baruch/git/buildroot/build_arm/staging_dir/ -shared .libs/tif_aux.o .libs/tif_close.o .libs/tif_codec.o .libs/tif_color.o .libs/tif_compress.o .libs/tif_dir.o .libs/tif_dirinfo.o .libs/tif_dirread.o .libs/tif_dirwrite.o .libs/tif_dumpmode.o .libs/tif_error.o .libs/tif_extension.o .libs/tif_fax3.o .libs/tif_fax3sm.o .libs/tif_flush.o .libs/tif_getimage.o .libs/tif_jpeg.o .libs/tif_luv.o .libs/tif_lzw.o .libs/tif_next.o .libs/tif_ojpeg.o .libs/tif_open.o .libs/tif_packbits.o .libs/tif_pixarlog.o .libs/tif_predict.o .libs/tif_print.o .libs/tif_read.o .libs/tif_strip.o .libs/tif_swab.o .libs/tif_thunder.o .libs/tif_tile.o .libs/tif_unix.o .libs/tif_version.o .libs/tif_warning.o .libs/tif_write.o .libs/tif_zip.o -Wl,--whole-archive ../port/.libs/libport.a -Wl,--no-whole-archive /usr/lib/libjpeg.so -lz -lm -lc -Wl,-soname -Wl,libtiff.so.3 -o .libs/libtiff.so.3.8.2
/usr/lib/libjpeg.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status

Removing libjpeg62-dev, or even renaming the host /usr/lib/libjpeg.la file makes the problem go away. Is there a sane solutions for this?

Quoted 7 lines
Quoted 2 lines

baruch

I got the same problem with a bunch of package (gtk/glib/dbus-glib...) using an external toolchain.

I usually fix the problem by enabling libtool patching on the package.

I tried the libtool patch. Unfortunately this patch does not apply on ltmain.sh of the tiff package (version 3.8.2). Is there a newer version of this patch?

baruch

Signature · 3 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#4 lore raw

Sorry for timeout, did you try to activate AUTORECONF=YES and LIBTOOL_PATCH=YES ?

Quoted 46 lines · Baruch Siach

Hi Lionel,

Quoted 4 lines · Lionel Landwerlin

Le lundi 09 novembre 2009 ? 09:19 +0200, Baruch Siach a ?crit :

Quoted 3 lines

Hi Buildroot list,

I need to compile libtiff as a dependency of ImageMagic on a recent

Debian

Quoted 1 line
Quoted 1 line

Squeeze host. The strange this is that when the libjpeg62-dev is

installed on

Quoted 1 line
Quoted 1 line

the host libtools finds the host /usr/lib/libjpeg.la file during

build, which makes

Quoted 3 lines
Quoted 3 lines

the build to fail at link time as follows:

libtool: link: /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc -Os -pipe

-Os --sysroot /home/baruch/git/buildroot/build_arm/staging_dir/ -shared
.libs/tif_aux.o .libs/tif_close.o .libs/tif_codec.o .libs/tif_color.o
.libs/tif_compress.o .libs/tif_dir.o .libs/tif_dirinfo.o .libs/tif_dirread.o .libs/tif_dirwrite.o .libs/tif_dumpmode.o .libs/tif_error.o .libs/tif_extension.o .libs/tif_fax3.o .libs/tif_fax3sm.o .libs/tif_flush.o .libs/tif_getimage.o .libs/tif_jpeg.o .libs/tif_luv.o .libs/tif_lzw.o .libs/tif_next.o .libs/tif_ojpeg.o .libs/tif_open.o .libs/tif_packbits.o .libs/tif_pixarlog.o .libs/tif_predict.o .libs/tif_print.o .libs/tif_read.o .libs/tif_strip.o .libs/tif_swab.o .libs/tif_thunder.o .libs/tif_tile.o .libs/tif_unix.o .libs/tif_version.o .libs/tif_warning.o .libs/tif_write.o .libs/tif_zip.o -Wl,--whole-archive ../port/.libs/libport.a

(quoted diff) +0 -2
-Wl,--no-whole-archive  /usr/lib/libjpeg.so -lz -lm -lc      -Wl,-soname
-Wl,libtiff.so.3 -o .libs/libtiff.so.3.8.2
Quoted 6 lines
Quoted 6 lines

/usr/lib/libjpeg.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status

Removing libjpeg62-dev, or even renaming the host /usr/lib/libjpeg.lafile makes the problem go away. Is there a sane solutions for this?

Quoted 7 lines
Quoted 2 lines

baruch

I got the same problem with a bunch of package (gtk/glib/dbus-glib...) using an external toolchain.

I usually fix the problem by enabling libtool patching on the package.

I tried the libtool patch. Unfortunately this patch does not apply on ltmain.sh of the tiff package (version 3.8.2). Is there a newer version of this patch?

Quoted 7 lines

baruch

--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20091119/13daaad7/attachment.htm>

#5 lore raw

Hi Lionel,

Quoted 2 lines · Lionel Landwerlin

Sorry for timeout, did you try to activate AUTORECONF=YES and LIBTOOL_PATCH=YES ?

I didn't try AUTORECONF=YES. I did try LIBTOOL_PATCH=YES, but, as I said, the patch does not apply. I searched for a newer version of this patch, but didn't find any.

baruch

Quoted 49 lines · Baruch Siach
Quoted 48 lines

Hi Lionel,

Quoted 4 lines · Lionel Landwerlin

Le lundi 09 novembre 2009 ? 09:19 +0200, Baruch Siach a ?crit :

Quoted 3 lines

Hi Buildroot list,

I need to compile libtiff as a dependency of ImageMagic on a recent

Debian

Quoted 1 line
Quoted 1 line

Squeeze host. The strange this is that when the libjpeg62-dev is

installed on

Quoted 1 line
Quoted 1 line

the host libtools finds the host /usr/lib/libjpeg.la file during

build, which makes

Quoted 3 lines
Quoted 3 lines

the build to fail at link time as follows:

libtool: link: /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc -Os -pipe

-Os --sysroot /home/baruch/git/buildroot/build_arm/staging_dir/ -shared
.libs/tif_aux.o .libs/tif_close.o .libs/tif_codec.o .libs/tif_color.o
.libs/tif_compress.o .libs/tif_dir.o .libs/tif_dirinfo.o .libs/tif_dirread.o .libs/tif_dirwrite.o .libs/tif_dumpmode.o .libs/tif_error.o .libs/tif_extension.o .libs/tif_fax3.o .libs/tif_fax3sm.o .libs/tif_flush.o .libs/tif_getimage.o .libs/tif_jpeg.o .libs/tif_luv.o .libs/tif_lzw.o .libs/tif_next.o .libs/tif_ojpeg.o .libs/tif_open.o .libs/tif_packbits.o .libs/tif_pixarlog.o .libs/tif_predict.o .libs/tif_print.o .libs/tif_read.o .libs/tif_strip.o .libs/tif_swab.o .libs/tif_thunder.o .libs/tif_tile.o .libs/tif_unix.o .libs/tif_version.o .libs/tif_warning.o .libs/tif_write.o .libs/tif_zip.o -Wl,--whole-archive ../port/.libs/libport.a

(quoted diff) +0 -2
-Wl,--no-whole-archive  /usr/lib/libjpeg.so -lz -lm -lc      -Wl,-soname
-Wl,libtiff.so.3 -o .libs/libtiff.so.3.8.2
Quoted 6 lines
Quoted 6 lines

/usr/lib/libjpeg.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status

Removing libjpeg62-dev, or even renaming the host /usr/lib/libjpeg.lafile makes the problem go away. Is there a sane solutions for this?

Quoted 7 lines
Quoted 2 lines

baruch

I got the same problem with a bunch of package (gtk/glib/dbus-glib...) using an external toolchain.

I usually fix the problem by enabling libtool patching on the package.

I tried the libtool patch. Unfortunately this patch does not apply on ltmain.sh of the tiff package (version 3.8.2). Is there a newer version of this patch?

baruch

Signature · 3 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#7 lore raw
In reply to a message not in the archive

Hi Lionel,

Quoted 3 lines · Lionel Landwerlin

With the stlinux-2.3 toolchain I have this problem too. Adding the AUTORECONF=YES + LIBTOOL_PATCH=YES works (for me). Could you that ?

I tried that. Here is what I get:

Quoted 1 line
Quoted 1 line
Quoted 1 line

tiff 3.8.2 Patching libtool

Applying buildroot-libtool.patch using plaintext: patching file ltmain.sh Hunk #1 FAILED at 273.
Hunk #2 succeeded at 3952 (offset 1544 lines).
Hunk #3 FAILED at 4096.
Hunk #4 FAILED at 4440.
Hunk #5 succeeded at 6976 with fuzz 1 (offset 1353 lines).
Hunk #6 FAILED at 7301.
4 out of 6 hunks FAILED -- saving rejects to file ltmain.sh.rej
Patch failed! Please fix buildroot-libtool.patch!
make: *** [/home/baruch/git/buildroot/build_arm/tiff-3.8.2/.stamp_libtool_patch] Error 1

baruch

Quoted 84 lines · Baruch Siach
Quoted 83 lines

Hi Lionel,

Quoted 2 lines · Lionel Landwerlin

Sorry for timeout, did you try to activate AUTORECONF=YES and LIBTOOL_PATCH=YES ?

I didn't try AUTORECONF=YES. I did try LIBTOOL_PATCH=YES, but, as I said, the
patch does not apply. I searched for a newer version of this patch, but didn't
find any.

baruch

Quoted 9 lines · Baruch Siach
Quoted 8 lines

Hi Lionel,

Quoted 4 lines · Lionel Landwerlin

Le lundi 09 novembre 2009 ? 09:19 +0200, Baruch Siach a ?crit :

Quoted 3 lines

Hi Buildroot list,

I need to compile libtiff as a dependency of ImageMagic on a recent

Quoted 8 lines
Quoted 8 lines

Debian

Quoted 1 line
Quoted 1 line

Squeeze host. The strange this is that when the libjpeg62-dev is

installed on

Quoted 1 line
Quoted 1 line

the host libtools finds the host /usr/lib/libjpeg.la file during

build, which makes

Quoted 3 lines
Quoted 3 lines

the build to fail at link time as follows:

libtool: link: /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc -Os

-pipe

Quoted 1 line
Quoted 1 line

-Os --sysroot /home/baruch/git/buildroot/build_arm/staging_dir/

-shared

Quoted 2 lines
Quoted 2 lines

.libs/tif_aux.o .libs/tif_close.o .libs/tif_codec.o .libs/tif_color.o
.libs/tif_compress.o .libs/tif_dir.o .libs/tif_dirinfo.o

.libs/tif_dirread.o

Quoted 2 lines
Quoted 2 lines

.libs/tif_dirwrite.o .libs/tif_dumpmode.o .libs/tif_error.o .libs/tif_extension.o .libs/tif_fax3.o .libs/tif_fax3sm.o

.libs/tif_flush.o

Quoted 2 lines
Quoted 2 lines

.libs/tif_getimage.o .libs/tif_jpeg.o .libs/tif_luv.o .libs/tif_lzw.o .libs/tif_next.o .libs/tif_ojpeg.o .libs/tif_open.o

.libs/tif_packbits.o

Quoted 1 line
Quoted 1 line

.libs/tif_pixarlog.o .libs/tif_predict.o .libs/tif_print.o

.libs/tif_read.o

Quoted 2 lines
Quoted 2 lines

.libs/tif_strip.o .libs/tif_swab.o .libs/tif_thunder.o .libs/tif_tile.o .libs/tif_unix.o .libs/tif_version.o .libs/tif_warning.o

.libs/tif_write.o

Quoted 2 lines
Quoted 2 lines

.libs/tif_zip.o -Wl,--whole-archive ../port/.libs/libport.a -Wl,--no-whole-archive /usr/lib/libjpeg.so -lz -lm -lc

-Wl,-soname

Quoted 2 lines
Quoted 2 lines

-Wl,libtiff.so.3 -o .libs/libtiff.so.3.8.2

Quoted 1 line
Quoted 1 line

/usr/lib/libjpeg.so: file not recognized: File format not

recognized

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

collect2: ld returned 1 exit status

Removing libjpeg62-dev, or even renaming the host

/usr/lib/libjpeg.lafile

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines

makes the problem go away. Is there a sane solutions for this?

baruch

I got the same problem with a bunch of package

(gtk/glib/dbus-glib...)

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

using an external toolchain.

I usually fix the problem by enabling libtool patching on the

package.

Quoted 3 lines
Quoted 3 lines

I tried the libtool patch. Unfortunately this patch does not apply on ltmain.sh of the tiff package (version 3.8.2). Is there a newer version

of

Quoted 3 lines
Quoted 3 lines

this patch?

baruch

--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

Signature · 3 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#8 lore raw

If you're not using the lastest git, but the last official release, you might need to apply this patch :

http://git.buildroot.org/buildroot/commit/?id=34bba153aca96765aff0c6ff4c84352cb69b94b6

--
Lionel

Quoted 121 lines · Baruch Siach

Hi Lionel,

Quoted 3 lines · Lionel Landwerlin

With the stlinux-2.3 toolchain I have this problem too. Adding the AUTORECONF=YES + LIBTOOL_PATCH=YES works (for me). Could you that ?

I tried that. Here is what I get:

Quoted 1 line
Quoted 1 line
Quoted 1 line

tiff 3.8.2 Patching libtool

Applying buildroot-libtool.patch using plaintext: patching file ltmain.sh Hunk #1 FAILED at 273.
Hunk #2 succeeded at 3952 (offset 1544 lines).
Hunk #3 FAILED at 4096.
Hunk #4 FAILED at 4440.
Hunk #5 succeeded at 6976 with fuzz 1 (offset 1353 lines).
Hunk #6 FAILED at 7301.
4 out of 6 hunks FAILED -- saving rejects to file ltmain.sh.rej Patch failed! Please fix buildroot-libtool.patch!
make: *** [/home/baruch/git/buildroot/build_arm/tiff-3.8.2/.stamp_libtool_patch] Error 1

baruch

Quoted 9 lines · Baruch Siach
Quoted 8 lines

Hi Lionel,

Quoted 2 lines · Lionel Landwerlin

Sorry for timeout, did you try to activate AUTORECONF=YES and LIBTOOL_PATCH=YES ?

I didn't try AUTORECONF=YES. I did try LIBTOOL_PATCH=YES, but, as I

said,

Quoted 8 lines
Quoted 8 lines

the
patch does not apply. I searched for a newer version of this patch, but didn't
find any.

baruch

Quoted 1 line

On Tue, Nov 10, 2009 at 7:37 AM, Baruch Siach <[email protected]>

Quoted 8 lines · wrote:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Hi Lionel,

Quoted 4 lines · Lionel Landwerlin

Le lundi 09 novembre 2009 ? 09:19 +0200, Baruch Siach a ?crit :

Quoted 3 lines

Hi Buildroot list,

I need to compile libtiff as a dependency of ImageMagic on a

recent

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Debian

Quoted 1 line
Quoted 1 line

Squeeze host. The strange this is that when the libjpeg62-dev

is

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

installed on

Quoted 1 line
Quoted 1 line

the host libtools finds the host /usr/lib/libjpeg.la file

during

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

build, which makes

Quoted 3 lines
Quoted 3 lines

the build to fail at link time as follows:

libtool: link: /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc

-Os

Quoted 4 lines
Quoted 4 lines

-pipe

Quoted 1 line
Quoted 1 line

-Os --sysroot /home/baruch/git/buildroot/build_arm/staging_dir/

-shared

Quoted 1 line
Quoted 1 line

.libs/tif_aux.o .libs/tif_close.o .libs/tif_codec.o

.libs/tif_color.o

Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line

.libs/tif_compress.o .libs/tif_dir.o .libs/tif_dirinfo.o

.libs/tif_dirread.o

Quoted 2 lines
Quoted 2 lines

.libs/tif_dirwrite.o .libs/tif_dumpmode.o .libs/tif_error.o .libs/tif_extension.o .libs/tif_fax3.o .libs/tif_fax3sm.o

.libs/tif_flush.o

Quoted 1 line
Quoted 1 line

.libs/tif_getimage.o .libs/tif_jpeg.o .libs/tif_luv.o

.libs/tif_lzw.o

Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

.libs/tif_next.o .libs/tif_ojpeg.o .libs/tif_open.o

.libs/tif_packbits.o

Quoted 1 line
Quoted 1 line

.libs/tif_pixarlog.o .libs/tif_predict.o .libs/tif_print.o

.libs/tif_read.o

Quoted 1 line
Quoted 1 line

.libs/tif_strip.o .libs/tif_swab.o .libs/tif_thunder.o

.libs/tif_tile.o

Quoted 17 lines
Quoted 17 lines
Quoted 1 line
Quoted 1 line

.libs/tif_unix.o .libs/tif_version.o .libs/tif_warning.o

.libs/tif_write.o

Quoted 2 lines
Quoted 2 lines

.libs/tif_zip.o -Wl,--whole-archive ../port/.libs/libport.a -Wl,--no-whole-archive /usr/lib/libjpeg.so -lz -lm -lc

-Wl,-soname

Quoted 2 lines
Quoted 2 lines

-Wl,libtiff.so.3 -o .libs/libtiff.so.3.8.2

Quoted 1 line
Quoted 1 line

/usr/lib/libjpeg.so: file not recognized: File format not

recognized

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

collect2: ld returned 1 exit status

Removing libjpeg62-dev, or even renaming the host

/usr/lib/libjpeg.lafile

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines

makes the problem go away. Is there a sane solutions for this?

baruch

Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

I got the same problem with a bunch of package

(gtk/glib/dbus-glib...)

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

using an external toolchain.

I usually fix the problem by enabling libtool patching on the

package.

Quoted 2 lines
Quoted 2 lines

I tried the libtool patch. Unfortunately this patch does not apply

on

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

ltmain.sh of the tiff package (version 3.8.2). Is there a newer

version

Quoted 7 lines
Quoted 7 lines

of

Quoted 3 lines
Quoted 3 lines

this patch?

baruch

--

                                                    ~. .~   Tk Open

Systems

Quoted 1 line
Quoted 1 line

=}------------------------------------------------ooO--U--Ooo------------{=

Quoted 9 lines
Quoted 2 lines
Quoted 2 lines

- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

--

                                                     ~. .~   Tk Open

Systems =}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20091123/d7060250/attachment.htm>

#9 lore raw

Hi Lionel,

Quoted 4 lines · Lionel Landwerlin

If you're not using the lastest git, but the last official release, you might need to apply this patch :

http://git.buildroot.org/buildroot/commit/?id=34bba153aca96765aff0c6ff4c84352cb69b94b6

Your patch did the trick. After cherry picking 34bba15, the libtiff package compiles correctly.

Thanks.

baruch

Quoted 135 lines

--
Lionel

Quoted 130 lines · Baruch Siach

Hi Lionel,

Quoted 3 lines · Lionel Landwerlin

With the stlinux-2.3 toolchain I have this problem too. Adding the AUTORECONF=YES + LIBTOOL_PATCH=YES works (for me). Could you that ?

I tried that. Here is what I get:

Quoted 1 line
Quoted 1 line
Quoted 1 line

tiff 3.8.2 Patching libtool

Applying buildroot-libtool.patch using plaintext: patching file ltmain.sh Hunk #1 FAILED at 273.
Hunk #2 succeeded at 3952 (offset 1544 lines).
Hunk #3 FAILED at 4096.
Hunk #4 FAILED at 4440.
Hunk #5 succeeded at 6976 with fuzz 1 (offset 1353 lines).
Hunk #6 FAILED at 7301.
4 out of 6 hunks FAILED -- saving rejects to file ltmain.sh.rej Patch failed! Please fix buildroot-libtool.patch!
make: *** [/home/baruch/git/buildroot/build_arm/tiff-3.8.2/.stamp_libtool_patch] Error 1

baruch

Quoted 9 lines · Baruch Siach
Quoted 8 lines

Hi Lionel,

Quoted 2 lines · Lionel Landwerlin

Sorry for timeout, did you try to activate AUTORECONF=YES and LIBTOOL_PATCH=YES ?

I didn't try AUTORECONF=YES. I did try LIBTOOL_PATCH=YES, but, as I

said,

Quoted 8 lines
Quoted 8 lines

the
patch does not apply. I searched for a newer version of this patch, but didn't
find any.

baruch

Quoted 1 line

On Tue, Nov 10, 2009 at 7:37 AM, Baruch Siach <[email protected]>

Quoted 8 lines · wrote:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Hi Lionel,

Quoted 4 lines · Lionel Landwerlin

Le lundi 09 novembre 2009 ? 09:19 +0200, Baruch Siach a ?crit :

Quoted 3 lines

Hi Buildroot list,

I need to compile libtiff as a dependency of ImageMagic on a

recent

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Debian

Quoted 1 line
Quoted 1 line

Squeeze host. The strange this is that when the libjpeg62-dev

is

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

installed on

Quoted 1 line
Quoted 1 line

the host libtools finds the host /usr/lib/libjpeg.la file

during

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

build, which makes

Quoted 3 lines
Quoted 3 lines

the build to fail at link time as follows:

libtool: link: /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc

-Os

Quoted 4 lines
Quoted 4 lines

-pipe

Quoted 1 line
Quoted 1 line

-Os --sysroot /home/baruch/git/buildroot/build_arm/staging_dir/

-shared

Quoted 1 line
Quoted 1 line

.libs/tif_aux.o .libs/tif_close.o .libs/tif_codec.o

.libs/tif_color.o

Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line

.libs/tif_compress.o .libs/tif_dir.o .libs/tif_dirinfo.o

.libs/tif_dirread.o

Quoted 2 lines
Quoted 2 lines

.libs/tif_dirwrite.o .libs/tif_dumpmode.o .libs/tif_error.o .libs/tif_extension.o .libs/tif_fax3.o .libs/tif_fax3sm.o

.libs/tif_flush.o

Quoted 1 line
Quoted 1 line

.libs/tif_getimage.o .libs/tif_jpeg.o .libs/tif_luv.o

.libs/tif_lzw.o

Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

.libs/tif_next.o .libs/tif_ojpeg.o .libs/tif_open.o

.libs/tif_packbits.o

Quoted 1 line
Quoted 1 line

.libs/tif_pixarlog.o .libs/tif_predict.o .libs/tif_print.o

.libs/tif_read.o

Quoted 1 line
Quoted 1 line

.libs/tif_strip.o .libs/tif_swab.o .libs/tif_thunder.o

.libs/tif_tile.o

Quoted 17 lines
Quoted 17 lines
Quoted 1 line
Quoted 1 line

.libs/tif_unix.o .libs/tif_version.o .libs/tif_warning.o

.libs/tif_write.o

Quoted 2 lines
Quoted 2 lines

.libs/tif_zip.o -Wl,--whole-archive ../port/.libs/libport.a -Wl,--no-whole-archive /usr/lib/libjpeg.so -lz -lm -lc

-Wl,-soname

Quoted 2 lines
Quoted 2 lines

-Wl,libtiff.so.3 -o .libs/libtiff.so.3.8.2

Quoted 1 line
Quoted 1 line

/usr/lib/libjpeg.so: file not recognized: File format not

recognized

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

collect2: ld returned 1 exit status

Removing libjpeg62-dev, or even renaming the host

/usr/lib/libjpeg.lafile

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines

makes the problem go away. Is there a sane solutions for this?

baruch

Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

I got the same problem with a bunch of package

(gtk/glib/dbus-glib...)

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

using an external toolchain.

I usually fix the problem by enabling libtool patching on the

package.

Quoted 2 lines
Quoted 2 lines

I tried the libtool patch. Unfortunately this patch does not apply

on

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

ltmain.sh of the tiff package (version 3.8.2). Is there a newer

version

Quoted 7 lines
Quoted 7 lines

of

Quoted 3 lines
Quoted 3 lines

this patch?

baruch

--

                                                    ~. .~   Tk Open

Systems

Quoted 1 line
Quoted 1 line

=}------------------------------------------------ooO--U--Ooo------------{=

Quoted 2 lines
Quoted 2 lines

- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

--

                                                     ~. .~   Tk Open

Systems =}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

Signature · 3 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#10 lore raw

Ok cool.
I didn't identify the problem with some external toolchain. I had this problem with an sh4-stlinux one, but not with an x86-intel one and it seems Thomas didn't had any problem with its arm-whatever toolchains.

I'm working on a configuration choice in the toolchain's configuration to force autoreconf/libtool patching for some external toolchains.

Peter: What do think about such an option ?

--
Lionel

Quoted 165 lines · Baruch Siach

Hi Lionel,

Quoted 4 lines · Lionel Landwerlin

If you're not using the lastest git, but the last official release, you might need to apply this patch :

http://git.buildroot.org/buildroot/commit/?id=34bba153aca96765aff0c6ff4c84352cb69b94b6

Your patch did the trick. After cherry picking 34bba15, the libtiff package compiles correctly.

Thanks.

baruch

Quoted 17 lines

--
Lionel

Quoted 12 lines · Baruch Siach

Hi Lionel,

Quoted 3 lines · Lionel Landwerlin

With the stlinux-2.3 toolchain I have this problem too. Adding the AUTORECONF=YES + LIBTOOL_PATCH=YES works (for me). Could you that ?

I tried that. Here is what I get:

Quoted 1 line
Quoted 1 line
Quoted 1 line

tiff 3.8.2 Patching libtool

Applying buildroot-libtool.patch using plaintext: patching file

ltmain.sh

Quoted 10 lines
Quoted 10 lines

Hunk #1 FAILED at 273.
Hunk #2 succeeded at 3952 (offset 1544 lines).
Hunk #3 FAILED at 4096.
Hunk #4 FAILED at 4440.
Hunk #5 succeeded at 6976 with fuzz 1 (offset 1353 lines). Hunk #6 FAILED at 7301.
4 out of 6 hunks FAILED -- saving rejects to file ltmain.sh.rej Patch failed! Please fix buildroot-libtool.patch!
make: *** [/home/baruch/git/buildroot/build_arm/tiff-3.8.2/.stamp_libtool_patch]

Error

Quoted 5 lines
Quoted 5 lines

1

baruch

Quoted 1 line

On Thu, Nov 19, 2009 at 4:13 PM, Baruch Siach <[email protected]>

Quoted 11 lines · wrote:
Quoted 11 lines
Quoted 8 lines
Quoted 8 lines

Hi Lionel,

Quoted 2 lines · Lionel Landwerlin

Sorry for timeout, did you try to activate AUTORECONF=YES and LIBTOOL_PATCH=YES ?

I didn't try AUTORECONF=YES. I did try LIBTOOL_PATCH=YES, but, as I

said,

Quoted 2 lines
Quoted 2 lines

the
patch does not apply. I searched for a newer version of this patch,

but

Quoted 12 lines
Quoted 12 lines
Quoted 6 lines
Quoted 6 lines

didn't
find any.

baruch

Quoted 1 line

On Tue, Nov 10, 2009 at 7:37 AM, Baruch Siach <[email protected]

Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Hi Lionel,

On Mon, Nov 09, 2009 at 11:43:34PM +0100, Lionel Landwerlin

Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Le lundi 09 novembre 2009 ? 09:19 +0200, Baruch Siach a ?crit

:

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Hi Buildroot list,

I need to compile libtiff as a dependency of ImageMagic on

a

Quoted 3 lines
Quoted 3 lines

recent

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Debian

Quoted 1 line
Quoted 1 line

Squeeze host. The strange this is that when the

libjpeg62-dev

Quoted 8 lines
Quoted 8 lines

is

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

installed on

Quoted 1 line
Quoted 1 line

the host libtools finds the host /usr/lib/libjpeg.la file

during

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

build, which makes

Quoted 3 lines
Quoted 3 lines

the build to fail at link time as follows:

libtool: link:

/opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc

Quoted 3 lines
Quoted 3 lines

-Os

Quoted 2 lines
Quoted 2 lines

-pipe

Quoted 1 line
Quoted 1 line

-Os --sysroot

/home/baruch/git/buildroot/build_arm/staging_dir/

Quoted 21 lines
Quoted 21 lines
Quoted 2 lines
Quoted 2 lines

-shared

Quoted 1 line
Quoted 1 line

.libs/tif_aux.o .libs/tif_close.o .libs/tif_codec.o

.libs/tif_color.o

Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line

.libs/tif_compress.o .libs/tif_dir.o .libs/tif_dirinfo.o

.libs/tif_dirread.o

Quoted 2 lines
Quoted 2 lines

.libs/tif_dirwrite.o .libs/tif_dumpmode.o .libs/tif_error.o .libs/tif_extension.o .libs/tif_fax3.o .libs/tif_fax3sm.o

.libs/tif_flush.o

Quoted 1 line
Quoted 1 line

.libs/tif_getimage.o .libs/tif_jpeg.o .libs/tif_luv.o

.libs/tif_lzw.o

Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

.libs/tif_next.o .libs/tif_ojpeg.o .libs/tif_open.o

.libs/tif_packbits.o

Quoted 1 line
Quoted 1 line

.libs/tif_pixarlog.o .libs/tif_predict.o .libs/tif_print.o

.libs/tif_read.o

Quoted 1 line
Quoted 1 line

.libs/tif_strip.o .libs/tif_swab.o .libs/tif_thunder.o

.libs/tif_tile.o

Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

.libs/tif_unix.o .libs/tif_version.o .libs/tif_warning.o

.libs/tif_write.o

Quoted 2 lines
Quoted 2 lines

.libs/tif_zip.o -Wl,--whole-archive ../port/.libs/libport.a -Wl,--no-whole-archive /usr/lib/libjpeg.so -lz -lm -lc

-Wl,-soname

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines
Quoted 2 lines

-Wl,libtiff.so.3 -o .libs/libtiff.so.3.8.2

Quoted 1 line
Quoted 1 line

/usr/lib/libjpeg.so: file not recognized: File format not

recognized

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

collect2: ld returned 1 exit status

Removing libjpeg62-dev, or even renaming the host

/usr/lib/libjpeg.lafile

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

makes the problem go away. Is there a sane solutions for

this?

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

baruch

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

I got the same problem with a bunch of package

(gtk/glib/dbus-glib...)

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

using an external toolchain.

I usually fix the problem by enabling libtool patching on the

package.

Quoted 2 lines
Quoted 2 lines

I tried the libtool patch. Unfortunately this patch does not

apply

Quoted 6 lines
Quoted 6 lines

on

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

ltmain.sh of the tiff package (version 3.8.2). Is there a newer

version

Quoted 3 lines
Quoted 3 lines

of

Quoted 2 lines
Quoted 2 lines

this patch?

Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line

baruch

--

                                                    ~. .~   Tk Open

Systems

Quoted 1 line
Quoted 1 line

=}------------------------------------------------ooO--U--Ooo------------{=

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

- baruch at tkos.co.il - tel: +972.2.679.5364,

http://www.tkos.co.il -

Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line

--

                                                     ~. .~   Tk Open

Systems

=}------------------------------------------------ooO--U--Ooo------------{=

Quoted 9 lines
Quoted 2 lines
Quoted 2 lines

- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

--

                                                     ~. .~   Tk Open

Systems =}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20091123/008eafa7/attachment-0001.htm>

#11 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Lionel" == Lionel Landwerlin <[email protected]> writes:

Lionel> Ok cool.

Lionel> I didn't identify the problem with some external toolchain. I Lionel> had this problem with an sh4-stlinux one, but not with an Lionel> x86-intel one and it seems Thomas didn't had any problem with Lionel> its arm-whatever toolchains.

Lionel> I'm working on a configuration choice in the toolchain's Lionel> configuration to force autoreconf/libtool patching for some Lionel> external toolchains.

Lionel> Peter: What do think about such an option ?

I would like to first really understand what the problem is and why not everyone is seeing it.

Can you bring it up again post-2009.11?

Signature · 1 line
Bye, Peter Korsgaard
#12 lore raw
Quoted 13 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Lionel" == Lionel Landwerlin <[email protected]> writes:

Lionel> Ok cool.

Lionel> I didn't identify the problem with some external toolchain. I Lionel> had this problem with an sh4-stlinux one, but not with an Lionel> x86-intel one and it seems Thomas didn't had any problem with Lionel> its arm-whatever toolchains.

Lionel> I'm working on a configuration choice in the toolchain's Lionel> configuration to force autoreconf/libtool patching for some Lionel> external toolchains.

Quoted 8 lines

Lionel> Peter: What do think about such an option ?

I would like to first really understand what the problem is and why not everyone is seeing it.

Can you bring it up again post-2009.11?

It's not finished yet, but I will post it here ASAP.

--
Lionel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20091123/1d3af167/attachment.htm>