libftdi Archives

Subject: RE: ftdi_eeprom link failure

From: xantares 09 <xantares09@xxxxxxxxxxx>
To: "libftdi@xxxxxxxxxxxxxxxxxxxxxxx" <libftdi@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 30 Apr 2013 08:19:14 +0000


> From: hannes_weisbach@xxxxxxx
> Subject: ftdi_eeprom link failure
> Date: Sat, 27 Apr 2013 17:41:53 +0200
> To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
>
> Hello libftdi-developers.
>
> I wanted to compile libftdi1 under OS X 10.6.8 and I followed README.build to do so. However, ftdi_eeprom failed to link with the following error:
> Linking C executable ftdi_eeprom
> Undefined symbols:
> "_libintl_setlocale", referenced from:
> _cfg_init in libconfuse.a(confuse.o)
> _cfg_init in libconfuse.a(confuse.o)
> "_libintl_bindtextdomain", referenced from:
> _cfg_init in libconfuse.a(confuse.o)
> "_libintl_dgettext", referenced from:
> _cfg_include in libconfuse.a(confuse.o)
> _cfg_getopt in libconfuse.a(confuse.o)
> _cfg_getopt in libconfuse.a(confuse.o)
> _cfg_setopt in libconfuse.a(confuse.o)
> _cfg_setopt in libconfuse.a(confuse.o)
> _cfg_parse_internal in libconfuse.a(confuse.o)
> _cfg_parse_internal in libconfuse.a(confuse.o)
>
> A bit of research suggested, that "-lintl" may be missing from the linker flags. So I added it and everything compiled and linked fine. I added the library to ftdi_eeprom/CMakeList.txt (see attached patch).
>
> I don't know if this problem exists on other platforms or whether it even may break something.
>
> Best regards,
> Hannes
>
>
>
> --
> libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
> To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
>



Indeed, it does break the build on linux ; intl is shipped as part of libc6.
Intl should be treated as a conditional dependency of confuse.

Here is a patch.

Regards.

M.






libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx


Attachment: libftdi_intl.patch
Description: Binary data

Current Thread