LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-28-2008, 11:02 PM   #1
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
Make problem with conky 1.5.0 and net-tools


Hi all,
This week i downloaded conky 1.50 to upgrade 1.4.9 and i ran into some problems during the make portion of the install. i did a
Code:
./configure --enable-wlan --with-x --enable-shared --disable-mpd
Then Make which returned the error
Code:
 make
Making all in src
make[1]: Entering directory `/addons/conky-1.5.0/src'
make  all-am
make[2]: Entering directory `/addons/conky-1.5.0/src'
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/usr/local/etc/conky/conky.conf\"    -I/usr/include/freetype2   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -Wall -W -MT common.o -MD -MP -MF .deps/common.Tpo -c -o common.o common.c
mv -f .deps/common.Tpo .deps/common.Po
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/usr/local/etc/conky/conky.conf\"    -I/usr/include/freetype2   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -Wall -W -MT conky.o -MD -MP -MF .deps/conky.Tpo -c -o conky.o conky.c
mv -f .deps/conky.Tpo .deps/conky.Po
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/usr/local/etc/conky/conky.conf\"    -I/usr/include/freetype2   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -Wall -W -MT fs.o -MD -MP -MF .deps/fs.Tpo -c -o fs.o fs.c
mv -f .deps/fs.Tpo .deps/fs.Po
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/usr/local/etc/conky/conky.conf\"    -I/usr/include/freetype2   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -Wall -W -MT hddtemp.o -MD -MP -MF .deps/hddtemp.Tpo -c -o hddtemp.o hddtemp.c
mv -f .deps/hddtemp.Tpo .deps/hddtemp.Po
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/usr/local/etc/conky/conky.conf\"    -I/usr/include/freetype2   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -Wall -W -MT linux.o -MD -MP -MF .deps/linux.Tpo -c -o linux.o linux.c
In file included from /usr/include/linux/route.h:26,
                 from linux.c:55:
/usr/include/linux/if.h:120: error: redefinition of 'struct ifmap'
/usr/include/linux/if.h:156: error: redefinition of 'struct ifreq'
/usr/include/linux/if.h:206: error: redefinition of 'struct ifconf'
make[2]: *** [linux.o] Error 1
make[2]: Leaving directory `/addons/conky-1.5.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/addons/conky-1.5.0/src'
make: *** [all-recursive] Error 1
After some googling i found that it was related to the net-tools packages but i already have the latest one installed (1.60-i486-1). i found someone had a problem like this regarding Snort which required the person to rebuild their kernel headers. I really do not want to have to do that. any other ideas/suggestions as to what might be wrong?

Thanks.
 
Old 03-30-2008, 12:00 AM   #2
agentc0re
Member
 
Registered: Apr 2007
Location: SLC, UTAH
Distribution: Slackware
Posts: 200

Rep: Reputation: 34
I had the same problem and so i had to keep using an older version.
I read somewhere about how they patched some headers but it still didn't work, and i definitely don't want to go that route at all.
maybe it might work with current?
 
Old 03-30-2008, 03:51 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
It builds just fine if you comment out '#include <net/if.h>' in 'conky-1.5.0/src/linux.c'. And, I just ran it and it seems to be functional. I think they included the wrong or too many .h files and some structs and constants get declared more than once. This fix may break something, but so far I haven't found it.
 
Old 04-02-2008, 08:37 AM   #4
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Original Poster
Rep: Reputation: 33
ok. Thanks TexMex i will give it a try.

--edit--
just checked their site and they have 1.5.1 which supposedly fixes all of that.

Last edited by C-Sniper; 04-02-2008 at 08:38 AM.
 
Old 04-02-2008, 11:05 AM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Indeed it does, looks like this was the better solution, the one they used:
Code:
#ifdef _NET_IF_H
#define _LINUX_IF_H
#endif
 
  


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
Make conky window movable jrtayloriv Linux - Desktop 4 12-24-2006 03:25 AM
Conky on Suse 10.0 - *** buffer overflow detected *** conky terminated Slidex Linux - Software 1 03-17-2006 11:50 AM
net tools satimis Linux - Software 3 08-21-2005 09:29 AM
net-tools make: *** [hostname.o] Error 1 ADDY Linux From Scratch 5 11-16-2004 03:37 AM
Net tools azul79 Linux - Networking 0 09-09-2004 10:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:48 PM.

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
Open Source Consulting | Domain Registration