<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>74579</bug_id>
          
          <creation_ts>2004-12-15 18:15 0000</creation_ts>
          <short_desc>sci-calculators/galculator-1.2.4 segfault</short_desc>
          <delta_ts>2005-05-09 09:00:24 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://galculator.sourceforge.net/downloads.html</bug_file_loc>
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>vanquirius@gentoo.org</reporter>
          <assigned_to>gnome@gentoo.org</assigned_to>
          <cc>kenyon@kenyonralph.com</cc>
    
    <cc>lack@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>vanquirius@gentoo.org</who>
            <bug_when>2004-12-15 18:15:24 0000</bug_when>
            <thetext>The last version of galculator available on Portage is 1.2.3. The last version is 1.2.4. I tested renaming the ebuild and it worked. Please update.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kenyon@kenyonralph.com</who>
            <bug_when>2005-01-14 12:07:08 0000</bug_when>
            <thetext>I can confirm, I just renamed the ebuild and sci-calculators/galculator-1.2.4 is working fine here on ~x86.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>phosphan@gentoo.org</who>
            <bug_when>2005-03-12 15:56:08 0000</bug_when>
            <thetext>Was assigned to wrong herd...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>allanonjl@gentoo.org</who>
            <bug_when>2005-05-01 16:21:00 0000</bug_when>
            <thetext>bumped in tree</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>oliver@schinagl.nl</who>
            <bug_when>2005-05-02 16:03:39 0000</bug_when>
            <thetext>Don&apos;t know what you guys did with this ebuild, but it suddenly no longer works after doing an emerge -avuD world.

(galculator:21983): libglade-WARNING **: could not find signal handler &apos;on_dec_activate&apos;.
&lt;snip&gt;
(galculator:22079): libglade-WARNING **: could not find signal handler &apos;on_mplus_button_clicked&apos;.

