problem compiling with recent glibc

Bug #197694 reported by Treeve Jelbert
2
Affects Status Importance Assigned to Milestone
partimage-ng
Fix Committed
Undecided
Dmitry Ivanov

Bug Description

I have glibc-2.7 and get the following error:/

usr/src/partimage-ng/src/imager.cpp: In member function 'int
PartimageNG::Imager::readVec
tor(int, size_t)':
/usr/src/partimage-ng/src/imager.cpp:211: warning: comparison between signed and
unsignedinteger expressions
/usr/src/partimage-ng/src/imager.cpp: In member function 'int
PartimageNG::Imager::writeVector(int, size_t)':
/usr/src/partimage-ng/src/imager.cpp:234: warning: comparison between signed and
unsignedinteger expressions
/usr/src/partimage-ng/src/imager.cpp: In member function 'int
PartimageNG::Imager::savePartition(const char*, const char*)':
/usr/src/partimage-ng/src/imager.cpp:282: error: 'CODESET' was not declared in
this scope
/usr/src/partimage-ng/src/imager.cpp:282: error: 'nl_langinfo' was not declared in
this scope

the following change fixed the problem:

sed -i -e '/<fcntl.h>/ a\
#include <langinfo.h>
' src/imager.cpp

Revision history for this message
Dmitry Ivanov (vonami) wrote :

Which revision are you compiling?

Revision history for this message
Dmitry Ivanov (vonami) wrote :

Fixed in rev 104

Changed in partimage-ng:
assignee: nobody → vonami
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.