Package: libfltk1.3-dev
Version: 1.3.3-5
Severity: important

Hi Maintainer

Since the upload of fltk1.3 1.3.3-5, the package p4vasp FTBFS (bug #809712).

Comparing the build logs I found a difference in the link stage as follows.

With fltk1.3 1.3.3-4:

g++ -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -shared -L. -o _cp4vasp.so cp4vasp_wrap.o -lp4vasp -L../odpdom -lODP -lfltk_gl -lfltk -lX11 -lGLU -lGL -lm -lpthread

With fltk1.3 1.3.3-5:

g++ -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -shared -L. -o _cp4vasp.so cp4vasp_wrap.o -lp4vasp -L../odpdom -lODP -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -lfltk_gl -lfltk -lX11 -lGLU -lGL -lm -lpthread

Notice the additional flags that have appeared between '-lODP' and '-lfltk_gl'.

In particular, the addition of '-fPIE -pie' causes the p4vasp build to fail as follows:

/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
cp4vasp_wrap.o: In function `SWIG_Python_ErrorType(int)':
/home/ginggs/debian-packages/p4vasp/p4vasp-0.3.29+dfsg/src/cp4vasp_wrap.cpp:1022: undefined reference to `PyExc_RuntimeError' /home/ginggs/debian-packages/p4vasp/p4vasp-0.3.29+dfsg/src/cp4vasp_wrap.cpp:992: undefined reference to `PyExc_IOError' /home/ginggs/debian-packages/p4vasp/p4vasp-0.3.29+dfsg/src/cp4vasp_wrap.cpp:989: undefined reference to `PyExc_MemoryError'
...

Flags are set during p4vasp's build in src/Configuration.mk:
LIBS= -L../odpdom -lODP $(shell fltk-config --use-gl --ldflags) -lGLU -lGL -lm -lpthread CFLAGS= -g -O0 -fpic -Wall $(FLAGS) $(shell fltk-config --cxxflags) -I$(PYINCLUDE) \
        -Iinclude -I../odpdom/include

Downgrading the fltk1-3 packages to 1.3.3-4 allowed p4vasp to build normally again.

Regards
Graham

Reply via email to