Bug 170760 - textproc/hunspell: fails to detect /usr/local/include/libintl.h
Summary: textproc/hunspell: fails to detect /usr/local/include/libintl.h
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: FreeBSD Office Team
Depends on:
Reported: 2012-08-19 00:30 UTC by Kazuo Dohzono
Modified: 2014-08-26 06:32 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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
> checking libintl.h usability... no
> checking libintl.h presence... no
> checking for libintl.h... no
> 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

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

> $ echo /var/db/pkg/gettext*
> /var/db/pkg/gettext-
> $ 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
> ac_cv_header_libintl_h=no
> gt_cv_func_gnugettext1_libintl=yes

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