ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The error implicit declaration of function means that a function is referenced (used) before its declaration or when the function prototype is missing. Looking at the source code of compat-wireless-3.1.1-1 it seems the prototype of function br_port_exists is in the header linux/compat-3.1.h but this header is not included in util.c. I would try to add the proper include line (see text in bold) among the others in net/wireless/util.c:
It's not a system file. The path is relative to the compat-wireless installation directory, that one you extracted from the downloaded tar.gz. If you look at the other include statements, you can see they refer to:
CC [M] /data2/compat-wireless-3.1.1-1/net/mac80211/mesh_hwmp.o
CC [M] /data2/compat-wireless-3.1.1-1/net/mac80211/pm.o
CC [M] /data2/compat-wireless-3.1.1-1/net/mac80211/rc80211_pid_algo.o
CC [M] /data2/compat-wireless-3.1.1-1/net/mac80211/rc80211_minstrel.o
CC [M] /data2/compat-wireless-3.1.1-1/net/mac80211/rc80211_minstrel_ht.o
LD [M] /data2/compat-wireless-3.1.1-1/net/mac80211/mac80211.o
LD /data2/compat-wireless-3.1.1-1/net/rfkill/built-in.o
LD /data2/compat-wireless-3.1.1-1/net/wireless/built-in.o
CC [M] /data2/compat-wireless-3.1.1-1/net/wireless/core.o
/data2/compat-wireless-3.1.1-1/net/wireless/core.c:7:1: warning: "pr_fmt" redefined
In file included from /data2/compat-wireless-3.1.1-1/include/linux/printk.h:7,
from include/linux/kernel.h:20,
from include/linux/skbuff.h:17,
from include/linux/if_ether.h:131,
from include/linux/netdevice.h:29,
from /data2/compat-wireless-3.1.1-1/include/linux/compat-2.6.29.h:5,
from /data2/compat-wireless-3.1.1-1/include/linux/compat-2.6.h:24,
from <command-line>:0:
include/linux/printk.h:152:1: warning: this is the location of the previous definition
/data2/compat-wireless-3.1.1-1/net/wireless/core.c:7:1: warning: "pr_fmt" redefined
In file included from /data2/compat-wireless-3.1.1-1/include/linux/printk.h:7,
from include/linux/kernel.h:20,
from include/linux/skbuff.h:17,
from include/linux/if_ether.h:131,
from include/linux/netdevice.h:29,
from /data2/compat-wireless-3.1.1-1/include/linux/compat-2.6.29.h:5,
from /data2/compat-wireless-3.1.1-1/include/linux/compat-2.6.h:24,
from <command-line>:0:
include/linux/printk.h:152:1: warning: this is the location of the previous definition
CC [M] /data2/compat-wireless-3.1.1-1/net/wireless/sysfs.o
CC [M] /data2/compat-wireless-3.1.1-1/net/wireless/radiotap.o
CC [M] /data2/compat-wireless-3.1.1-1/net/wireless/util.o
/data2/compat-wireless-3.1.1-1/net/wireless/util.c: In function ‘cfg80211_change_iface’:
/data2/compat-wireless-3.1.1-1/net/wireless/util.c:805: error: implicit declaration of function ‘br_port_exists’
make[3]: *** [/data2/compat-wireless-3.1.1-1/net/wireless/util.o] Error 1
make[2]: *** [/data2/compat-wireless-3.1.1-1/net/wireless] Error 2
make[1]: *** [_module_/data2/compat-wireless-3.1.1-1] Error 2
make[1]: Leaving directory `/usr/src/linux-3.1.4'
make: *** [modules] Error 2
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.