Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7018411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:02:51+00:00 2026-05-27T23:02:51+00:00

Sorry if I am wrong but I am trying to compile the libpcap for

  • 0

Sorry if I am wrong but I am trying to compile the libpcap for Android with NDK. Finally, I get this error:

in grammar.y we can see :

#ifndef YYBISON
int yyparse(void);

int
pcap_parse()
{
   return (yyparse());
}
#endif

=> pcap_parse is defined if YYBISON is not defined

BUT in gencode.c, we have (line 342)

lex_init(buf ? buf : "");
init_linktype(pcap_datalink(p));
(void)pcap_parse();

AND in gencode.h (line 299)

struct bpf_insn *icode_to_fcode(struct block *, int *);
int pcap_parse(void);
void lex_init(char *);
void lex_cleanup(void);

=> pcap_parse if used without any test case !!
Result is a libpcap wrong if YYBISON is defined
(undedefined function pcap_parse)

Where is my error?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:02:52+00:00Added an answer on May 27, 2026 at 11:02 pm

    the solution was really easy. I just do a make distclean at the sources. If it doesn’t work try to a git reset --hard and it should be fixed.

    Thanks everyone

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry if this is on the wrong site ( maybe superuser ) but I'm
Sorry for the vague title, but I've been trying to nail this for a
I'm very sorry if I'm wording this wrong in advance but I have a
sorry i know this is a basic question, but i have been trying for
Sorry for this not being a real question, but Sometime back i remember seeing
Sorry for the bad title but it's a little complicated to get across in
Sorry about this silly question. I'm trying to learn objc and I'm unable to
I'm sorry if I'm asking the wrong thing in stackoverflow, but I've come to
Ok the title isn't a great help I'm sorry but this is what I'm
First time poster so sorry if this is too long, but I've hit a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.