2013-05-19 16:44:14

by Larry Finger

[permalink] [raw]
Subject: [PATCH 1/2 V2] backports: Fix menuconfig build

Using openSUSE 12.3 with x86_64 architecture, the 'make menuconfig'
command results in the following:

finger@larrylap:~/backports-3.10-rc1-1> make menuconfig
cc -Wl,--no-as-needed -lncurses mconf.o zconf.tab.o lxdialog/checklist.o lxdialog/inputbox.o lxdialog/menubox.o lxdialog/textbox.o lxdialog/util.o lxdialog/yesno.o -o mconf
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: /lib64/libncurses.so.5: undefined reference to symbol 'acs_map'
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: note: 'acs_map' is defined in DSO /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libtinfo.so so try adding it to the linker command line
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libtinfo.so: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [mconf] Error 1
make[1]: *** [menuconfig] Error 2
make: *** [menuconfig] Error 2
finger@larrylap:~/backports-3.10-rc1-1>

When "-ltinfo" is added to the LDFLAGS symbol as suggested by the linker,
it builds and runs correctly.

Signed-off-by: Larry Finger <[email protected]>
---

V2 in the proper format for git repository

Larry
---

backport/kconfig/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backport/kconfig/Makefile b/backport/kconfig/Makefile
index 5974e48..ff5c270 100644
--- a/backport/kconfig/Makefile
+++ b/backport/kconfig/Makefile
@@ -3,7 +3,7 @@ CFLAGS=-Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer
LXDIALOG := lxdialog/checklist.o lxdialog/inputbox.o lxdialog/menubox.o lxdialog/textbox.o lxdialog/util.o lxdialog/yesno.o

conf: conf.o zconf.tab.o
-mconf: LDFLAGS = -Wl,--no-as-needed -lncurses
+mconf: LDFLAGS = -Wl,--no-as-needed -lncurses -ltinfo
mconf: CFLAGS += -DCURSES_LOC="<ncurses.h>" -DLOCALE
mconf: mconf.o zconf.tab.o $(LXDIALOG)

--
1.8.1.4



2013-05-19 21:23:02

by Luis Chamberlain

[permalink] [raw]
Subject: Re: [PATCH 1/2 V2] backports: Fix menuconfig build

On Sun, May 19, 2013 at 2:22 PM, Luis R. Rodriguez
<[email protected]> wrote:
> On Sun, May 19, 2013 at 9:43 AM, Larry Finger <[email protected]> wrote:
>> Signed-off-by: Larry Finger <[email protected]>
>
> Thanks Larry, applied and pushed! Also kicked out a new release with these:
>
> https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.10-rc1/backports-3.10-rc1-2.tar.bz2

I forgot to mention, please Cc backports list for patches, whether or
not other lists get Cc'd is up to you.

Luis

2013-05-19 16:44:15

by Larry Finger

[permalink] [raw]
Subject: [PATCH 2/2] backports: defconfig for rtlwifi family

Signed-off-by: Larry Finger <[email protected]>
---

V2 in proper format for git repo

Larry

backport/defconfigs/rtlwifi | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
create mode 100644 backport/defconfigs/rtlwifi

diff --git a/backport/defconfigs/rtlwifi b/backport/defconfigs/rtlwifi
new file mode 100644
index 0000000..c86d000
--- /dev/null
+++ b/backport/defconfigs/rtlwifi
@@ -0,0 +1,19 @@
+CPTCFG_CFG80211=m
+CPTCFG_CFG80211_DEFAULT_PS=y
+CPTCFG_CFG80211_DEBUGFS=y
+CPTCFG_MAC80211=m
+# CPTCFG_MAC80211_RC_PID is not set
+# CPTCFG_MAC80211_RC_MINSTREL is not set
+# CPTCFG_MAC80211_RC_DEFAULT_MINSTREL is not set
+CPTCFG_MAC80211_DEBUGFS=y
+CPTCFG_MAC80211_MESSAGE_TRACING=y
+CPTCFG_WLAN=y
+CPTCFG_RTLWIFI=m
+CPTCFG_RTLWIFI_DEBUG=y
+CPTCFG_RTL8192CE=m
+CPTCFG_RTL8192SE=m
+CPTCFG_RTL8192DE=m
+CPTCFG_RTL8723AE=m
+CPTCFG_RTL8188EE=m
+CPTCFG_RTL8192CU=m
+CPTCFG_RTL8192C_COMMON=m
--
1.8.1.4


2013-05-20 01:08:47

by Larry Finger

[permalink] [raw]
Subject: Re: [PATCH 2/2] backports: defconfig for rtlwifi family

