Bug 178134 - app-crypt/steghide emerge fails - simple gcc-4.1 issue
Bug#: 178134 Product:  Gentoo Linux Version: 2007.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: bug-wranglers@gentoo.org Reported By: josch09@gmail.com
Component: Applications
URL: 
Summary: app-crypt/steghide emerge fails - simple gcc-4.1 issue
Keywords:  
Status Whiteboard: 
Opened: 2007-05-12 01:50 0000
Description:   Opened: 2007-05-12 01:50 0000
Hi 
I'm totally new to gentoo and this is my very first bug report. 
This compile bug doesn't depend on the platform, because I remember that I had
to fix this bug in February for my homebrewed Fedora32/OpenSuse64-RPMs.  

############################################################

/usr/include/mutils/mhash_config.h:228:1: warning: this is the location of the
previous definition
MHashPP.cc: In static member function 'static std::string
MHashPP::getAlgorithmName(hashid)':
MHashPP.cc:123: error: invalid conversion from 'uint8_t*' to 'char*'
make[2]: *** [MHashPP.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/var/tmp/portage/app-crypt/steghide-0.5.1/work/steghide-0.5.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/app-crypt/steghide-0.5.1/work/steghide-0.5.1'
make: *** [all] Error 2

!!! ERROR: app-crypt/steghide-0.5.1 failed.
Call stack:
  ebuild.sh, line 1615:   Called dyn_compile
  ebuild.sh, line 972:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  steghide-0.5.1.ebuild, line 29:   Called die

!!! make failed
!!! If you need support, post the topmost build error, and the call stack if
relevant.
!!! A complete build log is located at
'/var/tmp/portage/app-crypt/steghide-0.5.1/temp/build.log'.



########################################################################

Here the quick and dirty fix:



diff -ur steghide-0.5.1.org/src/MHashPP.cc steghide-0.5.1/src/MHashPP.cc
--- steghide-0.5.1.org/src/MHashPP.cc   2003-10-05 12:17:50.000000000 +0200
+++ steghide-0.5.1/src/MHashPP.cc       2007-02-20 02:21:56.000000000 +0100
@@ -120,7 +120,7 @@

 std::string MHashPP::getAlgorithmName (hashid id)
 {
-       char *name = mhash_get_hash_name (id) ;
+  char *name = (char*)(mhash_get_hash_name (id)) ;
        std::string retval ;
        if (name == NULL) {
                retval = std::string ("<algorithm not found>") ;

------- Comment #1 From Ryan Hill 2007-05-12 04:11:26 0000 -------
welcome to gentoo ;)

thanks for the report.  i've applied your patch to steghide-0.5.1.  it should
hit the mirrors in about an hour.