Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
net-wireless/iw compilation failed [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Ishiki
Tux's lil' helper
Tux's lil' helper


Joined: 31 Aug 2005
Posts: 86

PostPosted: Sat Nov 08, 2008 4:45 pm    Post subject: net-wireless/iw compilation failed [SOLVED] Reply with quote

I am trying to compile iw (ebuild from https://bugs.gentoo.org/show_bug.cgi?id=238879) and this is what I get:

Code:
>>> Starting src_compile
make -j6
 GEN  version.h
 CC   iw.o
 CC   info.o
 CC   phy.o
 CC   interface.o
 CC   station.o
 CC   util.o
 CC   reg.o
 CC   mpath.o
 CC   mesh.o
 CC   genl.o
 CC   iw
iw.o: In function `print_event':
iw.c:(.text+0x63): undefined reference to `nlmsg_hdr'
iw.c:(.text+0x6b): undefined reference to `nlmsg_data'
iw.c:(.text+0x7d): undefined reference to `genlmsg_attrlen'
iw.c:(.text+0x8f): undefined reference to `genlmsg_attrdata'
iw.c:(.text+0xb3): undefined reference to `nla_parse'
iw.c:(.text+0xd8): undefined reference to `nla_get_string'
iw.c:(.text+0xe6): undefined reference to `nla_get_u32'
iw.o: In function `handle_cmd':
iw.c:(.text+0x1ef): undefined reference to `nlmsg_alloc'

After that many, many more similar lines of undefined references come.

I have tryed with 3 version of dev-libs/libnl (1.1-r1, 1.0-pre6 and 1.0-pre8)... switching version gave me just slightly different kinds of errors.
I have also tryed different versions of iw (0.1(?), 0.9.5, 0.9.6).

My specs:
Code:
 Compiler:
        CXX:                   i686-pc-linux-gnu-g++ 4.3.2
        CXXFLAGS:              -O2 -march=core2 -pipe -fomit-frame-pointer
        LDFLAGS:               -Wl,-O1,--as-needed,--hash-style=gnu,-z,now
        DATE:                  2008-10-11T11:22:04+0200

    Libraries:
        C++ Library:           GNU libstdc++ 20080827

Package information:
        app-admin/eselect-compiler: (none)
        app-shells/bash:       3.2_p33
        dev-java/java-config:  1.3.7 2.1.6
        dev-lang/python:       2.4.4-r9 2.5.2-r7
        dev-python/pycrypto:   2.0.1-r6
        dev-util/ccache:       (none)
        dev-util/cmake:        2.6.2
        dev-util/confcache:    (none)
        sys-apps/baselayout:   2.0.0
        sys-apps/openrc:       0.3.0-r1
        sys-apps/sandbox:      1.2.18.1-r2
        sys-devel/autoconf:    2.13 2.62-r1
        sys-devel/automake:    1.10.1-r1 1.6.3 1.7.9-r1 1.8.5-r3 1.9.6-r2
        sys-devel/binutils:    2.18-r3
        sys-devel/gcc-config:  1.4.0-r4
        sys-devel/libtool:     1.5.26
        virtual/os-headers:    2.6.27-r2 (for sys-kernel/linux-headers::installed)


Any ideas?


Last edited by Ishiki on Wed Nov 12, 2008 3:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
p1c2u
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2005
Posts: 103
Location: Warsaw/Cracow, Poland

PostPosted: Sat Nov 08, 2008 5:05 pm    Post subject: Reply with quote

Old linux-headers?
_________________
gentoo kernel: 2.6.34-rc2 & darwin kernel: 10.2.0 | overlay
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Sat Nov 08, 2008 5:59 pm    Post subject: Reply with quote

try removing your LD_FLAGS and see what you get.
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
hirakendu
Guru
Guru


Joined: 24 Jan 2007
Posts: 386
Location: san diego

PostPosted: Sat Nov 08, 2008 6:01 pm    Post subject: Reply with quote

could be. when emerging networkmanager or knetworkmanager, had to either get compatible libnl (which itself might be sometimes difficult to emerge because of compatibility with linux-headers version) and linux-headers or do some workaround. but looks like you have shiny new versions of everything :).
_________________
Helium Sources || Gentoo Minimal Livecd
Back to top
View user's profile Send private message
Ishiki
Tux's lil' helper
Tux's lil' helper


Joined: 31 Aug 2005
Posts: 86

PostPosted: Wed Nov 12, 2008 3:40 pm    Post subject: Reply with quote

Lowering my LD_FLAGS have made comilation of iw doable.
This is strange, considering the fact, that my whole system had been compiled with the same set of ld flags...

Thank you all for your commitment ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum