reopen 361439
retitle 361439 aptitude: FTBFS on hurd-i386: Missing include for nl_langinfo
thanks

Hi,

the second part of the patch Emfox Zhou submitted did not get applied
yet, so aptitude still fails to build:

    > if g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.
    > -I../.. -Wall  -I../.. -I. -I../.. -I../../src
    > -DHELPDIR=\"/usr/share/aptitude\"
    > -DPKGDATADIR=\"/usr/share/aptitude\"  -g -O2
    > -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include
    > -D_REENTRANT -MT transcode.o -MD -MP -MF ".deps/transcode.Tpo" -c
    > -o transcode.o transcode.cc; \
    >   then mv -f ".deps/transcode.Tpo" ".deps/transcode.Po"; else rm
    >   -f ".deps/transcode.Tpo"; exit 1; fi
    > transcode.cc: In function 'bool transcode(const char*,
    > std::wstring&, const char*)':
    > transcode.cc:229: error: 'CODESET' was not declared in this scope
    > transcode.cc:229: error: 'nl_langinfo' was not declared in this
    > scope
    > transcode.cc: In function 'bool transcode(const wchar_t*,
    > std::string&, const char*)':
    > transcode.cc:294: error: 'CODESET' was not declared in this scope
    > transcode.cc:294: error: 'nl_langinfo' was not declared in this
    > scope
    > make[5]: *** [transcode.o] Error 1
    > make[5]: Leaving directory
    > `/build/buildd/aptitude-0.4.4/src/vscreen'


This is the patch again:

--- src/vscreen/transcode.cc~   2005-12-10 02:23:26.000000000 +0800
+++ src/vscreen/transcode.cc    2006-04-09 00:19:27.000000000 +0800
@@ -22,6 +22,7 @@
 #include <generic/util/eassert.h>
 #include <errno.h>
 #include <iconv.h>
+#include <langinfo.h>
 
 using namespace std;
 


cheers,

Michael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to