Skip to content

Instantly share code, notes, and snippets.

@phreakazoid21
Created January 7, 2014 08:37
Show Gist options
  • Save phreakazoid21/8296352 to your computer and use it in GitHub Desktop.
Save phreakazoid21/8296352 to your computer and use it in GitHub Desktop.
Compiling Steg output.
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in jpeg-6b
gcc -O2 -I. -c -o jcapimin.o jcapimin.c
gcc -O2 -I. -c -o jcapistd.o jcapistd.c
gcc -O2 -I. -c -o jctrans.o jctrans.c
gcc -O2 -I. -c -o jcparam.o jcparam.c
gcc -O2 -I. -c -o jdatadst.o jdatadst.c
gcc -O2 -I. -c -o jcinit.o jcinit.c
gcc -O2 -I. -c -o jcmaster.o jcmaster.c
gcc -O2 -I. -c -o jcmarker.o jcmarker.c
gcc -O2 -I. -c -o jcmainct.o jcmainct.c
gcc -O2 -I. -c -o jcprepct.o jcprepct.c
gcc -O2 -I. -c -o jccoefct.o jccoefct.c
gcc -O2 -I. -c -o jccolor.o jccolor.c
gcc -O2 -I. -c -o jcsample.o jcsample.c
gcc -O2 -I. -c -o jchuff.o jchuff.c
gcc -O2 -I. -c -o jcphuff.o jcphuff.c
gcc -O2 -I. -c -o jcdctmgr.o jcdctmgr.c
gcc -O2 -I. -c -o jfdctfst.o jfdctfst.c
gcc -O2 -I. -c -o jfdctflt.o jfdctflt.c
gcc -O2 -I. -c -o jfdctint.o jfdctint.c
gcc -O2 -I. -c -o jdapimin.o jdapimin.c
gcc -O2 -I. -c -o jdapistd.o jdapistd.c
gcc -O2 -I. -c -o jdtrans.o jdtrans.c
gcc -O2 -I. -c -o jdatasrc.o jdatasrc.c
gcc -O2 -I. -c -o jdmaster.o jdmaster.c
gcc -O2 -I. -c -o jdinput.o jdinput.c
gcc -O2 -I. -c -o jdmarker.o jdmarker.c
gcc -O2 -I. -c -o jdhuff.o jdhuff.c
gcc -O2 -I. -c -o jdphuff.o jdphuff.c
gcc -O2 -I. -c -o jdmainct.o jdmainct.c
gcc -O2 -I. -c -o jdcoefct.o jdcoefct.c
gcc -O2 -I. -c -o jdpostct.o jdpostct.c
gcc -O2 -I. -c -o jddctmgr.o jddctmgr.c
gcc -O2 -I. -c -o jidctfst.o jidctfst.c
gcc -O2 -I. -c -o jidctflt.o jidctflt.c
gcc -O2 -I. -c -o jidctint.o jidctint.c
gcc -O2 -I. -c -o jidctred.o jidctred.c
gcc -O2 -I. -c -o jdsample.o jdsample.c
gcc -O2 -I. -c -o jdcolor.o jdcolor.c
gcc -O2 -I. -c -o jquant1.o jquant1.c
gcc -O2 -I. -c -o jquant2.o jquant2.c
gcc -O2 -I. -c -o jdmerge.o jdmerge.c
gcc -O2 -I. -c -o jcomapi.o jcomapi.c
gcc -O2 -I. -c -o jutils.o jutils.c
gcc -O2 -I. -c -o jerror.o jerror.c
gcc -O2 -I. -c -o jmemmgr.o jmemmgr.c
gcc -O2 -I. -c -o jmemnobs.o jmemnobs.c
rm -f libjpeg.a
ar rc libjpeg.a jcapimin.o jcapistd.o jctrans.o jcparam.o jdatadst.o jcinit.o jcmaster.o jcmarker.o jcmainct.o jcprepct.o jccoefct.o jccolor.o jcsample.o jchuff.o jcphuff.o jcdctmgr.o jfdctfst.o jfdctflt.o jfdctint.o jdapimin.o jdapistd.o jdtrans.o jdatasrc.o jdmaster.o jdinput.o jdmarker.o jdhuff.o jdphuff.o jdmainct.o jdcoefct.o jdpostct.o jddctmgr.o jidctfst.o jidctflt.o jidctint.o jidctred.o jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o jcomapi.o jutils.o jerror.o jmemmgr.o jmemnobs.o
ranlib libjpeg.a
gcc -O2 -I. -c -o cjpeg.o cjpeg.c
gcc -O2 -I. -c -o rdppm.o rdppm.c
gcc -O2 -I. -c -o rdgif.o rdgif.c
gcc -O2 -I. -c -o rdtarga.o rdtarga.c
gcc -O2 -I. -c -o rdrle.o rdrle.c
gcc -O2 -I. -c -o rdbmp.o rdbmp.c
gcc -O2 -I. -c -o rdswitch.o rdswitch.c
gcc -O2 -I. -c -o cdjpeg.o cdjpeg.c
gcc -o cjpeg cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o cdjpeg.o libjpeg.a
gcc -O2 -I. -c -o djpeg.o djpeg.c
gcc -O2 -I. -c -o wrppm.o wrppm.c
gcc -O2 -I. -c -o wrgif.o wrgif.c
gcc -O2 -I. -c -o wrtarga.o wrtarga.c
gcc -O2 -I. -c -o wrrle.o wrrle.c
gcc -O2 -I. -c -o wrbmp.o wrbmp.c
gcc -O2 -I. -c -o rdcolmap.o rdcolmap.c
gcc -o djpeg djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o cdjpeg.o libjpeg.a
gcc -O2 -I. -c -o jpegtran.o jpegtran.c
gcc -O2 -I. -c -o transupp.o transupp.c
gcc -o jpegtran jpegtran.o rdswitch.o cdjpeg.o transupp.o libjpeg.a
gcc -O2 -I. -c -o rdjpgcom.o rdjpgcom.c
gcc -o rdjpgcom rdjpgcom.o
gcc -O2 -I. -c -o wrjpgcom.o wrjpgcom.c
gcc -o wrjpgcom wrjpgcom.o
Making all in file
gcc -DHAVE_CONFIG_H -I. -I. -I. -DMAGIC='"/usr/local/share/magic"' -g -O2 -c file.c
file.c:114:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types
with different sign [-Wpointer-sign]
ret = apprentice_memory(magic_mem, strlen(magic_mem));
^~~~~~~~~
./file.h:32:47: note: passing argument to parameter 'buf' here
extern int apprentice_memory(unsigned char *buf, unsigned int size);
^
1 warning generated.
gcc -DHAVE_CONFIG_H -I. -I. -I. -DMAGIC='"/usr/local/share/magic"' -g -O2 -c apprentice.c
apprentice.c:977:14: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts
between pointers to integer types with different sign [-Wpointer-sign]
p = strchr(buf, '\n');
^~~
/usr/include/string.h:76:26: note: passing argument to parameter here
char *strchr(const char *, int);
^
apprentice.c:977:5: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to
integer types with different sign [-Wpointer-sign]
p = strchr(buf, '\n');
^ ~~~~~~~~~~~~~~~~~
apprentice.c:979:18: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts
between pointers to integer types with different sign [-Wpointer-sign]
strncpy(line, buf, BUFSIZ);
^~~
/usr/include/secure/_string.h:119:34: note: expanded from macro 'strncpy'
__builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest))
^
apprentice.c:986:18: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts
between pointers to integer types with different sign [-Wpointer-sign]
strncpy(line, buf, n);
^~~
/usr/include/secure/_string.h:119:34: note: expanded from macro 'strncpy'
__builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest))
^
apprentice.c:1189:9: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type
'uint16' (aka 'unsigned short') declared in a previous prototype [-Wknr-promoted-parameter]
uint16 sv;
^
apprentice.c:87:32: note: previous declaration is here
static uint16 swap2 __P((uint16));
^
/usr/include/sys/cdefs.h:92:21: note: expanded from macro '__P'
#define __P(protos) protos /* full-blown ANSI C */
^
5 warnings generated.
gcc -DHAVE_CONFIG_H -I. -I. -I. -DMAGIC='"/usr/local/share/magic"' -g -O2 -c fsmagic.c
fsmagic.c:211:5: warning: implicit declaration of function 'process' is invalid in C99 [-Wimplicit-function-declaration]
process(buf, strlen(buf));
^
1 warning generated.
gcc -DHAVE_CONFIG_H -I. -I. -I. -DMAGIC='"/usr/local/share/magic"' -g -O2 -c softmagic.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -DMAGIC='"/usr/local/share/magic"' -g -O2 -c ascmagic.c
ascmagic.c:147:28: warning: passing 'char [16385]' to parameter of type 'unsigned char *' converts between pointers to
integer types with different sign [-Wpointer-sign]
from_ebcdic(buf, nbytes, nbuf);
^~~~
ascmagic.c:63:73: note: passing argument to parameter here
static void from_ebcdic __P((const unsigned char *, int, unsigned char *));
^
/usr/include/sys/cdefs.h:92:21: note: expanded from macro '__P'
#define __P(protos) protos /* full-blown ANSI C */
^
ascmagic.c:149:19: warning: passing 'char [16385]' to parameter of type 'const unsigned char *' converts between pointers to
integer types with different sign [-Wpointer-sign]
if (looks_ascii(nbuf, nbytes, ubuf, &ulen)) {
^~~~
ascmagic.c:58:50: note: passing argument to parameter here
static int looks_ascii __P((const unsigned char *, int, unichar *, int *));
^
/usr/include/sys/cdefs.h:92:21: note: expanded from macro '__P'
#define __P(protos) protos /* full-blown ANSI C */
^
ascmagic.c:153:27: warning: passing 'char [16385]' to parameter of type 'const unsigned char *' converts between pointers to
integer types with different sign [-Wpointer-sign]
} else if (looks_latin1(nbuf, nbytes, ubuf, &ulen)) {
^~~~
ascmagic.c:61:51: note: passing argument to parameter here
static int looks_latin1 __P((const unsigned char *, int, unichar *, int *));
^
/usr/include/sys/cdefs.h:92:21: note: expanded from macro '__P'
#define __P(protos) protos /* full-blown ANSI C */
^
ascmagic.c:216:17: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to
integer types with different sign [-Wpointer-sign]
if (ascmatch(p->name, ubuf + i, end - i)) {
^~~~~~~
ascmagic.c:64:47: note: passing argument to parameter here
static int ascmatch __P((const unsigned char *, const unichar *, int));
^
/usr/include/sys/cdefs.h:92:21: note: expanded from macro '__P'
#define __P(protos) protos /* full-blown ANSI C */
^
4 warnings generated.
gcc -DHAVE_CONFIG_H -I. -I. -I. -DMAGIC='"/usr/local/share/magic"' -g -O2 -c compress.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -DMAGIC='"/usr/local/share/magic"' -g -O2 -c is_tar.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -DMAGIC='"/usr/local/share/magic"' -g -O2 -c readelf.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -DMAGIC='"/usr/local/share/magic"' -g -O2 -c print.c
cat ./Header ./Localstuff > magic
for frag in Magdir/adi Magdir/adventure Magdir/allegro Magdir/alliant Magdir/alpha Magdir/amanda Magdir/amigaos Magdir/animation Magdir/apl Magdir/apple Magdir/applix Magdir/archive Magdir/asterix Magdir/att3b Magdir/audio Magdir/blender Magdir/blit Magdir/bsdi Magdir/c-lang Magdir/chi Magdir/cisco Magdir/claris Magdir/clipper Magdir/commands Magdir/compress Magdir/console Magdir/convex Magdir/database Magdir/diamond Magdir/diff Magdir/digital Magdir/dump Magdir/elf Magdir/encore Magdir/epoc Magdir/filesystems Magdir/flash Magdir/fonts Magdir/frame Magdir/freebsd Magdir/fsav Magdir/gimp Magdir/gnu Magdir/grace Magdir/hp Magdir/ibm370 Magdir/ibm6000 Magdir/iff Magdir/images Magdir/intel Magdir/interleaf Magdir/island Magdir/ispell Magdir/java Magdir/jpeg Magdir/karma Magdir/lecter Magdir/lex Magdir/lif Magdir/linux Magdir/lisp Magdir/mach Magdir/macintosh Magdir/magic Magdir/mail.news Magdir/maple Magdir/mathematica Magdir/mcrypt Magdir/mime Magdir/mips Magdir/mirage Magdir/mkid Magdir/mmdf Magdir/modem Magdir/motorola Magdir/msdos Magdir/msvc Magdir/ncr Magdir/netbsd Magdir/netscape Magdir/news Magdir/octave Magdir/olf Magdir/os2 Magdir/os9 Magdir/osf1 Magdir/palm Magdir/pbm Magdir/pdf Magdir/pdp Magdir/pgp Magdir/pkgadd Magdir/plus5 Magdir/printer Magdir/project Magdir/psdbms Magdir/pyramid Magdir/python Magdir/riff Magdir/rpm Magdir/rtf Magdir/sc Magdir/sccs Magdir/sequent Magdir/sgml Magdir/sketch Magdir/sniffer Magdir/softquad Magdir/spectrum Magdir/sun Magdir/teapot Magdir/terminfo Magdir/tex Magdir/ti-8x Magdir/timezone Magdir/troff Magdir/typeset Magdir/unknown Magdir/uuencode Magdir/varied.out Magdir/vax Magdir/vicar Magdir/visx Magdir/vms Magdir/vmware Magdir/wordperfect Magdir/xdelta Magdir/xenix Magdir/zilog Magdir/zyxel; do \
if test -f ./$frag; then \
f=./$frag; \
else \
f=$frag; \
fi; \
cat $f; \
done >> magic
echo -n "\"" > magic.inc
sed -e 's/\\/\\\\/g' -e 's/"/\\\"/g' -e 's/$/\ \\/' magic >> magic.inc
sed: RE error: illegal byte sequence
make[2]: *** [magic.inc] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment