Bug 170760

Summary: textproc/hunspell: fails to detect /usr/local/include/libintl.h
Product: Ports & Packages Reporter: Kazuo Dohzono <dohzono>
Component: Individual Port(s)Assignee: FreeBSD Office Team <office>
Status: Closed Overcome By Events    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Kazuo Dohzono 2012-08-19 00:30:09 UTC
This is a log from www/libxul building-chain. 

> ===>  Building for hunspell-1.3.2_1
> /bin/sh ./config.status --recheck
> running CONFIG_SHELL=/bin/sh /bin/sh ./configure --enable-optimize=-O3 CXX=c++ CXXFLAGS=-O2 -pipe -fno-strict-aliasing LDFLAGS= -rpath=/usr/lib:/usr/local/lib CPPFLAGS= CC=cc CFLAGS=-O2 -pipe -fno-strict-aliasing CPP=cpp --no-create --no-recursion
(snip)
> checking libintl.h usability... no
> checking libintl.h presence... no
> checking for libintl.h... no
(snip)
> c++ -DHAVE_CONFIG_H -I. -I../.. -I../../src/hunspell -I../../src/parsers   -D_THREAD_SAFE -I/usr/local/include  -O2 -pipe -fno-strict-aliasing -MT hunspell.o -MD -MP -MF .deps/hunspell.Tpo -c -o hunspell.o hunspell.cxx
> hunspell.cxx:104:36: error: ../../intl/libintl.h: No such file or directory
> hunspell.cxx: In function 'char* chenc(char*, const char*, const char*)':
> hunspell.cxx:200: error: 'gettext' was not declared in this scope
(snip)

I have libintl.h in /usr/local/include, and configure fails to find it. 

> $ echo /var/db/pkg/gettext*
> /var/db/pkg/gettext-0.18.1.1
> $ ls -l /usr/local/include/libintl.h
> -r--r--r--  1 root  wheel  16647 Apr 22 13:05 /usr/local/include/libintl.h
> $

> grep libintl config.log
(snip)
> ac_cv_header_libintl_h=no
> gt_cv_func_gnugettext1_libintl=yes
(snip)

How-To-Repeat: # cd /usr/ports/www/libxul
# make CONFIGURE_ARGS=--enable-optimize=-O3
Comment 1 Edwin Groothuis freebsd_committer 2012-08-19 00:30:20 UTC
Responsible Changed
From-To: freebsd-ports-bugs->office

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Baptiste Daroussin freebsd_committer 2014-08-26 06:32:06 UTC
This has been fixed in the meantime