Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114850 - gettext doesn't install libasprintf
Summary: gettext doesn't install libasprintf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-08 02:41 UTC by Dirk Heinrichs
Modified: 2005-12-08 22:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Heinrichs 2005-12-08 02:41:06 UTC
While learning about gettext, I tried to compile one of its example programs, 
but only to find out that parts of gettext are missing or installed in wrong 
places. 
 
1) autosprintf.h and corresponding libasprintf* are not installed. 
2) gettext.h is in /usr/share/gettext instead of /usr/include. 
 
My installed gettext version is 0.14.5, installed 02.09.2005. 

Reproducible: Always
Steps to Reproduce:
1. cd /usr/share/doc/gettext-0.14.5/examples/hello-c++ 
2. g++ -o /tmp/hello hello.cc 
 
Actual Results:  
hello.cc:25:21: gettext.h: No such file or directory 
hello.cc:30:25: autosprintf.h: No such file or directory 
hello.cc:31: error: `gnu' has not been declared 
hello.cc:31: error: expected nested-name-specifier before "autosprintf" 
hello.cc:31: error: `autosprintf' has not been declared 
hello.cc: In function `int main()': 
hello.cc:38: error: `LOCALEDIR' undeclared (first use this function) 
hello.cc:38: error: (Each undeclared identifier is reported only once for each 
function it appears in.) 
hello.cc:42: error: `autosprintf' undeclared (first use this function) 
 

Expected Results:  
Compile hello.cc into /tmp/hello.
Comment 1 SpanKY gentoo-dev 2005-12-08 06:11:36 UTC
use the build system to compile the examples, dont run `g++` yourself
Comment 2 Dirk Heinrichs 2005-12-08 06:44:05 UTC
Besides the fact that this doesn't work either (but for other reasons I can't 
figure out right no), how would it solve the "libasprintf* isn't not installed 
as part of the gettext package" thing? 
 
Comment 3 SpanKY gentoo-dev 2005-12-08 15:54:55 UTC
it wouldnt

we had in the past disabled CXX support in gettext (as you noticed)

ive tweaked it so now gettext obeys USE=nocxx
Comment 4 Dirk Heinrichs 2005-12-08 22:36:22 UTC
Good news, thank you very much.