libintl missing on FreeBSD 10.1 system

Matthew Seaman matthew at FreeBSD.org
Sun Dec 28 16:10:24 UTC 2014


On 28/12/2014 10:54, Marc Balmer wrote:
> 
>> Am 27.12.2014 um 11:58 schrieb Matthew Seaman <m.seaman at infracaninophile.co.uk>:
>>
>> On 27/12/2014 10:06, Marc Balmer wrote:
>>> I am trying to compile a piece of software on FreeBSD 10.1 that includes a PostgreSQL server header file, which tries to include libintl.h.  I have the gettext package installed, but this libintl.h header file is missing:
>>>
>>> In file included from /usr/local/include/postgresql/server/postgres.h:47:
>>> /usr/local/include/postgresql/server/c.h:101:10: fatal error: 'libintl.h' file
>>>      not found
>>> #include <libintl.h>
>>>         ^
>>> 1 error generated.
>>> *** Error code 1
>>>
>>> Which package doese provide this file?
>>
>> This is more a question for freebsd-ports@ rather than this mailing
>> list, but wotthehell, wotthehell.
>>
>> lucid-nonsense:~:% pkg which /usr/local/include/libintl.h
>> /usr/local/include/libintl.h was installed by package gettext-runtime-0.19.3
> 
> It says the same on my machine, too, *BUT*, there is no file /usr/local/include/libintl.h …

What does

   pkg check -vs gettext-runtime

say?  It's one of the symptoms of the problem with the switch from a
single gettext package to gettext-tools and gettext-runtime that many
files went missing.  If you were using pkg-1.3.8 (which was current at
the time) and didn't follow the instructions in UPDATING then you'ld
experience this effect.

The cure is to force a re-install of gettext-runtime:

   pkg install -f gettext-runtime

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 971 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-pkg/attachments/20141228/7545b46b/attachment.sig>


More information about the freebsd-pkg mailing list