Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 246414 - sci-chemistry/ghemical-2.95: GThread initialization error
Summary: sci-chemistry/ghemical-2.95: GThread initialization error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Chemistry-Related Packages
URL:
Whiteboard: patch and ebuild available
Keywords: InOverlay
Depends on:
Blocks:
 
Reported: 2008-11-11 16:38 UTC by Reinis Danne
Modified: 2010-06-21 14:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
a patch for GThreads initialization (ghemical-2.95-g_threads.patch,553 bytes, patch)
2008-11-11 16:44 UTC, Reinis Danne
Details | Diff
an ebuild based on the one in bug 212689 and previously posted patch (ghemical-2.95.ebuild,1.79 KB, text/plain)
2008-11-11 16:46 UTC, Reinis Danne
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Reinis Danne 2008-11-11 16:38:44 UTC
When running ghemical-2.95 compiled with threads enabled the following error occurs:
GThread-ERROR **: GThread system may only be initialized once.
aborting...
Comment 1 Reinis Danne 2008-11-11 16:44:16 UTC
Created attachment 171437 [details, diff]
a patch for GThreads initialization

Moved g_thread_init(NULL) and gdk_threads_init() at the beginning of main() so that there are no other GTK or GLib functions called before them.

This corrects it for my system.
Comment 2 Reinis Danne 2008-11-11 16:46:56 UTC
Created attachment 171439 [details]
an ebuild based on the one in bug 212689 and previously posted patch
Comment 3 Reinis Danne 2008-11-11 16:53:10 UTC
$ emerge --info
Portage 2.1.4.5 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r6 x86_64 Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz
Timestamp of tree: Tue, 11 Nov 2008 09:45:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r14, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.linux.ee/pub/gentoo/distfiles/ ftp://ftp.linux.ee/pub/gentoo/distfiles/ "
LANG="lv_LV.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="lv en"
MAKEOPTS="-s -j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X a52 aac aalib acl acpi alsa amd64 avahi avi bash-completion berkdb bluethooth bluetooth branding bzip2 cairo cdparanoia cdr cli cracklib crypt css cups dbus divx dri dv dvd dvdr dvdread eds emboss encode esd evo fam ffmpeg flac fortran freetype gdbm gif gnome gnutls gpm gstreamer gtk gtk2 hal iconv ieee1394 ipv6 isdnlog java jpeg kerberos lame ldap libnotify live lm_sensors mad matroska midi mikmod mjpeg mmx mp3 mpeg mudflap multilib ncurses networkmanager nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pcmcia pcre pdf perl png ppds pppd python qt3support quicktime rar readline reflection sdl session spell spl sse sse2 sse3 ssl ssse3 startup-notification subversion svg sysfs tcl tcpd theora tiff tk truetype udev unicode usb v4l vcd vorbis wifi wmf x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="via82xx hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" FOO2ZJS_DEVICES="hp1018" INPUT_DEVICES="evdev keyboard mouse synaptic" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="lv en" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Reinis Danne 2009-02-21 00:13:44 UTC
Added to science overlay
(Not needed for 2.98 anymore)
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2010-06-21 14:34:19 UTC
*ghemical-2.99.2 (21 Jun 2010)

  21 Jun 2010; Justin Lecher <jlec@gentoo.org> +files/2.99.2-docs.patch,
  -ghemical-2.10.ebuild, -ghemical-2.95.ebuild, -ghemical-2.98.ebuild,
  +ghemical-2.99.2.ebuild:
  Version Bump, fixing bug 212689, 232292, 246414, thanks rei4dan for working
  on patches, Cleaned old buggy versions, Fixed wrong path for html installation