All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jee J.Z." <jz105@york.ac.uk>
To: netfilter@lists.netfilter.org
Subject: problem with trying the example
Date: Mon, 1 Dec 2003 01:47:03 -0000	[thread overview]
Message-ID: <00a201c3b7ad$06b73100$cb0210ac@jz105> (raw)

Hi all,

I am new to netfilter and even linux. I just wish to try the example code in the man page of libipq (I saved it as test.c and have compiled it to test.o). But when I make it: #cc test.o -o test, the following errors showed up:

[root@kite1 netfilter]# cc test.o -o test
test.o(.text+0xf): In function `die':
: undefined reference to `ipq_perror'
test.o(.text+0x1d): In function `die':
: undefined reference to `ipq_destroy_handle'
test.o(.text+0x49): In function `main':
: undefined reference to `ipq_create_handle'
test.o(.text+0x81): In function `main':
: undefined reference to `ipq_set_mode'
test.o(.text+0xb8): In function `main':
: undefined reference to `ipq_read'
test.o(.text+0xe4): In function `main':
: undefined reference to `ipq_message_type'
test.o(.text+0x116): In function `main':
: undefined reference to `ipq_get_msgerr'
test.o(.text+0x141): In function `main':
: undefined reference to `ipq_get_packet'
test.o(.text+0x18c): In function `main':
: undefined reference to `ipq_set_verdict'
test.o(.text+0x1ce): In function `main':
: undefined reference to `ipq_set_verdict'
collect2: ld returned 1 exit status

I have installed iptables-1.2.9 following the instructions. Does it mean I have to link 'test.o' with another file (???.o or ???.so)? Thank you in advance!

Jee

             reply	other threads:[~2003-12-01  1:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-01  1:47 Jee J.Z. [this message]
2003-12-01  8:00 ` problem with trying the example Eric Leblond
2003-12-01 15:47   ` Jee J.Z.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='00a201c3b7ad$06b73100$cb0210ac@jz105' \
    --to=jz105@york.ac.uk \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.