Compile errors for 4.5.0 on CentOS 5
Mohammed Rakhada (morakhad)
morakhad at cisco.com
Thu Jan 12 16:40:34 UTC 2012
Hello,
I am trying to compile polygraph 4.5.0 on Centos 5.6 x86_64 but am
getting errors.
I was able to patch the BStream.h file as it was previously giving me
the following error
g++ -DHAVE_CONFIG_H -I../.. -I../../src -I../.. -I../../src
-I/usr/include -g -O1 -Wall -Wwrite-strings -Woverloaded-virtual -MT
PolyApp.o -MD -MP -MF .deps/PolyApp.Tpo -c -o PolyApp.o PolyApp.cc
../../src/base/BStream.h: In member function 'int64_t
IBStream::geti64(int64_t&)':
../../src/base/BStream.h:72: error: 'be64toh' was not declared in this
scope
../../src/base/BStream.h: In member function 'void
OBStream::puti64(int64_t)':
../../src/base/BStream.h:106: error: 'htobe64' was not declared in this
scope
make[3]: *** [PolyApp.o] Error 1
make[3]: Leaving directory `/opt/home/compile/polygraph-4.5.0/src/app'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/home/compile/polygraph-4.5.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/home/compile/polygraph-4.5.0'
I believe I traced this down to the BStream.h file not including the
xstd/Endian.h library but after adding this the compile gets further but
still doesn't complete and is now gives me the error below. So not sure
if my "fix" is correct.
g++ -DHAVE_CONFIG_H -I../.. -I../../src -I../.. -I../../src
-I/usr/include -g -O1 -Wall -Wwrite-strings -Woverloaded-virtual -MT
PolyApp.o -MD -MP -MF .deps/PolyApp.Tpo -c -o PolyApp.o PolyApp.cc
../../src/base/BStream.h: In member function 'int64_t
IBStream::geti64(int64_t&)':
../../src/base/BStream.h:72: error: 'be64toh' was not declared in this
scope
../../src/base/BStream.h: In member function 'void
OBStream::puti64(int64_t)':
../../src/base/BStream.h:106: error: 'htobe64' was not declared in this
scope
make[3]: *** [PolyApp.o] Error 1
make[3]: Leaving directory `/opt/home/mrakhada/polygraph-4.5.0/src/app'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/home/mrakhada/polygraph-4.5.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/home/mrakhada/polygraph-4.5.0'
Am I missing a library or can you provide a patch to allow it to compile
on CentOS. I was able to successfully compile this on my desktop running
Ubuntu.
When running configure I do see this:
checking for htobe64 and be64toh... no
Regards,
Mohammed Rakhada
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.web-polygraph.org/pipermail/users/attachments/20120112/261c16bc/attachment.html>
More information about the Users
mailing list