Package: elmerfem
Version: FTBFS with binutils-gold
Severity: minor
Tags: patch
User: peter.fritzs...@gmx.de
Usertags: no-add-needed

Hi, looks like there are still some binutils-gold issues remaining,
causing FTBFS on Ubuntu natty, e.g.

g++  -g -O2 -I/tmp/buildd/elmerfem-5.5.0.svn.4716.dfsg/debian/tmp/usr/include 
-I/usr/include/freetype2 -fPIC -I/usr/include -pthread -pthread 
-I/usr/include/tk8.5 -I/usr/include/tc
l8.5  -Wl,-Bsymbolic-functions -o ElmerFront ecif_body2D.o ecif_body3D.o 
ecif_body.o ecif_bodyElement1D.o ecif_bodyElement2D.o ecif_bodyElement3D.o 
ecif_bodyElement.o ecif_bodyElem
entGroup.o ecif_bodyElementLoop.o ecif_bodyForce.o ecif_bodyLayer.o 
ecif_bodyParameter.o ecif_boundaryCondition.o ecif_boundaryParameter.o 
ecif_boundbox.o ecif_calculator.o ecif_co
nstant.o ecif_const.o ecif_control.o ecif_coordinate.o ecif_datafile.o 
ecif_def_trx.o ecif_equation.o ecif_equationVariables.o ecif_func.o 
ecif_geometry.o ecif_gridH.o ecif_gridPar
ameter.o ecif_initialCondition.o ecif_inputAbaqus.o ecif_input.o 
ecif_inputEgf.o ecif_inputElmer.o ecif_inputEmf.o ecif_inputFidap.o 
ecif_inputFront.o ecif_inputIdeas.o ecif_inputI
deasWF.o ecif_inputIges.o ecif_inputThetis.o ecif_main.o ecif_material.o 
ecif_mesh.o ecif_model_aux.o ecif_model.o ecif_modelMeshManager.o 
ecif_modelObject.o ecif_modelOutputManage
r.o ecif_modelParameter.o ecif_nurbs.o ecif_parameter.o ecif_parameterField.o 
ecif_process.o ecif_renderer.o ecif_renderer_OGL.o ecif_simulationParameter.o 
ecif_solverControl.o eci
f_solver.o ecif_timer.o ecif_timestep.o ecif_userinterface_TCL.o frontlib.o 
ecif_userSettings.o  -ldl -lstdc++ -lm 
-L/tmp/buildd/elmerfem-5.5.0.svn.4716.dfsg/debian/tmp/usr/lib -L/
usr/lib  -lmatc -leioc -ldl -lstdc++ -lm 
-L/tmp/buildd/elmerfem-5.5.0.svn.4716.dfsg/debian/tmp/usr/lib -L/usr/lib  -lGL  
-lm -lGLU -lGL  -lm -L/usr/lib -ltk8.5 -ltcl8.5
/usr/bin/ld: ecif_renderer_OGL.o: undefined reference to symbol 
'XSetStandardProperties'
/usr/bin/ld: note: 'XSetStandardProperties' is defined in DSO 
/usr/lib64/libX11.so.6 so try adding it to the linker command line
/usr/lib64/libX11.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status

Patch attached.

SR

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_ZA.UTF-8, LC_CTYPE=en_ZA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Description: Explicitly link to all required libraries for binutils-gold.
Author: Stefano Rivera <stef...@rivera.za.net>
Last-Update: 2010-11-08
--- a/front/configure.in
+++ b/front/configure.in
@@ -45,6 +45,7 @@
 
 AC_CHECK_LIB(stdc++, main)
 AC_CHECK_LIB(dl, main)
+AC_CHECK_LIB(X11, XGetErrorText)
 
 LIBS="$LIBS $MATC_LIBS $EIOC_LIBS $LIBS $GL_LIBS $GLU_LIBS $TCLTK_LIBS"
 ACX_PLATFORM_DEFS
--- a/post/configure.in
+++ b/post/configure.in
@@ -50,6 +50,7 @@
 sinclude(acx_gl.m4)
 ACX_CHECK_GL
 ACX_CHECK_GLU
+AC_CHECK_LIB(X11, XGetErrorText)
 ACX_TCLTK([],[AC_MSG_ERROR([Tcl/tk not found, use TCLTK_LIBS environment variable or --with-tcltk="-L/path/to/ -ltcl8.4 -ltk8.4" to point to it's location.])])
 CPPFLAGS="$CPPFLAGS $TCLTK_INCLUDE"
 
--- a/ElmerGUI/ElmerGUI.pri
+++ b/ElmerGUI/ElmerGUI.pri
@@ -77,9 +77,21 @@
 unix {
    VTK_INCLUDEPATH = /usr/include/vtk-5.4
    VTK_LIBPATH = /usr/lib
-   VTK_LIBS = -lvtkHybrid \
-              -lvtkWidgets \
-    	      -lQVTK
+   VTK_LIBS = -lQVTK \
+              -lvtkCommon \
+              -lvtkDICOMParser \
+              -lvtkFiltering \
+              -lvtkGenericFiltering \
+              -lvtkGraphics \
+              -lvtkHybrid \
+              -lvtkIO \
+              -lvtkImaging \
+              -lvtkInfovis \
+              -lvtkNetCDF \
+              -lvtkRendering \
+              -lvtkViews \
+              -lvtkVolumeRendering \
+              -lvtkWidgets
 }
 
 win32 {
@@ -129,7 +141,23 @@
 unix {
    OCC_INCLUDEPATH = /usr/include/opencascade
    OCC_LIBPATH = /usr/lib
-   OCC_LIBS = -lTKBRep -lTKSTL -lTKSTEP -lTKIGES
+   OCC_LIBS = -lTKSTL \
+              -lTKBRep \
+              -lTKernel \
+              -lTKG2d \
+              -lTKG3d \
+              -lTKGeomAlgo \
+              -lTKGeomBase \
+              -lTKMath \
+              -lTKMesh \
+              -lTKShHealing \
+              -lTKSTEP \
+              -lTKSTEP209 \
+              -lTKSTEPAttr \
+              -lTKSTEPBase \
+              -lTKIGES \
+              -lTKTopAlgo \
+              -lTKXSBase
 }
 
 win32 {

Reply via email to