Bug 27611

Summary: Bug in ports/devel/p5-Locale-gettext
Product: Ports & Packages Reporter: mohacsi <mohacsi>
Component: Individual Port(s)Assignee: Dmitry Sivachenko <demon>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description mohacsi 2001-05-24 12:00:05 UTC
The devel/p5-Local-gettext is misses the gnu gettext package. It reports in the make time:
===>  Configuring for p5-gettext-1.01
Note (probably harmless): No library found for -lintl
Writing Makefile for Locale::gettext

It does harmful! After installing the p5-Locale-gettext package, it reports:

/usr/libexec/ld-elf.so.1: /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/Locale/gettext/gettext.so: Undefined symbol "bindtextdomain"

This symbol is part of the GNU gettext package so p5-Locale-gettext should be compiled with that library.

Fix: 

diff work/gettext-1.01/Makefile.PL working/gettext-1.01/Makefile.PL
4c4,5
<     LIBS => ["-lintl"],
---
>     INC => "-I/usr/local/include",
>     LIBS => ["-L/usr/local/lib -lintl"],
How-To-Repeat: Try access the bindtextdomain function from perl:

use POSIX;
use Locale::gettext;
my $lang_path='/usr/local/www/locale';
########################################################
####gettext lib initalization
bindtextdomain("xxyyzz", $lang_path);
Comment 1 Tetsurou Okazaki freebsd_committer freebsd_triage 2001-05-24 20:09:18 UTC
Responsible Changed
From-To: freebsd-ports->demon

over to maintainer
Comment 2 Dmitry Sivachenko freebsd_committer freebsd_triage 2001-08-16 20:00:21 UTC
State Changed
From-To: open->closed

Committed with modifications, thanks!