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.
Responsible Changed From-To: freebsd-ports-bugs->demon Fix synopsis and assign.
This exact problem exists on a fresh install of 8.2 as well.
Adding -fstack-protector to the Makefile.PL check for -lintl fixes the issue for me in 8.2.
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
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.
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
Is this PR still relevant?
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
The port had been building without problems for years.