Welcome, Guest. Please login or register.
+  Linux Soft Forum
|-+  Cercetează» Īntrebări de bază» probleme compilare heartbeat
[Picture 161] [Picture 160] [Picture 159]
Username:
Password:
 
Pages: [1]   Go Down
  Print  
Author Topic: probleme compilare heartbeat  (Read 1683 times)
0 Members and 1 Guest are viewing this topic.
volomir
Membru
*

« on: June 26, 2008, 07:24:16 PM »

salut
dupa ce am compilat cu succes pe 2 servere cu slackware 12.0 heartbeat, pe pc-ul meu cu 12.1 nu reusesc sa compilez heartbeat-ul , ceea ce mi se pare foarte ciudat

iata eroarea pe care o primesc:

cc1: warnings being treated as errors
send_arp.c: In function 'byebye':
send_arp.c:111: warning: implicit declaration of function 'exit'
send_arp.c:111: warning: incompatible implicit declaration of built-in function 'exit'
send_arp.c: In function 'main':
send_arp.c:127: error: 'libnet_t' undeclared (first use in this function)
send_arp.c:127: error: (Each undeclared identifier is reported only once
send_arp.c:127: error: for each function it appears in.)
send_arp.c:127: error: 'l' undeclared (first use in this function)
send_arp.c:128: warning: ISO C90 forbids mixed declarations and code
send_arp.c:143: warning: implicit declaration of function 'getopt'
send_arp.c:146: warning: implicit declaration of function 'atol'
send_arp.c:146: error: 'optarg' undeclared (first use in this function)
send_arp.c:149: warning: implicit declaration of function 'atoi'
send_arp.c:160: error: 'optind' undeclared (first use in this function)
send_arp.c:184: error: 'EXIT_FAILURE' undeclared (first use in this function)
send_arp.c:212: warning: implicit declaration of function 'libnet_init'
send_arp.c:212: error: 'LIBNET_LINK' undeclared (first use in this function)
send_arp.c:214: warning: implicit declaration of function 'unlink'
send_arp.c:220: warning: implicit declaration of function 'libnet_name2addr4'
send_arp.c:230: warning: implicit declaration of function 'strcasecmp'
send_arp.c:248: warning: implicit declaration of function 'send_arp'
send_arp.c:250: error: 'ARPOP_REQUEST' undeclared (first use in this function)
send_arp.c:257: error: 'ARPOP_REPLY' undeclared (first use in this function)
send_arp.c:267: error: 'EXIT_SUCCESS' undeclared (first use in this function)
send_arp.c: In function 'convert_macaddr':
send_arp.c:287: warning: implicit declaration of function 'strtol'
send_arp.c: In function 'get_hw_addr':
send_arp.c:323: error: 'libnet_t' undeclared (first use in this function)
send_arp.c:323: error: 'ln' undeclared (first use in this function)
send_arp.c:324: warning: ISO C90 forbids mixed declarations and code
send_arp.c:326: error: 'LIBNET_LINK' undeclared (first use in this function)
send_arp.c:332: warning: implicit declaration of function 'libnet_get_hwaddr'
send_arp.c:332: warning: assignment makes pointer from integer without a cast
send_arp.c:338: warning: implicit declaration of function 'memcpy'
send_arp.c:338: warning: incompatible implicit declaration of built-in function 'memcpy'
send_arp.c:338: error: dereferencing pointer to incomplete type
send_arp.c: At top level:
send_arp.c:461: error: expected ')' before '*' token
send_arp.c: In function 'create_pid_directory':
send_arp.c:529: error: storage size of 'stat_buf' isn't known
send_arp.c:533: warning: implicit declaration of function 'strdup'
send_arp.c:533: warning: incompatible implicit declaration of built-in function 'strdup'
send_arp.c:536: warning: implicit declaration of function 'strerror'
send_arp.c:536: error: 'errno' undeclared (first use in this function)
send_arp.c:536: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
send_arp.c:542: warning: implicit declaration of function 'stat'
send_arp.c:544: error: 'ENOENT' undeclared (first use in this function)
send_arp.c:544: error: 'ENOTDIR' undeclared (first use in this function)
send_arp.c:546: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
send_arp.c:547: warning: implicit declaration of function 'free'
send_arp.c:552: warning: implicit declaration of function 'S_ISDIR'
send_arp.c:561: warning: implicit declaration of function 'mkdir'
send_arp.c:561: error: 'S_IRUSR' undeclared (first use in this function)
send_arp.c:561: error: 'S_IWUSR' undeclared (first use in this function)
send_arp.c:561: error: 'S_IXUSR' undeclared (first use in this function)
send_arp.c:561: error: 'S_IRGRP' undeclared (first use in this function)
send_arp.c:561: error: 'S_IXGRP' undeclared (first use in this function)
send_arp.c:563: error: 'EEXIST' undeclared (first use in this function)
send_arp.c:568: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
send_arp.c:529: warning: unused variable 'stat_buf'
send_arp.c: In function 'write_pid_file':
send_arp.c:598: warning: implicit declaration of function 'open'
send_arp.c:598: error: 'O_CREAT' undeclared (first use in this function)
send_arp.c:598: error: 'O_EXCL' undeclared (first use in this function)
send_arp.c:598: error: 'O_RDWR' undeclared (first use in this function)
send_arp.c:599: error: 'S_IRUSR' undeclared (first use in this function)
send_arp.c:599: error: 'S_IWUSR' undeclared (first use in this function)
send_arp.c:601: error: 'errno' undeclared (first use in this function)
send_arp.c:601: error: 'EEXIST' undeclared (first use in this function)
send_arp.c:604: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
send_arp.c:612: error: 'O_RDONLY' undeclared (first use in this function)
send_arp.c:616: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
send_arp.c:621: warning: implicit declaration of function 'read'
send_arp.c:623: error: 'EINTR' undeclared (first use in this function)
send_arp.c:628: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
send_arp.c:638: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
send_arp.c:645: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
send_arp.c:649: warning: implicit declaration of function 'close'
send_arp.c:651: warning: implicit declaration of function 'strtoul'
send_arp.c:652: error: 'ERANGE' undeclared (first use in this function)
send_arp.c:655: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
send_arp.c:659: error: 'ESRCH' undeclared (first use in this function)
send_arp.c:662: warning: format '%s' expects type 'char *', but argument 5 has type 'int'
send_arp.c:671: warning: implicit declaration of function 'getpid'
send_arp.c:677: warning: implicit declaration of function 'write'
send_arp.c:677: warning: implicit declaration of function 'strlen'
send_arp.c:677: warning: incompatible implicit declaration of built-in function 'strlen'
send_arp.c:684: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
gmake[2]: *** [send_arp.o] Error 1
gmake[2]: Leaving directory `/home/nightaddix/heartbeat-2.1.3/heartbeat/libnet_util'
gmake[1]: *** [install-recursive] Error 1
gmake[1]: Leaving directory `/home/nightaddix/heartbeat-2.1.3/heartbeat'
make: *** [install-recursive] Error 1
ok , am inteles faza : " cc1: warnings being treated as errors " , dar nu ma descurc in Makefile sa dezactivez asta ... ceva idei ?
multumesc anticipat
Logged
wonder
Veteran
**


WWW
« Reply #1 on: June 26, 2008, 08:08:47 PM »

ce gcc folosesti? presupun ca e 4.3. trebuie sa adaugi niste #include-uri

http://gcc.gnu.org/gcc-4.3/porting_to.html
« Last Edit: June 26, 2008, 08:10:36 PM by wonder » Logged

Give what you have. To someone, it may be better than you dare to think.
My blog wonder.rodp.net
volomir
Membru
*

« Reply #2 on: June 28, 2008, 06:15:25 PM »

salut

merci wonder pentru link, banuiesc ca aia era problema dar nu m-am priceput ce trebuie sa includ ...

asa ca am facut altfel ...

am intrat pe server, mi-am impachetat sursele sub format .tgz ( pachetul slackware ), si l-am instalat pe pc-ul meu

e ok
merci
p.s. poate imi spui ce trebuia sa includ, ca sigur voi mai compila din surse :D Ranjeste fasolea
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: