Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 19:07

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Problem with GCC, Ubuntu 9.04
PostPosted: 20 Jun 2009 20:40 

Joined: 08 Jun 2008 07:17
Posts: 92
Hi, I use ubuntu 9.04 I want to modify ventrilofp

But first I wanted to make sure that I can compile it and this is what I do;
Code:
gcc -o ventrilofplinux '/home/jd/Desktop/ventrilofp/ventrilofp.c' '/home/jd/Desktop/ventrilofp/mybrute.c' '/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c'




This is the error I get

Code:
jd@Super:~$ gcc -o ventrilofplinux '/home/jd/Desktop/ventrilofp/ventrilofp.c' '/home/jd/Desktop/ventrilofp/mybrute.c' '/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c'
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:59: error: expected specifier-qualifier-list before ???u32???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:70: warning: excess elements in struct initializer
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:70: warning: (near initialization for ???ventrilo3_auth[0]???)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:70: warning: excess elements in struct initializer
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:70: warning: (near initialization for ???ventrilo3_auth[0]???)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:70: warning: excess elements in struct initializer
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:70: warning: (near initialization for ???ventrilo3_auth[0]???)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:71: warning: excess elements in struct initializer
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:71: warning: (near initialization for ???ventrilo3_auth[1]???)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:71: warning: excess elements in struct initializer
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:71: warning: (near initialization for ???ventrilo3_auth[1]???)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:71: warning: excess elements in struct initializer
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:71: warning: (near initialization for ???ventrilo3_auth[1]???)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:72: warning: excess elements in struct initializer
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:72: warning: (near initialization for ???ventrilo3_auth[2]???)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:72: warning: excess elements in struct initializer
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:72: warning: (near initialization for ???ventrilo3_auth[2]???)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:72: warning: excess elements in struct initializer
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:72: warning: (near initialization for ???ventrilo3_auth[2]???)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:73: warning: excess elements in struct initializer
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:73: warning: (near initialization for ???ventrilo3_auth[3]???)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:73: warning: excess elements in struct initializer
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:73: warning: (near initialization for ???ventrilo3_auth[3]???)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:73: warning: excess elements in struct initializer
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:73: warning: (near initialization for ???ventrilo3_auth[3]???)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:74: warning: excess elements in struct initializer
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:74: warning: (near initialization for ???ventrilo3_auth[4]???)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:74: error: ???NULL??? undeclared here (not in a function)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:74: warning: excess elements in struct initializer
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:74: warning: (near initialization for ???ventrilo3_auth[4]???)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:74: warning: excess elements in struct initializer
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:74: warning: (near initialization for ???ventrilo3_auth[4]???)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:79: error: expected declaration specifiers or ???...??? before ???u8???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:79: error: expected declaration specifiers or ???...??? before ???u8???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:80: error: expected declaration specifiers or ???...??? before ???u32???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:80: error: expected declaration specifiers or ???...??? before ???u32???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:80: error: expected declaration specifiers or ???...??? before ???u16???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:80: error: expected declaration specifiers or ???...??? before ???u8???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:81: error: expected declaration specifiers or ???...??? before ???u8???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:82: error: expected ???)??? before ???*??? token
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:83: error: expected ???)??? before ???*??? token
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:88: error: expected ???)??? before ???*??? token
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:107: error: expected ???)??? before ???ip???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:162: error: expected declaration specifiers or ???...??? before ???u8???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:162: error: expected declaration specifiers or ???...??? before ???u8???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c: In function ???ventrilo3_hdr_udp???:
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:163: error: ???u8??? undeclared (first use in this function)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:163: error: (Each undeclared identifier is reported only once
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:163: error: for each function it appears in.)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:163: error: expected ???;??? before ???ecx???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:165: warning: incompatible implicit declaration of built-in function ???memset???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:165: error: ???buff??? undeclared (first use in this function)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:168: error: ???ecx??? undeclared (first use in this function)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:189: error: ???pck??? undeclared (first use in this function)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:201: warning: incompatible implicit declaration of built-in function ???memcpy???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c: At top level:
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:211: error: expected declaration specifiers or ???...??? before ???u32???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:211: error: expected declaration specifiers or ???...??? before ???u32???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:211: error: expected declaration specifiers or ???...??? before ???u16???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:211: error: expected declaration specifiers or ???...??? before ???u8???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c: In function ???ventrilo3_send_udp???:
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:212: error: storage size of ???peer??? isn???t known
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:214: error: ???u8??? undeclared (first use in this function)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:214: error: expected ???;??? before ???tmp???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:216: error: ???tmp??? undeclared (first use in this function)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:216: error: ???key??? undeclared (first use in this function)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:221: error: ???data??? undeclared (first use in this function)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:224: error: ???ip??? undeclared (first use in this function)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:225: error: ???port??? undeclared (first use in this function)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:226: error: ???AF_INET??? undeclared (first use in this function)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:228: warning: incompatible implicit declaration of built-in function ???printf???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:228: warning: format ???%s??? expects type ???char *???, but argument 2 has type ???int???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:229: error: invalid application of ???sizeof??? to incomplete type ???struct sockaddr_in???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c: At top level:
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:235: error: expected declaration specifiers or ???...??? before ???u8???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c: In function ???ventrilo3_recv_udp???:
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:236: error: storage size of ???peer??? isn???t known
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:237: error: ???u32??? undeclared (first use in this function)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:237: error: expected ???;??? before ???key???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:241: error: ???u8??? undeclared (first use in this function)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:241: error: expected ???;??? before ???tmp???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:244: error: invalid application of ???sizeof??? to incomplete type ???struct sockaddr_in???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:245: error: ???data??? undeclared (first use in this function)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:249: error: ???key??? undeclared (first use in this function)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:250: error: ???ventrilo3_auth_t??? has no member named ???key???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:251: error: ???ventrilo3_auth_t??? has no member named ???host???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:252: error: ???ventrilo3_auth_t??? has no member named ???key???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:259: error: ???tmp??? undeclared (first use in this function)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c: At top level:
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:271: error: expected ???)??? before ???*??? token
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:287: error: expected ???)??? before ???*??? token
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c: In function ???v3timeout???:
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:301: error: storage size of ???tout??? isn???t known
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:302: error: ???fd_set??? undeclared (first use in this function)
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:302: error: expected ???;??? before ???fd_read???
/home/jd/Desktop/ventrilofp/ventrilo3_handshake.c:306: error: ???fd_read??? undeclared (first use in this function)
jd@Super:~$



I didn't modify anything yet.


Top
 Profile  
 
 
 Post subject: Re: Problem with GCC, Ubuntu 9.04
PostPosted: 20 Jun 2009 21:04 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
simple, remove ventrilo3_handshake.c from the gcc command-line.
ventrilo3_handshake.c is already linked inside ventrilofp.c so it's handled like a .h


Top
 Profile  
 
 Post subject: Re: Problem with GCC, Ubuntu 9.04
PostPosted: 20 Jun 2009 21:08 

Joined: 08 Jun 2008 07:17
Posts: 92
Thanks it worked


I'll just post the code incase someone else needs it sometime


you type

Code:
gcc -o ventrilofp4linux ventrilofp.c mybrute.c


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: