pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: p5-gettext-1.05nb9 doesn't find libintl (which was just installed)



Am 14.10.2013 10:27, schrieb Dirk Heinrichs:
> Am 11.10.2013 15:55, schrieb Dirk Heinrichs:
>
>> another problem while installing gcc4.7 on AIX:
>>
>> => Returning to build of p5-gettext-1.05nb9
>> => Full dependency perl>=5.18.0: found perl-5.18.1nb1
>> ===> Overriding tools for p5-gettext-1.05nb9
>> ===> Extracting for p5-gettext-1.05nb9
>> ===> Patching for p5-gettext-1.05nb9
>> => Applying pkgsrc patches for p5-gettext-1.05nb9
>> ===> Creating toolchain wrappers for p5-gettext-1.05nb9
>> ===> Configuring for p5-gettext-1.05nb9
>> => Substituting "intlpath" in Makefile.PL
>> checking for gettext... no
>> checking for gettext in -L/opt/pkg/lib -lintl... no
>> gettext function not found. Please install libintl at Makefile.PL line 18.
>> *** Error code 2
>>
>> But gettext has just been pulled in as a dependency by the same build:
>>
>> # ls -l /opt/pkg/lib/libintl*
>> -rw-r--r--    1 root     system        73165 Oct 11 14:51
>> /opt/pkg/lib/libintl.a
>> -rwxr-xr-x    1 root     system         1001 Oct 11 14:51
>> /opt/pkg/lib/libintl.la
>> lrwxrwxrwx    1 root     system           16 Oct 11 14:51
>> /opt/pkg/lib/libintl.so -> libintl.so.8.1.2
>> lrwxrwxrwx    1 root     system           16 Oct 11 14:51
>> /opt/pkg/lib/libintl.so.8 -> libintl.so.8.1.2
>> -rwxr-xr-x    1 root     system        81503 Oct 11 14:51
>> /opt/pkg/lib/libintl.so.8.1.2
>>
>> Any hints?
> After some manual tries I found that the configure tests do some things
> wrong:
>
> 1) The include path (-I) is wrong, so it doesn't find libintl.h
> 2) Some libs are missing when compiling conftest.c (pthread, iconv)
>
> To solve the problem, I needed set CC accordingly:
>
> # export CC="/opt/freeware/bin/gcc -L/opt/pkg/lib
> -I/opt/pkg/include/gettext -lpthread -liconv"
> # bmake install

BTW: The same is needed for converters/help2man.

Bye...

    Dirk
-- 

*Dirk Heinrichs*, Senior Systems Engineer, Infrastructure
*Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach
*Tel*: +49 2226 1596666 1149
*Email*: dhs%recommind.com@localhost <mailto:dhs%recommind.com@localhost>
*Skype*: dirk.heinrichs.recommind
www.recommind.com <http://www.recommind.com>


http://www.recommind.com


Home | Main Index | Thread Index | Old Index