It is currently Sun Sep 22, 2019 10:15 am


All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: error compiling latest version of iouyap
PostPosted: Tue Jul 08, 2014 11:29 am 
Offline

Joined: Thu Apr 10, 2014 8:58 pm
Posts: 30
I am getting errors compiling the latest version of IOUYAP any ideas?

[email protected]:~/Downloads/GNS3A_070814/iouyap-master$ gcc -Wall -g *.c -o iouyap -liniparser -lpthread
config.c:21:23: fatal error: iniparser.h: No such file or directory
#include <iniparser.h>
^
compilation terminated.
iouyap.c:40:23: fatal error: iniparser.h: No such file or directory
#include <iniparser.h>
^
compilation terminated.
lex.yy.c: In function ‘yylex’:
lex.yy.c:673:1: warning: label ‘find_rule’ defined but not used [-Wunused-label]
find_rule: /* we branch to this label when backing up */
^
netmap_scan.l: At top level:
lex.yy.c:1645:14: warning: ‘yy_flex_realloc’ defined but not used [-Wunused-function]
static void *yy_flex_realloc( void *ptr, yy_size_t size )
^
lex.yy.c:1172:12: warning: ‘input’ defined but not used [-Wunused-function]
static int input()
^
netmap.c: In function ‘dump_port_table’:
netmap.c:372:7: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘size_t’ [-Wformat=]
log_fmt ("%d:%d/%d talks to %d other node(s):\n", yap_appl_id,
^
[email protected]:~/Downloads/GNS3A_070814/iouyap-master$




Top
 Profile  
 
 Post subject: Re: error compiling latest version of iouyap
PostPosted: Tue Jul 08, 2014 3:23 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
Hi,

Did you have these errors before or is this the fist time you compile it?

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: error compiling latest version of iouyap
PostPosted: Tue Jul 08, 2014 6:06 pm 
Offline

Joined: Thu Apr 10, 2014 8:58 pm
Posts: 30
it is the first time I have tried to compile it myself...


Top
 Profile  
 
 Post subject: Re: error compiling latest version of iouyap
PostPosted: Tue Jul 08, 2014 7:31 pm 
Offline

Joined: Fri May 13, 2011 10:35 pm
Posts: 83
Location: Seattle, WA (USA)
You're missing iniparser.

Get and install dependency packages (Debian-based distros):
Code:
sudo apt-get install flex bison

Get and build iniparser:
Code:
cd /tmp
curl -L https://github.com/ndevilla/iniparser/archive/master.tar.gz | tar -xz
cd iniparser*
make

Get and install iouyap:
Code:
cd /tmp
curl -L https://github.com/GNS3/iouyap/archive/master.tar.gz | tar -xz
cd iouyap*
bison -ydv netmap_parse.y
flex netmap_scan.l
gcc -Wall *.c -I /tmp/iniparser*/src -L /tmp/iniparser* -o iouyap -liniparser -lpthread
strip --strip-unneeded iouyap
sudo mv iouyap /usr/local/bin

_________________
http://binarynature.blogspot.com/search/label/GNS3


Top
 Profile  
 
 Post subject: Re: error compiling latest version of iouyap
PostPosted: Wed Jul 16, 2014 8:24 am 
Offline

Joined: Thu May 29, 2014 5:10 am
Posts: 4
hi Jeremy ,

i am getting below error on running bison -ydv netmap_parse.y

bison -ydv netmap_parse.y
netmap_parse.y:68.27-32: syntax error, unexpected type, expecting string or identifier




Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO