- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- libpcap-1.1.1 Compilation
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2011 01:42 AM
тАО03-02-2011 01:42 AM
libpcap-1.1.1 Compilation
I want to compile libpcap and I did following steps
1. ./configure --without-flex --without-bison
2. make
When I run make command I am getting following error messages
===============================================
./runlex.sh flex -oscanner.c scanner.l
yacc -d grammar.y
mv y.tab.c grammar.c
mv y.tab.h tokdefs.h
gcc -O2 -fpic -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c scanner.c
In file included from scanner.l:70:
tokdefs.h:109: warning: data definition has no type or storage class
tokdefs.h:110: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'yylval'
scanner.l:90: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pcap_lval'
scanner.l: In function 'yylex':
scanner.l:335: error: 'pcap_lval' undeclared (first use in this function)
scanner.l:335: error: (Each undeclared identifier is reported only once
scanner.l:335: error: for each function it appears in.)
*** Error exit code 1
===============================================
I downloaded libpcap from http://www.tcpdump.org/.
I installed flex in my machine and changed configure and runlex.sh scripts according to it.
Can anybody suggest me what I need to do to remove above errors.
I installed flex and
- Tags:
- libpcap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2011 01:55 AM
тАО03-02-2011 01:55 AM
Re: libpcap-1.1.1 Compilation
tokdefs.h:110: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'yylval'
scanner.l:90: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pcap_lval'
What's on (or before) these lines?
Perhaps your yacc grammar is bad?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2011 02:10 AM
тАО03-02-2011 02:10 AM
Re: libpcap-1.1.1 Compilation
extern YYSTYPE yylval;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2011 02:23 AM
тАО03-02-2011 02:23 AM
Re: libpcap-1.1.1 Compilation
And is YYSTYPE already defined and what is it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2011 03:13 AM
тАО03-02-2011 03:13 AM
Re: libpcap-1.1.1 Compilation
You have available a binary depot ready to install in HP-UX:
http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/libpcap-1.1.1/
Keep attention about package dependencies (bison, flex) also available in the site. Very important that you read the instalation doc:
http://hpux.connect.org.uk/hppd/cgi-bin/wwwtar?/hpux/Networking/Admin/libpcap-1.1.1/libpcap-1.1.1-src-11.11.tar.gz+libpcap-1.1.1/HPUX.Install+text
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2011 03:25 AM
тАО03-02-2011 03:25 AM
Re: libpcap-1.1.1 Compilation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2011 03:27 AM
тАО03-02-2011 03:27 AM