LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-22-2005, 03:40 PM   #1
Will Sjorensen
LQ Newbie
 
Registered: Apr 2005
Distribution: Mandrake 10.1 Community ed.
Posts: 14

Rep: Reputation: 0
Help with my first compiling?


Greetings. I just installed Mandrake 10.1 community edition, the distro that came with a recent LinuxUser magazine, and I'm loving it. I've been able to learn many of the basics, thanks largely to my linux-savvy(ish) girlfriend, but I need help right now with compiling a program.

I've been following trickykid's installing-from-source howto to compile peerguardian for Linux, and did fine through ./configure, but I ran into errors when it came time to make, and I frankly don't know what any of it means. Here's the output:

[root@SilentDave pglinux-1.5beta]# make
g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/libipq -g -O2 -c Blocker_Linux.cpp
Blocker_Linux.cpp:27:20: libipq.h: No such file or directory
Blocker_Linux.cpp: In function `void* PG::BlockerThread(void*)':
Blocker_Linux.cpp:102: error: `ipq_create_handle' undeclared (first use this function)
Blocker_Linux.cpp:102: error: (Each undeclared identifier is reported only once for each function it appears in.)
Blocker_Linux.cpp:109: error: `IPQ_COPY_PACKET' undeclared (first use this function)
Blocker_Linux.cpp:109: error: `ipq_set_mode' undeclared (first use this function)
Blocker_Linux.cpp:124: error: `ipq_read' undeclared (first use this function)
Blocker_Linux.cpp:133: error: `ipq_message_type' undeclared (first use this function)
Blocker_Linux.cpp:135: error: `NLMSG_ERROR' undeclared (first use this function)Blocker_Linux.cpp:137: error: `ipq_get_msgerr' undeclared (first use this function)
Blocker_Linux.cpp:142: error: `ipq_packet_msg_t' undeclared (first use this function)
Blocker_Linux.cpp:142: error: `pkt' undeclared (first use this function)
Blocker_Linux.cpp:142: error: `ipq_get_packet' undeclared (first use this function)
Blocker_Linux.cpp:187: error: `ipq_set_verdict' undeclared (first use this function)
make: *** [Blocker_Linux.o] Error 1
[root@SilentDave pglinux-1.5beta]#

Thanks in advance.

Will

 
Old 04-22-2005, 03:48 PM   #2
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Rep: Reputation: 33
You must have libipq.h in your system. It's part of iptables-devel package.
 
Old 04-22-2005, 04:00 PM   #3
Will Sjorensen
LQ Newbie
 
Registered: Apr 2005
Distribution: Mandrake 10.1 Community ed.
Posts: 14

Original Poster
Rep: Reputation: 0
I tracked down an rpm of iptables-devel and installed it -- it showed me a message saying that everything is already installed. Ditto for iptables itself. Make still doesn't work, same output as before.
 
Old 04-22-2005, 04:04 PM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/libipq -g -O2 -c Blocker_Linux.cpp
whats in /usr/include/libipq?
 
Old 04-22-2005, 04:08 PM   #5
Will Sjorensen
LQ Newbie
 
Registered: Apr 2005
Distribution: Mandrake 10.1 Community ed.
Posts: 14

Original Poster
Rep: Reputation: 0
As far as I can tell, usr/include/libipq doesn't exist.
 
Old 04-22-2005, 04:44 PM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
do a system search and see if libipq.h is on your filesystem
 
Old 04-22-2005, 05:03 PM   #7
Will Sjorensen
LQ Newbie
 
Registered: Apr 2005
Distribution: Mandrake 10.1 Community ed.
Posts: 14

Original Poster
Rep: Reputation: 0
It's not.
 
Old 04-22-2005, 05:25 PM   #8
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
try removing and reinstalling the package and see if that helps.
 
Old 04-22-2005, 06:04 PM   #9
Will Sjorensen
LQ Newbie
 
Registered: Apr 2005
Distribution: Mandrake 10.1 Community ed.
Posts: 14

Original Poster
Rep: Reputation: 0
do you mean iptables and iptables-devel? I can't figure out how to uninstall those -- they don't show up in rpmdrake, and I can see what might be them in lib/modules/2.6.8.1-10mdk/kernel/net/ipv4/netfilter/iptable_raw.ko.gz but I can't delete them (and am not sure I want to . . .)

I tried removing and reinstalling pglinux, but same result as before.

Last edited by Will Sjorensen; 04-22-2005 at 06:06 PM.
 
Old 04-22-2005, 06:27 PM   #10
Will Sjorensen
LQ Newbie
 
Registered: Apr 2005
Distribution: Mandrake 10.1 Community ed.
Posts: 14

Original Poster
Rep: Reputation: 0
Success! I tried installing iptables and -devel through rpmdrake, and didn't get the "already installed" message. Thereafter, the compilation seems to have gone through without a hitch.

Thanks for your help, all! Now I just need to figure out how to run peerguardian in linux . . .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 06:03 AM
Compiling in ACPI support on Compaq 2135CA (system crashes while compiling) Dag Linux - Laptop and Netbook 20 07-30-2004 08:56 PM
Compiling....... chilehead Linux - Software 6 11-03-2003 04:11 PM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 06:31 PM
compiling how-to?? crashmeister LQ Suggestions & Feedback 7 12-11-2002 11:23 AM


All times are GMT -5. The time now is 09:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration