Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178134 - app-crypt/steghide emerge fails - simple gcc-4.1 issue
Summary: app-crypt/steghide emerge fails - simple gcc-4.1 issue
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2007-05-12 01:50 UTC by Jochen Schlick
Modified: 2007-05-12 04:11 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jochen Schlick 2007-05-12 01:50:28 UTC
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 Ryan Hill (RETIRED) gentoo-dev 2007-05-12 04:11:26 UTC
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.