Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

marceljj

macrumors newbie
Original poster
Jul 28, 2012
13
0
Erm, hello everyone, I want to make a repository for some old console applications for the iOS system. I want to use fortune-mod on my device, but it doesn't work! And before you say anything, I am aware that iOS devices use ARM processors and most computers run x86 or similar architectures; This is why I downloaded the source code. I installed iphone-gcc on my iPad; I have tested it with simple programs; it does function. I downloaded the source, ran 'make all' on it, and it seems to be compiling all right, until the end, I think. Here's the code.

*EDIT: Now that I look at it, it seems the whole compilation had errors and warnings, not just the end.*

Code:
Marcels-iPad:/proj/src/fortune-mod root# make all
cd fortune && make CC='gcc' 
                    CFLAGS='-O2 -DFORTDIR=""/usr/share/games/fortunes"" -DOFFDIR=""/usr/share/games/fortunes/off"" -DLOCFORTDIR=""/usr/local/share/games/fortunes"" -DLOCOFFDIR=""/usr/local/share/games/fortunes/off"" -Wall -fomit-frame-pointer -pipe -fsigned-char -DHAVE_REGEX_H -DBSD_REGEX -DHAVE_STDBOOL -I../util'     
                    LDFLAGS='-s' LIBS=' -lrecode'
make[1]: Entering directory `/proj/src/fortune-mod/fortune'
gcc -O2 -DFORTDIR=""/usr/share/games/fortunes"" -DOFFDIR=""/usr/share/games/fortunes/off"" -DLOCFORTDIR=""/usr/local/share/games/fortunes"" -DLOCOFFDIR=""/usr/local/share/games/fortunes/off"" -Wall -fomit-frame-pointer -pipe -fsigned-char -DHAVE_REGEX_H -DBSD_REGEX -DHAVE_STDBOOL -I../util   -c -o fortune.o fortune.c
fortune.c:143:21: error: recode.h: No such file or directory
fortune.c:255: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'request'
fortune.c:256: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'outer'
fortune.c: In function 'getargs':
fortune.c:1096: warning: implicit declaration of function 're_comp'
fortune.c:1096: warning: comparison between pointer and integer
fortune.c: In function 'matches_in_list':
fortune.c:1539: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness
fortune.c:1541: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
fortune.c:1549: warning: implicit declaration of function 'recode_string'
fortune.c:1549: error: 'request' undeclared (first use in this function)
fortune.c:1549: error: (Each undeclared identifier is reported only once
fortune.c:1549: error: for each function it appears in.)
fortune.c:1549: warning: assignment makes pointer from integer without a cast
fortune.c:1551: warning: pointer targets in assignment differ in signedness
fortune.c:1557: warning: pointer targets in assignment differ in signedness
fortune.c:1569: warning: implicit declaration of function 're_exec'
fortune.c: In function 'display':
fortune.c:1616: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness
fortune.c:1621: warning: pointer targets in assignment differ in signedness
fortune.c:1631: error: 'request' undeclared (first use in this function)
fortune.c:1631: warning: assignment makes pointer from integer without a cast
fortune.c:1636: warning: pointer targets in passing argument 1 of 'fputs' differ in signedness
fortune.c:1641: warning: implicit declaration of function 'recode_delete_request'
fortune.c: In function 'fortlen':
fortune.c:1661: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness
fortune.c:1663: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
fortune.c: In function 'main':
fortune.c:1679: error: 'outer' undeclared (first use in this function)
fortune.c:1679: warning: implicit declaration of function 'recode_new_outer'
fortune.c:1680: error: 'request' undeclared (first use in this function)
fortune.c:1680: warning: implicit declaration of function 'recode_new_request'
fortune.c:1689: warning: implicit declaration of function 'recode_scan_request'
make[1]: *** [fortune.o] Error 1
make[1]: Leaving directory `/proj/src/fortune-mod/fortune'
make: *** [fortune-bin] Error 2
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.