[Pkg-scicomp-devel] update: paraview works on i386, but FTBFS on amd64

Ondrej Certik ondrej at certik.cz
Sun Feb 17 12:07:43 UTC 2008


Hi,

as of svn r2155, paraview builds on i386 and it seems to work. I am
only worried about this change:

> @@ -33,6 +33,10 @@
>         -mkdir -p debian/paraview/usr/share/doc/paraview
>         -rm -rf debian/paraview/usr/share/doc/paraview/html
>         -mv debian/paraview/usr/bin/Documentation/ debian/paraview/usr/share/doc/paraview/html
> +       -mv debian/paraview/usr/include/paraview-3.2/ debian/paraview/usr/include/paraview
> +       -mv debian/paraview/usr/lib/paraview-3.2/ debian/paraview/usr/lib/paraview

^^^^ How is paraview able to find those files, when they are simply
moved? I think we need to change the PV_INSTALL_LIB_DIR variable:

CMake/ParaViewCommon.cmake:  SET(PV_INSTALL_LIB_DIR
${PV_INSTALL_ROOT}/lib/paraview-${PARAVIEW_VERSION})

like this:

-DPV_INSTALL_LIB_DIR=/lib/paraview

don't we?


On amd64, the build fails due to some missing -fPIC (usuall problem on 64bits):

/usr/bin/g++  -fPIC -O2 -Wno-deprecated  -shared
-Wl,-soname,libvtkCommonPython.so -o ../../bin/libvtkCommonPython.so
"CMakeFiles/vtkCommonPython.dir/vtkCommonPythonInit.o"
-L/home/ondra/debian/packages/build-area/paraview-3.2.1/obj-x86_64-linux-gnu/bin
-Wl,-Bstatic -lvtkCommonPythonD -lvtkRendering -lvtkImaging -lvtkIO
-lvtkDICOMParser -lvtkNetCDF -lvtkmetaio -lvtksqlite -lvtkpng
-lvtktiff -lvtkzlib -lvtkjpeg -lvtkexpat -Wl,-Bdynamic -lavcodec
-lavformat -lavutil -Wl,-Bstatic -lvtkftgl -lvtkfreetype -Wl,-Bdynamic
-lGL -Wl,-Bstatic -lvtkGraphics -lvtkFiltering -lvtkCommon -lvtksys
-Wl,-Bdynamic -lpthread -ldl -Wl,-Bstatic -lverdict -Wl,-Bdynamic -lm
-lXt -lSM -lICE -lX11 -lXext
-Wl,-rpath,/home/ondra/debian/packages/build-area/paraview-3.2.1/obj-x86_64-linux-gnu/bin
/usr/bin/ld: /home/ondra/debian/packages/build-area/paraview-3.2.1/obj-x86_64-linux-gnu/bin/libvtkCommonPythonD.a(vtkAbstractArrayPython.o):
relocation R_X86_64_32 against `a local symbol' can not be used when
making a shared object; recompile with -fPIC
/home/ondra/debian/packages/build-area/paraview-3.2.1/obj-x86_64-linux-gnu/bin/libvtkCommonPythonD.a:
could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [bin/libvtkCommonPython.so] Error 1



It seems it's related to some python things, because paraview builds
fine on amd64 without python.

Ondrej



More information about the Pkg-scicomp-devel mailing list