[xcrysden] Segmentation fault on FreeBSD/amd64

Michael mike.d.ft402 at gmail.com
Thu Sep 18 09:18:13 CEST 2014


Afternoon,

I'm trying to compile and run XCrysDen on FreeBSD/amd64, with NVIDIA driver.
It dies with SIGSEGV. GDB output:

Program received signal SIGSEGV, Segmentation fault.
[Switching to LWP 100125]
0x000000080162cebc in glXCreateNewContext () from /usr/local/lib/libGL.so.1
(gdb) bt
#0  0x000000080162cebc in glXCreateNewContext () from /usr/local/lib/libGL.so.1
#1  0x00000008006d1691 in r_debug_state () from /libexec/ld-elf.so.1
#2  0x00000008006d0d27 in __tls_get_addr () from /libexec/ld-elf.so.1
#3  0x00000008006cf089 in .text () from /libexec/ld-elf.so.1
#4  0x0000000000000000 in ?? ()

Make.sys:

CC	= gcc47
FC	= gfortran47
CFLAGS=	-g -ffast-math -funroll-loops -fPIC -DUSE_FONTS -pedantic -Wall
CFLAGS+= -DUSE_INTERP_RESULT
FFLAGS=	-fdefault-double-8 -fdefault-real-8 -O2

MATH		= -lm -lc
X_LIB		= -lXmu -lX11
TCL_LIB		= -ltcl86
TK_LIB		= -ltk86
GLU_LIB		= -lGLU
GL_LIB		= -lGL
FFTW3_LIB	= -lfftw3

TCL_INCDIR	= -I/usr/local/include/tcl8.6
TK_INCDIR	= -I/usr/local/include/tk8.6

During compilation I notice abundance of those (may that be relevant?):

xcBz.c: In function 'BzRenderBZ':
xcBz.c:871:4: warning: passing argument 4 of 'info.proc' from incompatible pointer type [enabled by default]

What could be wrong?


More information about the XCrySDen mailing list