Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 116769

Summary: app-crypt/mhash-0.9.3 has no "mhash_free"
Product: Gentoo Linux Reporter: Michael Cramer <portage>
Component: [OLD] LibraryAssignee: Robin Johnson <robbat2>
Status: RESOLVED FIXED    
Severity: major CC: iyosifov
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: mhash-0.9.3-free.diff
mhash-0.9.3.ebuild

Description Michael Cramer 2005-12-26 04:06:00 UTC
upgrading to mhash-0.9.3 results in programms no longer working which uses mhash library, because mhash_free function isn't in the library. e.g. php with mhash failes, also recompiling php fails with: 
/usr/lib/libc-client.a(osdep.o): In function `ssl_onceonlyinit':
osdep.c:(.text+0xa668): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
ext/mhash/mhash.o: In function `zif_mhash':
mhash.c:(.text+0x2c2): undefined reference to `mhash_free'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Fehler 1

with the attached patch it works, perhaps someone can verify this and put the patch in portage or hard mask mhash-0.9.3
Comment 1 Michael Cramer 2005-12-26 04:06:45 UTC
Created attachment 75545 [details, diff]
mhash-0.9.3-free.diff

the patch wich includes the missing funtion, this is taken from 0.9.2
Comment 2 Michael Cramer 2005-12-26 04:07:13 UTC
Created attachment 75546 [details]
mhash-0.9.3.ebuild

changed ebuild for including the patch
Comment 3 Ivan Yosifov 2005-12-26 10:00:48 UTC
The patch works here ! Thanks and Merry Christmas !
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-12-26 19:05:38 UTC
thanks for the patch. I modified it slightly, and also submitted it to upstream.