Noobs69 | Merci tpierron pour ton aide, mais j'avais bien précisé que je ne maitrisais pas du tout les makefile.
Bon, on a évolué, mais visiblement mon environnement n'est pas bien adapté à cette compilation ET POURTANT je souhaite continuer ainsi, alors que dois encore adapter pour que ça marche ?
J'ai bien modifié le makefile comme proposé et ainsi appris que CPPFLAGS s'intéresse au pre-compilateur (alors que CXXFLAGS au C++, tu parles d'une bonne blague). J'ai aussi modifier le reste de la compilation pour tenir compte de CPPFLAGS, est-ce bon ?
Code :
- ...
- CPPFLAGS = -I/usr/include
- ...
- %.o: %.c zlibc.h config.h sysincludes.h params.h
- $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
- compile_config: $(CO_OBJECTS)
- $(CC) $(CPPFLAGS) $(CFLAGS) -s -o $@ $(CO_OBJECTS)
- %.c: %.sample compile_config
- ./compile_config $< >$@
- uncompress.so: $(OBJECTS)
- $(CC) -o $@ $(CFLAGS) $(CPPFLAGS) $(SHAREDCFLAGS) $(OBJECTS) $(LIBS) -lc
- aix-uncompress.so: $(OBJECTS) aix-syscall.shr.o
- $(CC) -o $@ $(CFLAGS) $(CPPFLAGS) $(SHAREDCFLAGS) $(OBJECTS) -lc $(AIXLDFAGS)
- ...
|
Résultat :
Code :
- $ make
- /usr/local/cross/gcc-3.3.4_glibc-2.3.2/arm-linux/bin/gcc -I/usr/include -g -O2
- -O4 -Wall -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -Di686 -Dpc -Dcygwin -
- I. -I. -fpic -c open.c
- In file included from sysincludes.h:45,
- from open.c:10:
- /usr/include/stdlib.h:110: warning: `__warning__' attribute directive ignored
- /usr/include/stdlib.h:117: warning: `__warning__' attribute directive ignored
- In file included from sysincludes.h:62,
- from open.c:10:
- /usr/include/sys/param.h:33:1: warning: "MAXPATHLEN" redefined
- In file included from /usr/include/unistd.h:4,
- from sysincludes.h:42,
- from open.c:10:
- /usr/include/sys/unistd.h:497:1: warning: this is the location of the previous d
- efinition
- In file included from /usr/include/dirent.h:6,
- from sysincludes.h:107,
- from open.c:10:
- /usr/include/sys/dirent.h:19: warning: #pragma pack(push[, id], <n> ) is not supp
- orted on this target
- /usr/include/sys/dirent.h:24: error: syntax error before "__ino64_t"
- /usr/include/sys/dirent.h:24: warning: no semicolon at end of struct or union
- /usr/include/sys/dirent.h:29: error: syntax error before '}' token
- /usr/include/sys/dirent.h:30: warning: #pragma pack(pop[, id], <n> ) is not suppo
- rted on this target
- /usr/include/sys/dirent.h:36: warning: #pragma pack(push[, id], <n> ) is not supp
- orted on this target
- /usr/include/sys/dirent.h:50: warning: #pragma pack(pop[, id], <n> ) is not supp
- rted on this target
- In file included from /usr/include/sys/wait.h:15,
- from sysincludes.h:140,
- from open.c:10:
- /usr/include/sys/resource.h:76: error: syntax error before "id_t"
- /usr/include/sys/resource.h:77: error: syntax error before "id_t"
- open.c: In function `open64':
- open.c:32: error: `O_LARGEFILE' undeclared (first use in this function)
- open.c:32: error: (Each undeclared identifier is reported only once
- open.c:32: error: for each function it appears in.)
- open.c: In function `open':
- open.c:91: warning: implicit declaration of function `syscall'
- open.c:91: error: `SYS_open' undeclared (first use in this function)
- open.c:264: error: `SYS_unlink' undeclared (first use in this function)
- open.c:309: error: `SYS_chmod' undeclared (first use in this function)
- open.c: In function `fopen':
- open.c:358: warning: implicit declaration of function `zlib_real_fopen'
- open.c:358: warning: assignment makes pointer from integer without a cast
- open.c: In function `fopen64':
- open.c:383: warning: implicit declaration of function `zlib_real_fopen64'
- open.c:383: warning: assignment makes pointer from integer without a cast
- make: *** [open.o] Error 1
|
|