Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Patch needed to compile steghide 0.5.1 with GCC 4.3.5 on Linux.
- (Includes http://www.freebsd.org/cgi/cvsweb.cgi/ports/security/steghide/files/ )
- Index: Makefile.in
- ===================================================================
- --- Makefile.in 2003-10-15 13:31:28.000000000 +0530
- +++ Makefile.in 2010-09-06 19:55:08.000000000 +0530
- @@ -161,7 +161,7 @@ AUTOMAKE_OPTIONS = dist-bzip2 dist-zip
- SUBDIRS = m4 intl po doc src tests
- docdir = $(prefix)/share/doc/$(PACKAGE)
- EXTRA_DIST = config.rpath mkinstalldirs ABOUT-NLS BUGS CREDITS HISTORY LEAME depcomp
- -doc_DATA = ABOUT-NLS BUGS COPYING CREDITS HISTORY INSTALL LEAME README TODO
- +doc_DATA = BUGS CREDITS HISTORY LEAME README TODO
- MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess config.h.in \
- config.sub configure depcomp install-sh missing mkinstalldirs steghide.doxygen steghide.spec
- Index: src/AuData.h
- ===================================================================
- --- src/AuData.h 2003-09-28 21:00:29.000000000 +0530
- +++ src/AuData.h 2010-09-06 19:55:08.000000000 +0530
- @@ -26,22 +26,30 @@
- // AuMuLawAudioData
- typedef AudioDataImpl<AuMuLaw,BYTE> AuMuLawAudioData ;
- +template<>
- inline BYTE AuMuLawAudioData::readValue (BinaryIO* io) const { return (io->read8()) ; }
- +template<>
- inline void AuMuLawAudioData::writeValue (BinaryIO* io, BYTE v) const { io->write8(v) ; }
- // AuPCM8AudioData
- typedef AudioDataImpl<AuPCM8,SBYTE> AuPCM8AudioData ;
- +template<>
- inline SBYTE AuPCM8AudioData::readValue (BinaryIO* io) const { return ((SBYTE) io->read8()) ; }
- +template<>
- inline void AuPCM8AudioData::writeValue (BinaryIO* io, SBYTE v) const { io->write8((BYTE) v) ; }
- // AuPCM16AudioData
- typedef AudioDataImpl<AuPCM16,SWORD16> AuPCM16AudioData ;
- +template<>
- inline SWORD16 AuPCM16AudioData::readValue (BinaryIO* io) const { return ((SWORD16) io->read16_be()) ; }
- +template<>
- inline void AuPCM16AudioData::writeValue (BinaryIO* io, SWORD16 v) const { io->write16_be((UWORD16) v) ; }
- // AuPCM32AudioData
- typedef AudioDataImpl<AuPCM32,SWORD32> AuPCM32AudioData ;
- +template<>
- inline SWORD32 AuPCM32AudioData::readValue (BinaryIO* io) const { return ((SWORD32) io->read32_be()) ; }
- +template<>
- inline void AuPCM32AudioData::writeValue (BinaryIO* io, SWORD32 v) const { io->write32_be((UWORD32) v) ; }
- #endif // ndef SH_AUDATA_H
- Index: src/MHashPP.h
- ===================================================================
- --- src/MHashPP.h 2003-09-28 21:00:30.000000000 +0530
- +++ src/MHashPP.h 2010-09-06 19:55:08.000000000 +0530
- @@ -21,6 +21,7 @@
- #ifndef SH_MHASHPP_H
- #define SH_MHASHPP_H
- +#define _Bool bool
- #include <mhash.h>
- #include "common.h"
- Index: src/Makefile.in
- ===================================================================
- --- src/Makefile.in 2003-10-15 13:31:29.000000000 +0530
- +++ src/Makefile.in 2010-09-06 19:55:08.000000000 +0530
- @@ -190,7 +190,7 @@ WavChunkHeader.cc WavChunkUnused.cc WavF
- WavPCMSampleValue.cc error.cc main.cc msg.cc SMDConstructionHeuristic.cc
- localedir = $(datadir)/locale
- -LIBTOOL = $(SHELL) libtool
- +LIBTOOL = $(SHELL) /usr/bin/libtool
- MAINTAINERCLEANFILES = Makefile.in
- subdir = src
- mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
- @@ -278,7 +278,7 @@ LTCXXCOMPILE = $(LIBTOOL) --mode=compile
- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
- $(AM_CXXFLAGS) $(CXXFLAGS)
- CXXLD = $(CXX)
- -CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
- +CXXLINK = $(LIBTOOL) --mode=link --tag=CXX $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
- $(AM_LDFLAGS) $(LDFLAGS) -o $@
- DIST_SOURCES = $(steghide_SOURCES)
- HEADERS = $(noinst_HEADERS)
- Index: src/AuSampleValues.cc
- ===================================================================
- --- src/AuSampleValues.cc 2003-09-28 21:00:30.000000000 +0530
- +++ src/AuSampleValues.cc 2010-09-06 19:55:08.000000000 +0530
- @@ -21,17 +21,17 @@
- #include "AuSampleValues.h"
- // AuMuLawSampleValue
- -const BYTE AuMuLawSampleValue::MinValue = 0 ;
- -const BYTE AuMuLawSampleValue::MaxValue = BYTE_MAX ;
- +template<> const BYTE AuMuLawSampleValue::MinValue = 0 ;
- +template<> const BYTE AuMuLawSampleValue::MaxValue = BYTE_MAX ;
- // AuPCM8SampleValue
- -const SBYTE AuPCM8SampleValue::MinValue = SBYTE_MIN ;
- -const SBYTE AuPCM8SampleValue::MaxValue = SBYTE_MAX ;
- +template <> const SBYTE AuPCM8SampleValue::MinValue = SBYTE_MIN ;
- +template <> const SBYTE AuPCM8SampleValue::MaxValue = SBYTE_MAX ;
- // AuPCM16SampleValue
- -const SWORD16 AuPCM16SampleValue::MinValue = SWORD16_MIN ;
- -const SWORD16 AuPCM16SampleValue::MaxValue = SWORD16_MAX ;
- +template <> const SWORD16 AuPCM16SampleValue::MinValue = SWORD16_MIN ;
- +template <> const SWORD16 AuPCM16SampleValue::MaxValue = SWORD16_MAX ;
- // AuPCM32SampleValue
- -const SWORD32 AuPCM32SampleValue::MinValue = SWORD32_MIN ;
- -const SWORD32 AuPCM32SampleValue::MaxValue = SWORD32_MAX ;
- +template <> const SWORD32 AuPCM32SampleValue::MinValue = SWORD32_MIN ;
- +template <> const SWORD32 AuPCM32SampleValue::MaxValue = SWORD32_MAX ;
- Index: src/MHashPP.cc
- ===================================================================
- --- src/MHashPP.cc 2003-10-05 15:47:50.000000000 +0530
- +++ src/MHashPP.cc 2010-09-06 19:55:08.000000000 +0530
- @@ -21,6 +21,7 @@
- #include <cstdlib>
- #include <string>
- +#define _Bool bool
- #include <mhash.h>
- #include "BitString.h"
- @@ -120,7 +121,7 @@ std::string MHashPP::getAlgorithmName ()
- 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>") ;
- Index: src/MHashKeyGen.h
- ===================================================================
- --- src/MHashKeyGen.h 2003-09-28 21:00:30.000000000 +0530
- +++ src/MHashKeyGen.h 2010-09-06 19:55:08.000000000 +0530
- @@ -23,6 +23,7 @@
- #include <vector>
- +#define _Bool bool
- #include <mhash.h>
- class MHashKeyGen {
- Index: src/Graph.cc
- ===================================================================
- --- src/Graph.cc 2003-10-12 03:24:26.000000000 +0530
- +++ src/Graph.cc 2010-09-06 19:55:08.000000000 +0530
- @@ -23,6 +23,8 @@
- #include <map>
- #include <vector>
- +#include <limits.h>
- +
- #include "BitString.h"
- #include "CvrStgFile.h"
- #include "Edge.h"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement