- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsI am using redhat 8.0
I have a libipq program that compiles perfectly with this
gcc -g -Wall -Wunused -DNETFILTER_VERSION=\"1.2.
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.
-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.
>from test.c: 2:
>/usr/include/linux/netfil
here (not a function)
>/usr/include/linux/netfil
here (not a function)
>/usr/include/linux/netfil
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?
This question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership