Page 1 of 1

help compiling GCMtool

Posted: Mon Sep 21, 2015 12:22 pm
by avrano1
I get errors running "make" for any GCMtool version.

Code: Select all

user@user-SATELLITE:~/Downloads/gcmtool-0.3.2/src$ make
make  all-am
make[1]: Entering directory '/home/user/Downloads/gcmtool-0.3.2/src'
source='GCMDiskHeader.c' object='GCMDiskHeader.o' libtool=no \
depfile='.deps/GCMDiskHeader.Po' tmpdepfile='.deps/GCMDiskHeader.TPo' \
depmode=gcc3 /bin/bash ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c `test -f 'GCMDiskHeader.c' || echo './'`GCMDiskHeader.c
GCMDiskHeader.c: In function ‘GCMRawDiskHeaderToStruct’:
GCMDiskHeader.c:160:34: error: lvalue required as increment operand
  h->unknown1 = *((u32*)rawHeader)++;
                                  ^
GCMDiskHeader.c:168:44: error: lvalue required as increment operand
  h->debugMonitorOffset = *((u32*)rawHeader)++;
                                            ^
GCMDiskHeader.c:171:45: error: lvalue required as increment operand
  h->debugMonitorAddress = *((u32*)rawHeader)++;
                                             ^
GCMDiskHeader.c:176:35: error: lvalue required as increment operand
  h->dolOffset = *((u32*)rawHeader)++;
                                   ^
GCMDiskHeader.c:179:35: error: lvalue required as increment operand
  h->fstOffset = *((u32*)rawHeader)++;
                                   ^
GCMDiskHeader.c:182:34: error: lvalue required as increment operand
  h->fstSize  = *((u32*)rawHeader)++;
                                  ^
GCMDiskHeader.c:185:38: error: lvalue required as increment operand
  h->fstSizeMax   = *((u32*)rawHeader)++;
                                      ^
GCMDiskHeader.c:188:38: error: lvalue required as increment operand
  h->userPosition = *((u32*)rawHeader)++;
                                      ^
GCMDiskHeader.c:191:38: error: lvalue required as increment operand
  h->userLength   = *((u32*)rawHeader)++;
                                      ^
GCMDiskHeader.c:194:35: error: lvalue required as increment operand
  h->unknown2  = *((u32*)rawHeader)++;
                                   ^
Makefile:256: recipe for target 'GCMDiskHeader.o' failed
make[1]: *** [GCMDiskHeader.o] Error 1
make[1]: Leaving directory '/home/user/Downloads/gcmtool-0.3.2/src'
Makefile:163: recipe for target 'all' failed
make: *** [all] Error 2

What other options are there for linux?

Re: help compiling GCMtool

Posted: Mon Sep 21, 2015 10:57 pm
by megalomaniac
try gcc 3.2.3 or gcc 3.3

Re: help compiling GCMtool

Posted: Tue Sep 22, 2015 7:45 am
by novenary
Try the attached source files with version 0.3.2. Compiles with GCC 5.2, untested though.

Re: help compiling GCMtool

Posted: Wed Sep 30, 2015 5:07 pm
by capzlk
i forked the original source code because i had the same issues. my fork seems to work, so might be worth a look.
https://github.com/capz/gcmtools-osx

I'm a mac guy so i've only tested it on that, but the changes I've made should compile on any platform and any compiler