bncsutil does not compile in Linux
GoogleCodeExporter opened this issue · 3 comments
GoogleCodeExporter commented
The 'configure' script for building on Linux is broken (did it ever work?).
As such, there is no way to build a version of bncsutil for Linux.
Original issue reported on code.google.com by john.led...@gmail.com
on 22 Jul 2008 at 8:05
GoogleCodeExporter commented
Original comment by john.led...@gmail.com
on 22 Jul 2008 at 10:13
- Added labels: Usability
GoogleCodeExporter commented
I've tried compilin this under OS X 10.5.6 which would be fairly close to
linux. I can try it on my Ubuntu
machine as well. The main problem here on my OS X machine is that its 64-bit
and the default compiler
options are for 32 bit.
A problem here is that libgmp (GNU MP) must be compiled as 64 bit on OS X and
as such I must compile
BNCSUtil as 64 bit, which i also did successfully after using the CFLAGS and
CXXFLAGS "-m64"
I cannot get a test program to compile though, as i get the following message
from the linker:
Undefined symbols:
"_bncsutil_debug_message", referenced from:
_main in ccljODIr.o
ld: symbol(s) not found
This is only after changing mutil.h to reflect the following change:
#if (!defined(BIGENDIAN)) && (!defined(LITTLEENDIAN))
#if MUTIL_CPU_PPC
#define BIGENDIAN 1
#define LITTLEENDIAN 0
#elif MUTIL_CPU_X86
#define LITTLEENDIAN 1
#define BIGENDIAN 0
#else
#define MUTIL_CPU_X86 1
#define LITTLEENDIAN 1
//#error Unable to determine byte order, define BIGENDIAN or LITTLEENDIAN.
#endif
because the preprocessor cannot determine endianness or cpu type on my OS X
system.
My compiled OS X binaries are attached for bncsutil.
Original comment by kunick...@gmail.com
on 3 Mar 2009 at 3:52
Attachments:
carlbennett commented
I am able to compile it just fine on Fedora 23 x86_64.