From: Oumer Teyeb <oumer@cpk.auc.dk>
To: netfilter@lists.netfilter.org
Subject: libipq with pthreads
Date: Mon, 26 May 2003 08:34:58 +0200 [thread overview]
Message-ID: <3ED1B592.7060308@cpk.auc.dk> (raw)
Hi,
I have a libipq program that compiles perfectly with this
gcc -g -Wall -Wunused -DNETFILTER_VERSION=\"1.2.7\" -rdynamic -o test
test.c /usr/local/lib/iptables.o /usr/local/lib/libiptc.a -ldl -lipq
and I wanted to put multithreading features on it and in my system I run
pthread programs as
gcc -D_POSIX_C_SOURCE=199056 -D_REENTRANT -ansi -lpthread -o
test_thread test_thread.c
so I put some pthread functionality in my original pthread program and
tried to compile with the following
gcc -g -Wall -Wunused -DNETFILTER_VERSION=\"1.2.7\"
-D_POSIX_C_SOURCE=199056 -D_REENTRANT -ansi -rdynamic -o test test.c
/usr/local/lib/iptables.o /usr/local/lib/libiptc.a -ldl -lipq -lpthread
but this time I get the error:
>In file included from /usr/local/include/libipq.h:37
>from test.c: 2:
>/usr/include/linux/netfilter_ipv4/ip_queue.h:27: 'IFNAMSIZ' undeclared
here (not a function)
>/usr/include/linux/netfilter_ipv4/ip_queue.h:28: 'IFNAMSIZ' undeclared
here (not a function)
>/usr/include/linux/netfilter_ipv4/ip_queue.h:35: confused by earlier
errors, bailing out
I think the problem is with some order of library binding, but I
couldn't figure it (I tried to link one library before the other and the
like).
What is wrong?
reply other threads:[~2003-05-26 6:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3ED1B592.7060308@cpk.auc.dk \
--to=oumer@cpk.auc.dk \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox