git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: 1.7.9, libcharset missing from EXTLIBS

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Feb 10, 2012, 10:06 UTC
Message-ID
<CACBZZX45=mr=FMqFF+Pw4KPaDAtvs-ePLbFATpyFA93vSfZatw@mail.gmail.com>
In-Reply-To
<7v1uq3toyq.fsf@alter.siamese.dyndns.org>
2012/2/10 Junio C Hamano <gitster@pobox.com>:
Show 26 quoted lines
> Дилян Палаузов  <dilyan.palauzov@aegee.org> writes:
>
>> Hello,
>>
>> git 1.7.9 makes use of libcharset and /Makefile contains:
>>
>> ifdef HAVE_LIBCHARSET_H
>>         BASIC_CFLAGS += -DHAVE_LIBCHARSET_H
>> endif
>> ...
>> and the problem is, that libcharset is not used when linking.  To
>> solve this, please replace the above extract from /Makefile with
>>
>> ifdef HAVE_LIBCHARSET_H
>>         BASIC_CFLAGS += -DHAVE_LIBCHARSET_H
>>       EXTLIBS += -lcharset
>> endif
>
> Thanks.
>
> What platform is this?  Is there a guarantee that any and all system that
> use "#include <libcharset.h>" has to link with "-lcharset"?
>
> What I am wondering is there are systems that need to include the header,
> but locale_charset() does not live in /lib/libcharset.a, in which case we
> cannot make HAVE_LIBCHARSET_H imply use of -lcharset.

I've had some similar (privately sent) bug reports about the i18n stuff from someone who built his own Linux distro.

Basically we make assumptions that certain stuff will be in the C library on certain platforms, certain headers go with certain libraries etc.

Evidently none of this can really be relied upon and we'd have to probe for each one if we wanted to make it reliable.

Previous: Junio C HamanoNext: Дилян Палаузов
Message 3 of 13 in “1.7.9, libcharset missing from EXTLIBS”
  1. Дилян ПалаузовFeb 10, 2012
  2. Junio C HamanoFeb 10, 2012
  3. Ævar Arnfjörð BjarmasonFeb 10, 2012
  4. Дилян ПалаузовFeb 10, 2012
  5. Junio C HamanoFeb 10, 2012
  6. Dilyan PalauzovFeb 10, 2012
  7. Erik Faye-LundFeb 10, 2012
  8. Junio C HamanoFeb 10, 2012
  9. Дилян ПалаузовFeb 12, 2012
  10. Ævar Arnfjörð BjarmasonFeb 12, 2012
  11. Junio C HamanoFeb 12, 2012
  12. Re: 1.7.9, libcharset missing from EXTLIBSДилян Палаузов, Feb 12, 2012
  13. Jakub NarebskiFeb 10, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.