[Pkg-scicomp-devel] Bug#576896: libglpk-java does not build on kfreebsd
glpk xypron
xypron.glpk at gmx.de
Thu Sep 9 22:30:19 UTC 2010
Hello Kumar,
all aborts irrespective of architecture occur inside function
glpk_intopt() of the GLPK library.
The same routine will be called when executing
glpsol -m glpk-java-1.0.13/examples/java/marbles.mod
This will help to clarify if the observed problem is in libglpk-java.
GLPK makes use of long jumps.
See the thread starting at
http://lists.gnu.org/archive/html/help-glpk/2008-08/msg00071.html
It would be helpful to run the following program
/**
* Determination of the alignment of jmp_buf
*/
#include <stdio.h>
#include <setjmp.h>
#include <stddef.h>
/**
* Determine the alignment of jmp_buf
* @return alignment in bytes
*/
int jmp_buf_alignment()
{
#ifdef __GNUC__
static int res = __alignof__ (jmp_buf);
#else
struct t
{ char a;
jmp_buf b;
};
static int res = offsetof(struct t, b);
#endif
return res;
}
int main()
{
printf("jmp_buf is %d byte aligned\n", jmp_buf_alignment());
return 0;
}
Best regards
Xypron
--
GMX DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 für nur 19,99 Euro/mtl.!*
http://portal.gmx.net/de/go/dsl
More information about the Pkg-scicomp-devel
mailing list