On 05/19/2013 05:54 PM, Hauke Mehrtens wrote:
> On 05/19/2013 06:43 PM, Larry Finger wrote:
>> Signed-off-by: Larry Finger <[email protected]>
>> ---
>>
>> V2 in proper format for git repo
>>
>> Larry
>>
>> backport/defconfigs/rtlwifi | 19 +++++++++++++++++++
>> 1 file changed, 19 insertions(+)
>> create mode 100644 backport/defconfigs/rtlwifi
>>
>> diff --git a/backport/defconfigs/rtlwifi b/backport/defconfigs/rtlwifi
>> new file mode 100644
>> index 0000000..c86d000
>> --- /dev/null
>> +++ b/backport/defconfigs/rtlwifi
>> @@ -0,0 +1,19 @@
>> +CPTCFG_CFG80211=m
>> +CPTCFG_CFG80211_DEFAULT_PS=y
>> +CPTCFG_CFG80211_DEBUGFS=y
>> +CPTCFG_MAC80211=m
>> +# CPTCFG_MAC80211_RC_PID is not set
>> +# CPTCFG_MAC80211_RC_MINSTREL is not set
>> +# CPTCFG_MAC80211_RC_DEFAULT_MINSTREL is not set
>
> This results in no rate control mechanism being selected is that intended?
>
> MAC80211_MESH and MAC80211_LEDS are also not selected.
>
>> +CPTCFG_MAC80211_DEBUGFS=y
>> +CPTCFG_MAC80211_MESSAGE_TRACING=y
>> +CPTCFG_WLAN=y
>> +CPTCFG_RTLWIFI=m
>> +CPTCFG_RTLWIFI_DEBUG=y
>> +CPTCFG_RTL8192CE=m
>> +CPTCFG_RTL8192SE=m
>> +CPTCFG_RTL8192DE=m
>> +CPTCFG_RTL8723AE=m
>> +CPTCFG_RTL8188EE=m
>> +CPTCFG_RTL8192CU=m
>> +CPTCFG_RTL8192C_COMMON=m

The rtlwifi drivers do rate control in the firmware. That is OK, but LEDS and
MESH should be selected.

Thanks for noticing,

Larry



2013-05-19 21:22:22

by Luis Chamberlain

[permalink] [raw]
Subject: Re: [PATCH 1/2 V2] backports: Fix menuconfig build

On Sun, May 19, 2013 at 9:43 AM, Larry Finger <[email protected]> wrote:
> Signed-off-by: Larry Finger <[email protected]>

Thanks Larry, applied and pushed! Also kicked out a new release with these:

https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.10-rc1/backports-3.10-rc1-2.tar.bz2

Luis

2013-05-19 22:54:38

by Hauke Mehrtens

[permalink] [raw]
Subject: Re: [PATCH 2/2] backports: defconfig for rtlwifi family

On 05/19/2013 06:43 PM, Larry Finger wrote:
> Signed-off-by: Larry Finger <[email protected]>
> ---
>
> V2 in proper format for git repo
>
> Larry
>
> backport/defconfigs/rtlwifi | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
> create mode 100644 backport/defconfigs/rtlwifi
>
> diff --git a/backport/defconfigs/rtlwifi b/backport/defconfigs/rtlwifi
> new file mode 100644
> index 0000000..c86d000
> --- /dev/null
> +++ b/backport/defconfigs/rtlwifi
> @@ -0,0 +1,19 @@
> +CPTCFG_CFG80211=m
> +CPTCFG_CFG80211_DEFAULT_PS=y
> +CPTCFG_CFG80211_DEBUGFS=y
> +CPTCFG_MAC80211=m
> +# CPTCFG_MAC80211_RC_PID is not set
> +# CPTCFG_MAC80211_RC_MINSTREL is not set
> +# CPTCFG_MAC80211_RC_DEFAULT_MINSTREL is not set

This results in no rate control mechanism being selected is that intended?

MAC80211_MESH and MAC80211_LEDS are also not selected.

> +CPTCFG_MAC80211_DEBUGFS=y
> +CPTCFG_MAC80211_MESSAGE_TRACING=y
> +CPTCFG_WLAN=y
> +CPTCFG_RTLWIFI=m
> +CPTCFG_RTLWIFI_DEBUG=y
> +CPTCFG_RTL8192CE=m
> +CPTCFG_RTL8192SE=m
> +CPTCFG_RTL8192DE=m
> +CPTCFG_RTL8723AE=m
> +CPTCFG_RTL8188EE=m
> +CPTCFG_RTL8192CU=m
> +CPTCFG_RTL8192C_COMMON=m
>