[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.c

Compiling fics-1.7.4

Robert Hinson

5/6/2011 11:59:00 AM

I am using gcc-4.5.1-4.fc14.i686

[oppie@fedora fics.1.7.4]$ make
gcc -DLINUX -Wall -ansi -pedantic -g -c -o ficsmain.o ficsmain.c
In file included from ficsmain.c:38:0:
comproc.h:28:14: warning: type defaults to â??intâ?? in declaration of
â??noneâ??
comproc.h:29:14: warning: type defaults to â??intâ?? in declaration of
â??blitz_ratâ??
comproc.h:30:14: warning: type defaults to â??intâ?? in declaration of
â??std_ratâ??
comproc.h:31:14: warning: type defaults to â??intâ?? in declaration of
â??wild_ratâ??
comproc.h:32:14: warning: type defaults to â??intâ?? in declaration of
â??light_ratâ??
comproc.h:33:14: warning: type defaults to â??intâ?? in declaration of
â??bug_ratâ??
gcc -DLINUX -Wall -ansi -pedantic -g -c -o network.o network.c
network.c: In function â??readline2â??:
network.c:317:2: warning: pointer targets in passing argument 2 of
â??strcpyâ?? differ in signedness
/usr/include/string.h:128:14: note: expected â??const char * __restrict__â??
but argument is of type â??unsigned char *â??
network.c:361:2: warning: pointer targets in passing argument 2 of
â??strcpyâ?? differ in signedness
/usr/include/string.h:128:14: note: expected â??const char * __restrict__â??
but argument is of type â??unsigned char *â??
network.c:399:5: warning: pointer targets in passing argument 2 of
â??strcpyâ?? differ in signedness
/usr/include/string.h:128:14: note: expected â??const char * __restrict__â??
but argument is of type â??unsigned char *â??
network.c: In function â??net_initâ??:
network.c:486:3: warning: implicit declaration of function
â??getdtablesizeâ??
network.c: In function â??ngc2â??:
network.c:594:39: warning: pointer targets in passing argument 3 of
â??acceptâ?? differ in signedness
/usr/include/sys/socket.h:214:12: note: expected â??socklen_t *
__restrict__â?? but argument is of type â??int *â??
gcc -DLINUX -Wall -ansi -pedantic -g -c -o utils.o utils.c
utils.c:49:46: warning: â??struct timezoneâ?? declared inside parameter list
utils.c:49:5: error: conflicting types for â??gettimeofdayâ??
/usr/include/sys/time.h:73:12: note: previous declaration of
â??gettimeofdayâ?? was here
utils.c: In function â??openTCPâ??:
utils.c:172:11: error: â??struct hostentâ?? has no member named â??h_addrâ??
utils.c: In function â??mail_string_to_addressâ??:
utils.c:232:3: warning: implicit declaration of function â??popenâ??
utils.c:232:6: warning: assignment makes pointer from integer without a
cast
utils.c:241:3: warning: implicit declaration of function â??pcloseâ??
utils.c:193:7: warning: unused variable â??nâ??
utils.c:191:8: warning: unused variable â??filenameâ??
utils.c: In function â??mail_file_to_addressâ??:
utils.c:318:6: warning: assignment makes pointer from integer without a
cast
utils.c:265:14: warning: unused variable â??fp2â??
utils.c:263:8: warning: unused variable â??filenameâ??
utils.c: In function â??psend_commandâ??:
utils.c:642:8: warning: assignment makes pointer from integer without a
cast
utils.c:644:8: warning: assignment makes pointer from integer without a
cast
utils.c: In function â??strtimeâ??:
utils.c:823:5: warning: ISO C90 does not support the â??%eâ?? gnu_strftime
format
utils.c:823:5: warning: ISO C does not support the â??%kâ?? gnu_strftime
format
utils.c:825:5: warning: ISO C90 does not support the â??%eâ?? gnu_strftime
format
utils.c:825:5: warning: ISO C does not support the â??%kâ?? gnu_strftime
format
utils.c: In function â??fix_timeâ??:
utils.c:849:3: warning: function returns address of local variable
utils.c: In function â??tenth_secsâ??:
utils.c:870:19: error: storage size of â??tzpâ?? isnâ??t known
utils.c:870:19: warning: unused variable â??tzpâ??
make: *** [utils.o] Error 1
[oppie@fedora fics.1.7.4]$

Any pointers?



--
--
Insert coin for new game
3 Answers

Fred

5/6/2011 6:11:00 PM

0

On May 6, 4:58 am, Robert Hinson <op...@linuxassistant.com> wrote:
> I am using gcc-4.5.1-4.fc14.i686
>
> [oppie@fedora fics.1.7.4]$ make
> gcc -DLINUX    -Wall -ansi -pedantic -g     -c -o ficsmain.o ficsmain.c
> In file included from ficsmain.c:38:0:
> comproc.h:28:14: warning: type defaults to ‘int’ in declaration of
> ‘none’
> comproc.h:29:14: warning: type defaults to ‘int’ in declaration of
> ‘blitz_rat’
> comproc.h:30:14: warning: type defaults to ‘int’ in declaration of
> ‘std_rat’
> comproc.h:31:14: warning: type defaults to ‘int’ in declaration of
> ‘wild_rat’
> comproc.h:32:14: warning: type defaults to ‘int’ in declaration of
> ‘light_rat’
> comproc.h:33:14: warning: type defaults to ‘int’ in declaration of
> ‘bug_rat’
> gcc -DLINUX    -Wall -ansi -pedantic -g     -c -o network.o network.c
> network.c: In function ‘readline2’:
> network.c:317:2: warning: pointer targets in passing argument 2 of
> ‘strcpy’ differ in signedness
> /usr/include/string.h:128:14: note: expected ‘const char * __restrict__’
> but argument is of type ‘unsigned char *’
> network.c:361:2: warning: pointer targets in passing argument 2 of
> ‘strcpy’ differ in signedness
> /usr/include/string.h:128:14: note: expected ‘const char * __restrict__’
> but argument is of type ‘unsigned char *’
> network.c:399:5: warning: pointer targets in passing argument 2 of
> ‘strcpy’ differ in signedness
> /usr/include/string.h:128:14: note: expected ‘const char * __restrict__’
> but argument is of type ‘unsigned char *’
> network.c: In function ‘net_init’:
> network.c:486:3: warning: implicit declaration of function
> ‘getdtablesize’
> network.c: In function ‘ngc2’:
> network.c:594:39: warning: pointer targets in passing argument 3 of
> ‘accept’ differ in signedness
> /usr/include/sys/socket.h:214:12: note: expected ‘socklen_t *
> __restrict__’ but argument is of type ‘int *’
> gcc -DLINUX    -Wall -ansi -pedantic -g     -c -o utils.o utils.c
> utils.c:49:46: warning: ‘struct timezone’ declared inside parameter list
> utils.c:49:5: error: conflicting types for ‘gettimeofday’
> /usr/include/sys/time.h:73:12: note: previous declaration of
> ‘gettimeofday’ was here
> utils.c: In function ‘openTCP’:
> utils.c:172:11: error: ‘struct hostent’ has no member named ‘h_addr’
> utils.c: In function ‘mail_string_to_address’:
> utils.c:232:3: warning: implicit declaration of function ‘popen’
> utils.c:232:6: warning: assignment makes pointer from integer without a
> cast
> utils.c:241:3: warning: implicit declaration of function ‘pclose’
> utils.c:193:7: warning: unused variable ‘n’
> utils.c:191:8: warning: unused variable ‘filename’
> utils.c: In function ‘mail_file_to_address’:
> utils.c:318:6: warning: assignment makes pointer from integer without a
> cast
> utils.c:265:14: warning: unused variable ‘fp2’
> utils.c:263:8: warning: unused variable ‘filename’
> utils.c: In function ‘psend_command’:
> utils.c:642:8: warning: assignment makes pointer from integer without a
> cast
> utils.c:644:8: warning: assignment makes pointer from integer without a
> cast
> utils.c: In function ‘strtime’:
> utils.c:823:5: warning: ISO C90 does not support the ‘%e’ gnu_strftime
> format
> utils.c:823:5: warning: ISO C does not support the ‘%k’ gnu_strftime
> format
> utils.c:825:5: warning: ISO C90 does not support the ‘%e’ gnu_strftime
> format
> utils.c:825:5: warning: ISO C does not support the ‘%k’ gnu_strftime
> format
> utils.c: In function ‘fix_time’:
> utils.c:849:3: warning: function returns address of local variable
> utils.c: In function ‘tenth_secs’:
> utils.c:870:19: error: storage size of ‘tzp’ isn’t known
> utils.c:870:19: warning: unused variable ‘tzp’
> make: *** [utils.o] Error 1
> [oppie@fedora fics.1.7.4]$
>
> Any pointers?
>

Did you even look at the source code lines that generated the
complaints?
All of them seem to be quite obvious.

--
Fred K

jacob navia

5/6/2011 6:24:00 PM

0

Le 06/05/11 20:10, Fred a écrit :
> On May 6, 4:58 am, Robert Hinson<op...@linuxassistant.com> wrote:
>
> Did you even look at the source code lines that generated the
> complaints?
> All of them seem to be quite obvious.
>
> --
> Fred K


Look at the errors?

Try to figure out what is wrong?

Working?

You are kidding?

Just write to comp.lang.c and let somebody else work for you for free.

jacob

jacob navia

5/6/2011 6:35:00 PM

0

If you pay me my consulting fees (mail me for details)
you can get fics compiled in 24 h.

jacob at jacob dot remcomp dot fr

If not, well, you will have to work it out for yourself.
The chess server dates from 1997...