[Debichem-devel] Bug#713649: gdis: FTBFS: gdis.h:269:18: fatal error: glib.h: No such file or directory

gregor herrmann gregoa at debian.org
Sat Jul 13 15:34:57 UTC 2013


Control: tag -1 + patch

On Sun, 07 Jul 2013 15:24:22 +0200, gregor herrmann wrote:

> > > Package 'pangox', required by 'GdkGLExt', not found
> > > In file included from main.c:37:0:
> > > gdis.h:269:18: fatal error: glib.h: No such file or directory
> > >  #include <glib.h>
> > >                   ^
> > > compilation terminated.
> > > make[2]: *** [main.o] Error 1
> 
> This seems to be fixed by the former blocking bugs being closed, now
> it fails with:
> 
> cc main.o model.o coords.o connect.o matrix.o module.o task.o type.o measure.o parse.o edit.o elem.o select.o surface.o analysis.o spatial.o render.o numeric.o project.o grid.o molsurf.o hirshfeld.o zone.o contents.o quaternion.o zmatrix.o library.o geometry.o space.o sginfo.o sgclib.o sgio.o error.o scan.o camera.o defect.o colourlib.o crystal_graph.o mdi.o mesch.o mesch_core.o host.o job.o command.o undo.o count.o ff.o ff_gulp.o test.o file.o file_cif.o file_gulp.o file_gmf.o file_marvin.o file_xtl.o file_arc.o file_xyz.o file_fdf.o file_gms.o file_diff.o file_xml.o file_abinit.o file_pdb.o file_povray.o file_nwchem.o file_castep.o file_gauss.o file_rietica.o file_geomview.o file_cssr.o file_cel.o file_dmol.o file_dlpoly.o file_bgf.o file_cgf.o file_dlp.o file_gromacs.o file_meta.o gui_main.o gui_canvas.o gui_shorts.o gl_main.o gl_primitives.o gl_stereo.o gl_graph.o gl_varray.o gui_gulp.o gui_siesta.o gui_render.o gui_mdi.o gui_animate.o gui_edit.o gui_surface.o gui_analysis.o gui_defect.o gui_molsurf.o gui_diffract.o gui_gms.o gui_library.o gui_setup.o gui_gperiodic.o gui_space.o gui_measure.o gui_symmetry.o gui_zmatrix.o gui_dialog.o gui_tree.o gui_task.o gui_help.o gui_monty.o gui_job.o dock.o image.o gui_grid.o -Wl,--as-needed -o gdis `pkg-config --libs gtk+-2.0 gthread-2.0 gtkglext-1.0 gmodule-2.0`
> /usr/bin/ld: gui_symmetry.o: undefined reference to symbol 'floor@@GLIBC_2.2.5'
> /lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
> collect2: error: ld returned 1 exit status
> make[2]: *** [gdis] Error 1

I'm attaching a patch that seems to fix this issue, too.


Cheers,
gregor


-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Penelope Swales: Strange Hands
-------------- next part --------------
diff -Nru gdis-0.90/debian/changelog gdis-0.90/debian/changelog
--- gdis-0.90/debian/changelog	2012-05-02 00:23:42.000000000 +0200
+++ gdis-0.90/debian/changelog	2013-07-13 17:31:21.000000000 +0200
@@ -1,3 +1,14 @@
+gdis (0.90-4.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Fix "FTBFS: gdis.h:269:18: fatal error: glib.h: No such file or
+    directory":
+    make build dependency on libgtkglext1-dev versioned.
+    (Closes: #713649)
+  * Add "-lm" to LDLIBS in debian_make.patch (next FTBFS).
+
+ -- gregor herrmann <gregoa at debian.org>  Sat, 13 Jul 2013 17:24:12 +0200
+
 gdis (0.90-4) unstable; urgency=low
 
   * makefile.debian: Moved into debian/patches/debian_make.patch.
diff -Nru gdis-0.90/debian/control gdis-0.90/debian/control
--- gdis-0.90/debian/control	2012-05-02 00:23:34.000000000 +0200
+++ gdis-0.90/debian/control	2013-07-13 17:25:33.000000000 +0200
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debichem Team <debichem-devel at lists.alioth.debian.org>
 Uploaders: Daniel Leidert (dale) <daniel.leidert at wgdd.de>
-Build-Depends: debhelper (>> 7.0.50~), libgtkglext1-dev, libgtk2.0-dev
+Build-Depends: debhelper (>> 7.0.50~), libgtkglext1-dev (>= 1.2.0-3.1), libgtk2.0-dev
 Standards-Version: 3.9.3
 Homepage: http://gdis.sourceforge.net
 Vcs-Browser: http://svn.debian.org/wsvn/debichem/unstable/gdis/
diff -Nru gdis-0.90/debian/patches/debian_make.patch gdis-0.90/debian/patches/debian_make.patch
--- gdis-0.90/debian/patches/debian_make.patch	2012-05-02 00:23:34.000000000 +0200
+++ gdis-0.90/debian/patches/debian_make.patch	2013-07-13 17:30:39.000000000 +0200
@@ -7,7 +7,7 @@
 +CFLAGS ?= -g -Wall -O2
 +
 +override CFLAGS += `pkg-config --cflags gtk+-2.0 gthread-2.0 gtkglext-1.0 gmodule-2.0`
-+override LDLIBS += `pkg-config --libs gtk+-2.0 gthread-2.0 gtkglext-1.0 gmodule-2.0`
++override LDLIBS += `pkg-config --libs gtk+-2.0 gthread-2.0 gtkglext-1.0 gmodule-2.0` -lm
 +
 +USE_GUI = YES
 +override CFLAGS += -DWITH_GUI
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/debichem-devel/attachments/20130713/b45e50c5/attachment.sig>


More information about the Debichem-devel mailing list