Bug 161574 - Can't compile devel/p5-Locale-gettext on 9.0beta
Summary: Can't compile devel/p5-Locale-gettext on 9.0beta
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dmitry Sivachenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-14 08:20 UTC by oota
Modified: 2016-09-09 11:21 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description oota 2011-10-14 08:20:02 UTC
Can't compile p5-Locale-gettext

error message is
------------------------------------------------------------------------
# make
===>   p5-Locale-gettext-1.05_3 depends on file: /usr/local/bin/perl5.14.1 - found
===>   p5-Locale-gettext-1.05_3 depends on shared library: intl - found
===>  Configuring for p5-Locale-gettext-1.05_3
checking for gettext... no
checking for gettext in -L/usr/local/lib -lintl -I/usr/local/include... no
gettext function not found. Please install libintl at ./Makefile.PL line 18.
*** Error code 2

Stop in /usr/ports/devel/p5-Locale-gettext.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2011-10-14 22:11:06 UTC
Responsible Changed
From-To: freebsd-ports-bugs->demon

Fix synopsis and assign.
Comment 2 Bryan Drewery 2011-10-27 17:12:52 UTC
This exact problem exists on a fresh install of 8.2 as well.
Comment 3 Bryan Drewery 2011-10-27 17:18:43 UTC
Adding -fstack-protector to the Makefile.PL check for -lintl fixes the
issue for me in 8.2.
Comment 4 oota 2011-10-28 09:22:49 UTC
On Thu, Oct 27, 2011 at 11:18:43AM -0500, Bryan Drewery wrote:
> Adding -fstack-protector to the Makefile.PL check for -lintl fixes the
> issue for me in 8.2.

What do I add a parameter to where?

Like this?

L14: $libs = "-fstack-protector -L$ENV{LOCALBASE}/lib -lintl -I$ENV{LOCALBASE}/include";

oota
Comment 5 Bryan Drewery 2011-10-28 09:28:46 UTC
On 10/28/2011 3:22 AM, ribbon wrote:
> On Thu, Oct 27, 2011 at 11:18:43AM -0500, Bryan Drewery wrote:
>> Adding -fstack-protector to the Makefile.PL check for -lintl fixes the
>> issue for me in 8.2.
> What do I add a parameter to where?
>
> Like this?
>
> L14: $libs = "-fstack-protector -L$ENV{LOCALBASE}/lib -lintl -I$ENV{LOCALBASE}/include";
>
> oota

Anywhere in there should work. Though I am using custom /etc/make.conf
which uses -fstack-protector, so it may be limited to gettext built with
that.
Comment 6 oota 2011-10-28 10:33:58 UTC
On Fri, Oct 28, 2011 at 03:28:46AM -0500, Bryan Drewery wrote:
> >
> > Like this?
> >
> > L14: $libs = "-fstack-protector -L$ENV{LOCALBASE}/lib -lintl -I$ENV{LOCALBASE}/include";
> >
> > oota
> 
> Anywhere in there should work. Though I am using custom /etc/make.conf
> which uses -fstack-protector, so it may be limited to gettext built with
> that.

Thanks for your quick reply.

I do "make clean;make extract;make patch" and

I add  "-fstack-protector" in Makefile.PL and

I run make, but result was same.

----------------------------------------------------------------------------------------
# make
===>   p5-Locale-gettext-1.05_3 depends on file: /usr/local/bin/perl5.14.1 - found
===>   p5-Locale-gettext-1.05_3 depends on shared library: intl - found
===>  Configuring for p5-Locale-gettext-1.05_3
checking for gettext... no
checking for gettext in -fstack-protector -L/usr/local/lib -lintl -I/usr/local/include... no
gettext function not found. Please install libintl at ./Makefile.PL line 18.
*** Error code 2
----------------------------------------------------------------------------------------

oota
Comment 7 Carlo Strub freebsd_committer freebsd_triage 2014-09-07 19:56:44 UTC
Is this PR still relevant?
Comment 8 LYH 2015-02-02 16:46:36 UTC
wrong path....

in configure :  /usr/ports/devel/p5-Locale-gettext/work/stage/usr/local/lib/perl5/site_perl/mach/5.16/auto/Locale/gettext/gettext.so

real path :  /usr/ports/devel/p5-Locale-gettext/work/stage/usr/local/lib/perl5/site_perl/5.16/mach/auto/Locale/gettext/gettext.so

 5.16 <-> mach swap location
Comment 9 Dmitry Marakasov freebsd_committer freebsd_triage 2016-09-09 11:21:36 UTC
The port had been building without problems for years.