Ticket #2 (closed task: fixed)

Opened 21 months ago

Last modified 16 months ago

anonymous

Reported by: anonymous Owned by: jwright
Priority: critical Milestone: milestone4
Component: component1 Version:
Keywords: <Key> Cc: painting

Description

System: Fedora Core 6, 2.6.20-1.2925.fc6 #1 SMP Sat Mar 10 19:15:16 EST 2007 i686 i686 i386 GNU/Linux

gcc -I./ -DHAVE_CONFIG_H -g -O2 -DTX80211_VERSION=20061101 -c wtinject.c -fPIC -DPIC -o .libs/wtinject.o In file included from wtinject.h:46,

from wtinject.c:30:

/usr/include/linux/wireless.h:882: error: 'IFNAMSIZ' undeclared here (not in a function) make: *** [wtinject.lo] Error 1

For Fedora, the required definition is in /usr/include/net/if.h

Change History

  Changed 21 months ago by dragorn

  • status changed from new to closed
  • resolution set to fixed

Fixed in commit #139, thanks

  Changed 21 months ago by anonymous

  • priority changed from minor to critical
  • status changed from closed to reopened
  • resolution fixed deleted

Same problem with Ubuntu 2.6.20-15 (SMP) (7.04 Feisty Fawn) with Revision: 141

gcc -I./ -DHAVE_CONFIG_H -g -O2 -DTX80211_VERSION=20061101 -c wtinject.c -fPIC -DPIC -o .libs/wtinject.o

In file included from wtinject.h:46,

from wtinject.c:30:

/usr/include/linux/wireless.h:882: error: 'IFNAMSIZ' undeclared here (not in a function) make: *** [wtinject.lo] Error 1

  Changed 21 months ago by anonymous

Ubuntu 7.04 using revision 141 (None of the last few revisions compile)

laptop:/usr/src/lorcon# make /bin/sh ./libtool --mode=compile gcc -I./ -DHAVE_CONFIG_H -g -O2 -DTX80211_VERSION=20061101 -c ifcontrol_linux.c -o ifcontrol_linux.lo mkdir .libs

gcc -I./ -DHAVE_CONFIG_H -g -O2 -DTX80211_VERSION=20061101 -c ifcontrol_linux.c -fPIC -DPIC -o .libs/ifcontrol_linux.o gcc -I./ -DHAVE_CONFIG_H -g -O2 -DTX80211_VERSION=20061101 -c ifcontrol_linux.c -o ifcontrol_linux.o >/dev/null 2>&1

/bin/sh ./libtool --mode=compile gcc -I./ -DHAVE_CONFIG_H -g -O2 -DTX80211_VERSION=20061101 -c iwcontrol.c -o iwcontrol.lo

gcc -I./ -DHAVE_CONFIG_H -g -O2 -DTX80211_VERSION=20061101 -c iwcontrol.c -fPIC -DPIC -o .libs/iwcontrol.o gcc -I./ -DHAVE_CONFIG_H -g -O2 -DTX80211_VERSION=20061101 -c iwcontrol.c -o iwcontrol.o >/dev/null 2>&1

/bin/sh ./libtool --mode=compile gcc -I./ -DHAVE_CONFIG_H -g -O2 -DTX80211_VERSION=20061101 -c madwifing_control.c -o madwifing_control.lo

gcc -I./ -DHAVE_CONFIG_H -g -O2 -DTX80211_VERSION=20061101 -c madwifing_control.c -fPIC -DPIC -o .libs/madwifing_control.o gcc -I./ -DHAVE_CONFIG_H -g -O2 -DTX80211_VERSION=20061101 -c madwifing_control.c -o madwifing_control.o >/dev/null 2>&1

/bin/sh ./libtool --mode=compile gcc -I./ -DHAVE_CONFIG_H -g -O2 -DTX80211_VERSION=20061101 -c wtinject.c -o wtinject.lo

gcc -I./ -DHAVE_CONFIG_H -g -O2 -DTX80211_VERSION=20061101 -c wtinject.c -fPIC -DPIC -o .libs/wtinject.o

In file included from wtinject.h:46,

from wtinject.c:30:

/usr/include/linux/wireless.h:882: error: 'IFNAMSIZ' undeclared here (not in a function) make: *** [wtinject.lo] Error 1

  Changed 21 months ago by stroppytux

Ubuntu 7.04 with svn version 141

I fixed this by adding the following line to /usr/include/linux/wireless.h at the very top: #include <linux/if.h>

This is not a proper fix but gets the code compiled.

follow-up: ↓ 6   Changed 21 months ago by jwright

  • owner changed from somebody to jwright
  • status changed from reopened to new

I committed a patch from Robin Wood a few minutes ago to address this issue (I also have VMWare builds of Ubuntu 7.14 and FC6 running now as well to add to our test cycle to avoid problems like this in the future). Can you update your SVN checkout, build and let me know how it works out? Thanks, -Josh

in reply to: ↑ 5   Changed 21 months ago by sc0tch

Replying to jwright:

Can you update your SVN checkout, build and let me know how it works out?

Hi Josh, I can confirm rev 142 successfully fixed my issue explained above. 142 Compiled fine on two different installs of Ubuntu 7.04 Feisty.

Regards, -sc0tch

  Changed 21 months ago by jwright

  • status changed from new to closed
  • resolution set to fixed

  Changed 21 months ago by jwright

Thanks sc0tch, much appreciated. :)

  Changed 16 months ago by anonymous

  • priority changed from major to critical
  • component changed from component2 to component1
  • milestone changed from milestone1 to milestone4
Note: See TracTickets for help on using tickets.