(galculator:22079): libglade-CRITICAL **: glade_xml_get_widget: assertion `self != NULL&apos; failed
Segmentation fault


(Yes libglade was also updated ... So i guess I&apos;ll post this bug there aswell?) I&apos;ll try a reboot (sounds pathetic I know) to maybe remove an old version from memory maybe.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vanquirius@gentoo.org</who>
            <bug_when>2005-05-03 06:54:57 0000</bug_when>
            <thetext>Reopening bug on account of comment #4.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>allanonjl@gentoo.org</who>
            <bug_when>2005-05-03 19:12:50 0000</bug_when>
            <thetext>a new bug should have been opened for this, not reopened since this bug was about a version bump.

are you having issues with the bump vanquirius? 

or did you reopen purely b/c of comment 4?

Can node repost with whether ~ galculator build works for him after his reboot?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vanquirius@gentoo.org</who>
            <bug_when>2005-05-04 11:40:33 0000</bug_when>
            <thetext>I reopened the bug solely on account of comment #4.
node, please open a new bug next time, it is easier for us to track.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lack@gentoo.org</who>
            <bug_when>2005-05-04 13:35:03 0000</bug_when>
            <thetext>I experienced the same problem in &apos;glurp&apos; after upgrading libglade and other packages.  I found a fix for glurp (Bug 91482) and I assume the galculator fix should be similar - Just make sure that &apos;-export-dynamic&apos; is being passed to the linker.

If I have time I may write a patch/new ebuild for this.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lack@gentoo.org</who>
            <bug_when>2005-05-04 14:15:56 0000</bug_when>
            <thetext>Created an attachment (id=58068)
Patch against galculator-1.2.4 which adds &apos;-export-dynamic&apos; to the linker

This patch is for use with the galculator-1.2.4-r1.ebuild also attached to this
bug.  It should go in sci-calculators/galculator/files/</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lack@gentoo.org</who>
            <bug_when>2005-05-04 14:16:49 0000</bug_when>
            <thetext>Created an attachment (id=58069)
New ebuild which uses the export-dynamic.patch

This ebuild requires the patch also attached to this bug.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lack@gentoo.org</who>
            <bug_when>2005-05-04 14:18:02 0000</bug_when>
            <thetext>This fix works for me.  Galculator can work again.

I have also submitted my patch to galculator-general@lists.sourceforge.net</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>allanonjl@gentoo.org</who>
            <bug_when>2005-05-04 14:26:05 0000</bug_when>
            <thetext>I have no problems running the version bumped galculator.  What version is libglade for you?  Are you running anything else unstable?  Have you tried re-merging the package after you upgraded the libglade / other things ?  As always, please provide your emerge info.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lack@gentoo.org</who>
            <bug_when>2005-05-04 14:41:12 0000</bug_when>
            <thetext>As you can see from the following &apos;emerge info&apos; I am running ~x86 with latest GCC and everything.  My libglade version is 2.5.1.  I did try downgrading libglade to both 2.4.2 and 2.4.0 with no change in galculator&apos;s behaviour.  I also tried an earlier compiler (gcc-3.3.5) also with no effect.

I&apos;m not sure which package (of the many I recently upgraded with &apos;emerge -uD world&apos;) would have been the cause, but I expected either libglade or gcc.  By adding the &apos;-export-dynamic&apos; flag to the linker with my patch, the problem went away.

emerge info:

Portage 2.0.51.21 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0,                           2.6.11-gentoo-r1 i686)
=================================================================
System uname: 2.6.11-gentoo-r1 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.11
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.3
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=i686 -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share                          /config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/                          mozilla/defaults/pref /usr/share/config /var /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -march=i686 -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig distlocks sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://gentoo.binarycompass.org ftp://cs.ubishops.ca/pub/gentoo                           ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/ ftp://gentoo.risq.qc.ca/&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 X aac alsa apache2 apm avi berkdb bitmap-fonts cdr cjk crypt cups curl                           eds emboss encode esd fam flac foomaticdb fortran gd gdbm gif gimpprint gnome gp                          m gstreamer gtk gtk2 imagemagick imap imlib java jpeg kde ldap libg++ libwww mad                           mikmod mmx mmx2 motif mozilla mp3 mpeg mysql ncurses nls nptl ogg oggvorbis ope                          ngl oss pam pdflib perl php png python qt quicktime readline real samba sasl sdl                           spell sse ssl svga tcltk tcpd threads tiff truetype truetype-fonts type1-fonts                           vorbis xml2 xprint xv zlib userland_GNU kernel_linux libc_glibc&quot;
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>foser@gentoo.org</who>
            <bug_when>2005-05-05 04:38:09 0000</bug_when>
            <thetext>what version of pkgconfig are you using ? If it&apos;s 0.17 then go back to 0.15 and try rebuild libglade/galculator with that.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lack@gentoo.org</who>
            <bug_when>2005-05-05 06:56:58 0000</bug_when>
            <thetext>pkg-config --version returns:
0.15.0</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lack@gentoo.org</who>
            <bug_when>2005-05-05 14:53:21 0000</bug_when>
            <thetext>Recieved email from Simon Floery (via galculator-general@lists.sourceforge.net):

&gt; Thanks a lot for your contribution! From time to time this problem
&gt; arose in the past but no user, who encountered it, was able to track it down.
&gt; I asked someone who recently reported this problem to try your patch and
&gt; everything works fine now.
&gt;
&gt; I&apos;ll update the build process and kick out a new release of galculator ASAP.

The fix I submitted shouldn&apos;t affect the basic gentoo ebuild, so the next version bump should get this fixed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>allanonjl@gentoo.org</who>
            <bug_when>2005-05-05 16:10:50 0000</bug_when>
            <thetext>great, thanks for contacting upstream.  i&apos;ll keep an eye out for the new release upstream, if you see it first, please post here.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>allanonjl@gentoo.org</who>
            <bug_when>2005-05-07 08:36:31 0000</bug_when>
            <thetext>okay, heres *hopefully* a good fix for both galculator and glurp.  foser did some research and found a good thread that describes the problem more in detail:
http://mail.gnome.org/archives/desktop-devel-list/2005-January/msg00037.html

foser made good comments and suggested this patch.

Jim, if you could test this patch against galculator, that would be great.  Please post back with the results.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>allanonjl@gentoo.org</who>
            <bug_when>2005-05-07 08:37:50 0000</bug_when>
            <thetext>Created an attachment (id=58273)
galculator gmodule patch
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lack@gentoo.org</who>
            <bug_when>2005-05-09 08:07:26 0000</bug_when>
            <thetext>This patch also works perfectly, no complaints here.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>allanonjl@gentoo.org</who>
            <bug_when>2005-05-09 08:23:56 0000</bug_when>
            <thetext>okay, a new bug was filed today for the new version of galculator, so i will be testing / committing that shortly.  Also, in the new version it looks like they incorporated your patch, but I think that the one I previously attached is a better way of doing it.  Either way, with the new version, the patch should not be needed.  Thanks for testing!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lack@gentoo.org</who>
            <bug_when>2005-05-09 08:34:36 0000</bug_when>
            <thetext>I think either solution is valid.  It&apos;s now up to the software developer to include the &apos;-export-dynamic&apos; in cases like this, so whether they do it by explicitly asking pkg-config to provide &apos;gmodule-2.0&apos; instead of &apos;gmodule-no-export-2.0&apos; (your patch), or by explicitly specifying &apos;-export-dynamic&apos; in their own LDFLAGS (my patch), the right thing happens.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>allanonjl@gentoo.org</who>
            <bug_when>2005-05-09 09:00:24 0000</bug_when>
            <thetext>committed 1.2.5</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>58068</attachid>
            <date>2005-05-04 14:15 0000</date>
            <desc>Patch against galculator-1.2.4 which adds &apos;-export-dynamic&apos; to the linker</desc>
            <filename>export-dynamic.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtdSBzcmMvTWFrZWZpbGUuYW0ub3JpZyBzcmMvTWFrZWZpbGUuYW0KLS0tIHNyYy9NYWtl
ZmlsZS5hbS5vcmlnCTIwMDUtMDUtMDQgMTQ6NDE6MDMuMDAwMDAwMDAwIC0wNjAwCisrKyBzcmMv
TWFrZWZpbGUuYW0JMjAwNS0wNS0wNCAxNDo0MTo0NC4wMDAwMDAwMDAgLTA2MDAKQEAgLTIyLDMg
KzIyLDQgQEAKIAogZ2FsY3VsYXRvcl9MREFERCA9IEBQQUNLQUdFX0xJQlNACiAKK2dhbGN1bGF0
b3JfTERGTEFHUyA9IC1leHBvcnQtZHluYW1pYwo=
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>58069</attachid>
            <date>2005-05-04 14:16 0000</date>
            <desc>New ebuild which uses the export-dynamic.patch</desc>
            <filename>galculator-1.2.4-r1.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDA1IEdlbnRvbyBGb3VuZGF0aW9uCiMgRGlzdHJpYnV0ZWQgdW5k
ZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSB2MgojICRIZWFk
ZXI6IC92YXIvY3Zzcm9vdC9nZW50b28teDg2L3NjaS1jYWxjdWxhdG9ycy9nYWxjdWxhdG9yL2dh
bGN1bGF0b3ItMS4yLjQuZWJ1aWxkLHYgMS4xIDIwMDUvMDUvMDEgMjM6MTk6MjcgYWxsYW5vbmps
IEV4cCAkCgpERVNDUklQVElPTj0iQSBHVEsyIGJhc2VkIGFsZ2VicmFpYyBhbmQgUlBOIGNhbGN1
bGF0b3IiCkhPTUVQQUdFPSJodHRwOi8vZ2FsY3VsYXRvci5zb3VyY2Vmb3JnZS5uZXQvIgpTUkNf
VVJJPSJtaXJyb3I6Ly9zb3VyY2Vmb3JnZS8ke1BOfS8ke1B9LnRhci5iejIiCkxJQ0VOU0U9IkdQ
TC0yIgpTTE9UPSIwIgoKS0VZV09SRFM9In54ODYgfmFtZDY0IH5hbHBoYSIKSVVTRT0iIgoKUkRF
UEVORD0iPj14MTEtbGlicy9ndGsrLTEuMy4xMwoJPj1nbm9tZS1iYXNlL2xpYmdsYWRlLTIiCgpE
RVBFTkQ9IiR7UkRFUEVORH0KCWRldi11dGlsL3BrZ2NvbmZpZyIKCmluaGVyaXQgZXV0aWxzCgpz
cmNfdW5wYWNrKCkgewoJdW5wYWNrICR7QX0KCWNkICR7U30KCWVwYXRjaCAke0ZJTEVTRElSfS9l
eHBvcnQtZHluYW1pYy5wYXRjaAoJYXV0b21ha2UgfHwgZGllICJhdXRvbWFrZSBmYWlsZWQiCn0K
CnNyY19jb21waWxlKCkgewoJZWNvbmYgfHwgZGllCgllbWFrZSB8fCBkaWUKfQoKc3JjX2luc3Rh
bGwoKSB7CgllaW5zdGFsbCB8fCBkaWUKCglkb2RvYyBBQk9VVC1OTFMgQVVUSE9SUyBDaGFuZ2VM
b2cgQ09QWUlORyBORVdTIFJFQURNRSBUSEFOS1MgVE9ETwp9Cg==
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>58273</attachid>
            <date>2005-05-07 08:37 0000</date>
            <desc>galculator gmodule patch</desc>
            <filename>galculator-1.2.4-gmodule.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGdhbGN1bGF0b3ItMS4yLjQvY29uZmlndXJlLmluCTIwMDQtMTAtMTcgMTE6Mzk6MzEuMDAw
MDAwMDAwIC0wNDAwCisrKyBnYWxjdWxhdG9yLTEuMi40Lm5ldy9jb25maWd1cmUuaW4JMjAwNS0w
NS0wNyAxMTowNToxMC4zNTI5MDc2MDggLTA0MDAKQEAgLTEyLDcgKzEyLDcgQEAKIAogQUNfSEVB
REVSX1NUREMKIAotcGtnX21vZHVsZXM9Imd0aystMi4wID49IDEuMy4xMyBsaWJnbGFkZS0yLjAg
Pj0gMi4wLjAiCitwa2dfbW9kdWxlcz0iZ3RrKy0yLjAgPj0gMS4zLjEzIGxpYmdsYWRlLTIuMCA+
PSAyLjAuMCBnbW9kdWxlLTIuMCA+PSAyLjYiCiBQS0dfQ0hFQ0tfTU9EVUxFUyhQQUNLQUdFLCBb
JHBrZ19tb2R1bGVzXSkKIEFDX1NVQlNUKFBBQ0tBR0VfQ0ZMQUdTKQogQUNfU1VCU1QoUEFDS0FH
RV9MSUJTKQo=
</data>        

          </attachment>
    </bug>

</bugzilla>