LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-02-2006, 10:37 AM   #1
disassembler
LQ Newbie
 
Registered: Oct 2006
Distribution: Fedora Core 6
Posts: 3

Rep: Reputation: 0
iwlib.h missing


Trying to configure some software, among them Xsupplicant 1.2.8, I get an error because I haven't got iwlib.h. Does anyone know where I can get this header?
 
Old 11-02-2006, 11:46 AM   #2
disassembler
LQ Newbie
 
Registered: Oct 2006
Distribution: Fedora Core 6
Posts: 3

Original Poster
Rep: Reputation: 0
Wireless-tools...


Does anyone know where i can get the header compiler.h?
 
Old 11-14-2006, 04:53 AM   #3
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
Originally Posted by disassembler
Trying to configure some software, among them Xsupplicant 1.2.8, I get an error because I haven't got iwlib.h. Does anyone know where I can get this header?
You need to install wireless-tools-devel.
 
Old 11-02-2007, 04:19 AM   #4
dj_judas21
LQ Newbie
 
Registered: Nov 2007
Location: Bristol, UK
Distribution: Fedora / CentOS
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by reddazz View Post
You need to install wireless-tools-devel.
I have just installed wireless-tools-devel on Fedora 7, and restarted the machine. However, I still get the same error that iwlib.h is missing when I try to do ./configure on xsupplicant. Any ideas?

Cheers
 
Old 11-02-2007, 08:18 AM   #5
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
Originally Posted by dj_judas21 View Post
I have just installed wireless-tools-devel on Fedora 7, and restarted the machine. However, I still get the same error that iwlib.h is missing when I try to do ./configure on xsupplicant. Any ideas?

Cheers
Hi and welcome to LQ. Can you post a detailed error message. Cheers.
 
Old 11-02-2007, 11:02 AM   #6
dj_judas21
LQ Newbie
 
Registered: Nov 2007
Location: Bristol, UK
Distribution: Fedora / CentOS
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by reddazz View Post
Hi and welcome to LQ. Can you post a detailed error message. Cheers.
Thanks for the welcome. I've been a keen reader on LQ for quite a few months now. Detailed error report to follow:

Code:
[root@mocha xsupplicant-1.2.8]# ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ranlib... ranlib
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking whether byte ordering is bigendian... no
checking user defined path to OpenSSL... 
checking user defined path to OpenSSL libraries... 
checking user defined path to OpenSSL headers... 
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking Operating System... Linux
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for iwlib.h... no
configure: error: header file <iwlib.h> is required for Xsupplicant
Some other snippets you may or may not find useful...

Code:
[root@mocha xsupplicant-1.2.8]# yum list wireless-tools-devel
fedora                    100% |=========================| 2.1 kB    00:00     
updates                   100% |=========================| 2.3 kB    00:00     
primary.sqlite.bz2        100% |=========================| 1.8 MB    00:01     
Installed Packages
wireless-tools-devel.i386                1:28-4.fc7             installed
Code:
[root@mocha /]# locate iwlib.h
/usr/include/iwlib.h
 
Old 11-03-2007, 05:51 AM   #7
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Try running ldconfig as root and the reconfigure. If that does not work, try doing
Code:
export INCLUDE_PATH=$INCLUDE_PATH:/usr/include
After that try reconfiguring xsupplicant.
 
Old 04-23-2008, 11:44 AM   #8
russoue
LQ Newbie
 
Registered: Oct 2004
Posts: 20

Rep: Reputation: 0
Quote:
Originally Posted by reddazz View Post
Try running ldconfig as root and the reconfigure. If that does not work, try doing
Code:
export INCLUDE_PATH=$INCLUDE_PATH:/usr/include
After that try reconfiguring xsupplicant.
I am having the same problem. Initially, I did not have the wireless-devel-tools installed. After installing it locate retuens /usr/include for iwlib.h but the problem is still there. I also did ldconfig and exporting the INCLUDE_PATH as you said but still the problem is there. Can anyone help me in this regard?
 
Old 10-20-2009, 03:08 AM   #9
nickols_k
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Rep: Reputation: 2
Quote:
Originally Posted by russoue View Post
I am having the same problem. Initially, I did not have the wireless-devel-tools installed. After installing it locate retuens /usr/include for iwlib.h but the problem is still there. I also did ldconfig and exporting the INCLUDE_PATH as you said but still the problem is there. Can anyone help me in this regard?
That happens because ./configure requires linux headers directly:

for ac_header in iwlib.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */

#define HEADERS_KERNEL
#include <sys/socket.h>
#ifndef __user
#define __user
#endif
#include <linux/types.h>
#include <linux/if.h>
#include <linux/wireless.h>

config.log says:

configure:4527: checking for iwlib.h
configure:4551: gcc -c -g -O2 -Wall conftest.c >&5
In file included from /usr/include/iwlib.h:58,
from conftest.c:35:
/usr/include/net/if.h:45: error: expected identifier before numeric constant
/usr/include/net/if.h:113: error: redefinition of 'struct ifmap'
/usr/include/net/if.h:128: error: redefinition of 'struct ifreq'
/usr/include/net/if.h:178: error: redefinition of 'struct ifconf'

That's must be bugreported to the author
 
  


Reply

Tags
configure, error, headers, networking


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
missing jdbc isnt actually missing. trscookie Programming 0 06-04-2006 10:26 AM
Problem running UT Demo, Xlib missing on 0.0.. gldrv missing etc. RHLinuxGUY Linux - Games 3 05-21-2006 11:02 PM
C++ Wrapper for wireless extensions (iwlib)? coolnicklas Programming 0 09-07-2005 11:40 AM
Missing gd.h gmartin Slackware 3 02-11-2004 01:16 AM
what am I missing? fail66 Linux - General 3 12-13-2001 09:30 PM


All times are GMT -5. The time now is 11:37 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration