LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-14-2013, 05:05 PM   #1
tolip
LQ Newbie
 
Registered: Jun 2013
Distribution: Slackware
Posts: 2

Rep: Reputation: Disabled
wireshark-1.10.0 segfaults on Slackware64


I just built and installed wireshark-1.10.0 (as root)
It compiled normally with a few typical warnings.

When I run it (as root) I get a
Segmentation fault

When I debug with gdb I get the following backtrace

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff14839fe in genl_register () from /usr/lib64/libnl-genl-3.so.200
(gdb) bt 10
#0 0x00007ffff14839fe in genl_register () from /usr/lib64/libnl-genl-3.so.200
#1 0x00007fffefdda716 in ?? () from /usr/lib64/libnl.so.1
#2 0x0000000000000000 in ?? ()
(gdb)

an "ldd /usr/local/bin/wireshark" gives me the following

linux-vdso.so.1 (0x00007fffacdc7000)
libwiretap.so.3 => /usr/local/lib/libwiretap.so.3 (0x00007f41c9543000)
libwireshark.so.3 => /usr/local/lib/libwireshark.so.3 (0x00007f41c55a0000)
libwsutil.so.3 => /usr/local/lib/libwsutil.so.3 (0x00007f41c539a000)
libpcap.so.1 => /usr/lib64/libpcap.so.1 (0x00007f41c515b000)
libgtk-x11-2.0.so.0 => /usr/lib64/libgtk-x11-2.0.so.0 (0x00007f41c4b2a000)
libgdk-x11-2.0.so.0 => /usr/lib64/libgdk-x11-2.0.so.0 (0x00007f41c4877000)
libpangocairo-1.0.so.0 => /usr/lib64/libpangocairo-1.0.so.0 (0x00007f41c466b000)
libgdk_pixbuf-2.0.so.0 => /usr/lib64/libgdk_pixbuf-2.0.so.0 (0x00007f41c444c000)
libcairo.so.2 => /usr/lib64/libcairo.so.2 (0x00007f41c419d000)
libpango-1.0.so.0 => /usr/lib64/libpango-1.0.so.0 (0x00007f41c3f52000)
libgobject-2.0.so.0 => /usr/lib64/libgobject-2.0.so.0 (0x00007f41c3d05000)
libgmodule-2.0.so.0 => /usr/lib64/libgmodule-2.0.so.0 (0x00007f41c3b01000)
libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0 (0x00007f41c37e3000)
libm.so.6 => /lib64/libm.so.6 (0x00007f41c34e8000)
libz.so.1 => /usr/lib64/libz.so.1 (0x00007f41c32d2000)
libnl-route-3.so.200 => /usr/lib64/libnl-route-3.so.200 (0x00007f41c308b000)
libnl-genl-3.so.200 => /usr/lib64/libnl-genl-3.so.200 (0x00007f41c2e86000)
libnl-3.so.200 => /usr/lib64/libnl-3.so.200 (0x00007f41c2c6d000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f41c2a51000)
libc.so.6 => /lib64/libc.so.6 (0x00007f41c2691000)
libgthread-2.0.so.0 => /usr/lib64/libgthread-2.0.so.0 (0x00007f41c248f000)
librt.so.1 => /lib64/librt.so.1 (0x00007f41c2287000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f41c2083000)
libgcrypt.so.11 => /usr/lib64/libgcrypt.so.11 (0x00007f41c1e05000)
libgpg-error.so.0 => /usr/lib64/libgpg-error.so.0 (0x00007f41c1c02000)
libusb-1.0.so.0 => /usr/lib64/libusb-1.0.so.0 (0x00007f41c19f2000)
libnl.so.1 => /usr/lib64/libnl.so.1 (0x00007f41c17a3000)
libXinerama.so.1 => /usr/lib64/libXinerama.so.1 (0x00007f41c15a1000)
libXi.so.6 => /usr/lib64/libXi.so.6 (0x00007f41c1392000)
libXrandr.so.2 => /usr/lib64/libXrandr.so.2 (0x00007f41c118a000)
libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007f41c0f79000)
libXcursor.so.1 => /usr/lib64/libXcursor.so.1 (0x00007f41c0d6e000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f41c0a6d000)
libXcomposite.so.1 => /usr/lib64/libXcomposite.so.1 (0x00007f41c086b000)
libXdamage.so.1 => /usr/lib64/libXdamage.so.1 (0x00007f41c0668000)
libXfixes.so.3 => /usr/lib64/libXfixes.so.3 (0x00007f41c0462000)
libatk-1.0.so.0 => /usr/lib64/libatk-1.0.so.0 (0x00007f41c0240000)


I'm used to being stumped forcing my intentions on sourcecode not intended for Slackware.
I usually figure it out with a few(hundred) web searches.
I tried the latest libnl (3.2.22) didn't help.

I'm no guru but I have been operating a compiler since Slackware 4 back in the mid '90s.
I configure and compile kernels at the bleeding edge for fun.
I did boot the stock Slack14-64 kernel and rebuilt wireshark, no change.

I have been googling for days and have not been able to solve it on my own.

I did try a couple of prebuilt 64bit wireshark's
They all complain about missing libs only available with wireshark source.
Beware of vicious circle.


Thx for reading this far
Please help! (if possible)


Luckily I have a managed switch with port mirroring and used a DOZE box to get my sniffin done.
I must solve it for Slackware though.

Another wierdness,
wireshark is installed in
/usr/local/bin
and it _IS_ on the PATH before /usr/bin
If I just type
"wireshark"
I get
-bash: /usr/bin/wireshark: No such file or directory

Where does this come from?
I checked there is indeed no wireshark in /usr/bin so what!
I'm loosing my mind...
 
Old 06-16-2013, 09:14 PM   #2
zsd
Member
 
Registered: Dec 2005
Location: Nova Scotia
Distribution: Slackware
Posts: 72

Rep: Reputation: 26
Glad that you aren't losing your mind ;-)

Anyway, if there was previously a sym link from /usr/bin/wireshark to some existing program, bash remembers this and gives such a message. For example
cp /bin/cat /tmp
ln -s /tmp/cat ~/bin/qqq
qqq /etc/passwd # that works, assuming ~/bin is in your path
rm -f /tmp/cat
qqq /etc/passwd # that produces bash: /home/zsd/bin/qqq: No such file or directory

I saw you said "there is indeed no wireshark in /usr/bin" but I'm not sure how you tested that.
Care to look again?

In terms of the seg fault, sorry I can't help. I am running wireshark 1.8.6 on Slackware64 14.0 and it works fine. Have you considered modifying (if necessary) the slackbuild script and compiling 1.10 with that, and seeing if that helps? (Since you have installed into /usr/local/bin, I am assuming you didn't use the slackbuild script, but perhaps you did anyway.)

Last edited by zsd; 06-16-2013 at 09:15 PM.
 
Old 06-20-2013, 02:54 AM   #3
conraid
Member
 
Registered: Feb 2008
Location: Leghorn, Tuscany, Italy
Distribution: Slackware
Posts: 111

Rep: Reputation: 33
Try to compile with option configure --whithout-nl


I've had to build with the option to avoid the segfault, but I do not know if it puts restrictions on the use.
http://www.slackers.it/repository/wireshark/

Otherwise, try switching the specific version of nl to configure
 
Old 07-02-2013, 05:54 PM   #4
JanZamoyski
LQ Newbie
 
Registered: May 2009
Location: Gdansk, Poland
Distribution: slackware64-14.0
Posts: 7

Rep: Reputation: 1
The problem is that the wireshark-1.10 is linked with a libnl-3 library, while libpcap points to libnl1 (old version of libnl) library. Those two conflict with each other causing a segmentation fault. To fix your problem just upgrade the tcpdump / libpcap suite to the latest stable version tcpdump 4.4.0 / libpcap 1.4.0, as from that version the libpcap links to libnl-3.

Regrads,
Adam

Last edited by JanZamoyski; 07-03-2013 at 07:40 AM.
 
Old 07-03-2013, 03:24 AM   #5
tolip
LQ Newbie
 
Registered: Jun 2013
Distribution: Slackware
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by JanZamoyski View Post
The problem is that the wireshark-1.10 is linked with a libnl-3 library, while libpcap points to libnl1 (old version of libnl) library. Those two conflict with each other causing a segmentation fault. To fix you problem just upgrade the tcpdump / libpcap suite to the latest stable version tcpdump 4.4.0 / libpcap 1.4.0, as from that version the libpcap links to libnl-3.

Regrads,
Adam
Thank you for the solution!!!
 
Old 07-03-2013, 03:00 PM   #6
flyinggeorge
Member
 
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 159

Rep: Reputation: 3
I was and still am having this same issue. I updated tcpdump and libcap to no avail, also tried building with --without-nl which returns "unrecognized option."

Code:
#dmesg | tail
[447240.038549] wireshark[6956]: segfault at 7f4db9ccd81c ip 00007f4dbb3719fe sp 00007fffa1c2f290 error 6 in libnl-genl-3.so.200.9.0[7f4dbb36e000+5000]
This does seem to be related to libnl for me, but I don't know how to get around it.
 
Old 07-03-2013, 03:10 PM   #7
JanZamoyski
LQ Newbie
 
Registered: May 2009
Location: Gdansk, Poland
Distribution: slackware64-14.0
Posts: 7

Rep: Reputation: 1
Quote:
Originally Posted by flyinggeorge View Post
I was and still am having this same issue. I updated tcpdump and libcap to no avail, also tried building with --without-nl which returns "unrecognized option."

Code:
#dmesg | tail
[447240.038549] wireshark[6956]: segfault at 7f4db9ccd81c ip 00007f4dbb3719fe sp 00007fffa1c2f290 error 6 in libnl-genl-3.so.200.9.0[7f4dbb36e000+5000]
This does seem to be related to libnl for me, but I don't know how to get around it.
Can you run the wireshark from within the GDB, then print the back-trace and paste it here? Exactly the same as it is described in the first post of this thread.

Also output from the
Code:
ldd /usr/lib64/libpcap.so
would help.

-Adam

Last edited by JanZamoyski; 07-03-2013 at 03:13 PM.
 
Old 07-03-2013, 04:06 PM   #8
flyinggeorge
Member
 
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 159

Rep: Reputation: 3
I have absolutely no idea how to use gdb.

Code:
bash-4.2# gdb wireshark
GNU gdb (GDB) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-slackware-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/bin/wireshark...done.
(gdb) bt
No stack.

As for ldd

Code:
bash-4.2# ldd /usr/lib64/libpcap.so
        linux-vdso.so.1 (0x00007fffe4d36000)
        libusb-1.0.so.0 => /usr/lib64/libusb-1.0.so.0 (0x00007fed68414000)
        libnl.so.1 => /usr/lib64/libnl.so.1 (0x00007fed681c5000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fed67e04000)
        librt.so.1 => /lib64/librt.so.1 (0x00007fed67bfc000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fed679e0000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fed676e4000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fed6888d000)
And

Code:
bash-4.2# ldd /usr/local/bin/wireshark 
        linux-vdso.so.1 (0x00007fff127ff000)
        libwiretap.so.3 => /usr/local/lib/libwiretap.so.3 (0x00007fbeb2675000)
        libwireshark.so.3 => /usr/local/lib/libwireshark.so.3 (0x00007fbeae6d2000)
        libwsutil.so.3 => /usr/local/lib/libwsutil.so.3 (0x00007fbeae4cc000)
        libpcap.so.1 => /usr/lib64/libpcap.so.1 (0x00007fbeae28d000)
        libgtk-x11-2.0.so.0 => /usr/lib64/libgtk-x11-2.0.so.0 (0x00007fbeadc5c000)
        libgdk-x11-2.0.so.0 => /usr/lib64/libgdk-x11-2.0.so.0 (0x00007fbead9a9000)
        libpangocairo-1.0.so.0 => /usr/lib64/libpangocairo-1.0.so.0 (0x00007fbead79d000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib64/libgdk_pixbuf-2.0.so.0 (0x00007fbead57e000)
        libcairo.so.2 => /usr/lib64/libcairo.so.2 (0x00007fbead2cf000)
        libpango-1.0.so.0 => /usr/lib64/libpango-1.0.so.0 (0x00007fbead084000)
        libgobject-2.0.so.0 => /usr/lib64/libgobject-2.0.so.0 (0x00007fbeace37000)
        libgmodule-2.0.so.0 => /usr/lib64/libgmodule-2.0.so.0 (0x00007fbeacc33000)
        libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0 (0x00007fbeac915000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fbeac61a000)
        libz.so.1 => /usr/lib64/libz.so.1 (0x00007fbeac404000)
        libnl-route-3.so.200 => /usr/lib64/libnl-route-3.so.200 (0x00007fbeac1bd000)
        libnl-genl-3.so.200 => /usr/lib64/libnl-genl-3.so.200 (0x00007fbeabfb8000)
        libnl-3.so.200 => /usr/lib64/libnl-3.so.200 (0x00007fbeabd9f000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fbeabb83000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fbeab7c3000)
        libgthread-2.0.so.0 => /usr/lib64/libgthread-2.0.so.0 (0x00007fbeab5c1000)
        librt.so.1 => /lib64/librt.so.1 (0x00007fbeab3b9000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007fbeab1b5000)
        libgcrypt.so.11 => /usr/lib64/libgcrypt.so.11 (0x00007fbeaaf37000)
        libgpg-error.so.0 => /usr/lib64/libgpg-error.so.0 (0x00007fbeaad34000)
        libusb-1.0.so.0 => /usr/lib64/libusb-1.0.so.0 (0x00007fbeaab24000)
        libnl.so.1 => /usr/lib64/libnl.so.1 (0x00007fbeaa8d5000)
        libXinerama.so.1 => /usr/lib64/libXinerama.so.1 (0x00007fbeaa6d3000)
        libXi.so.6 => /usr/lib64/libXi.so.6 (0x00007fbeaa4c4000)
        libXrandr.so.2 => /usr/lib64/libXrandr.so.2 (0x00007fbeaa2bc000)
        libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007fbeaa0ab000)
        libXcursor.so.1 => /usr/lib64/libXcursor.so.1 (0x00007fbea9ea0000)
        libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fbea9b9f000)
        libXcomposite.so.1 => /usr/lib64/libXcomposite.so.1 (0x00007fbea999d000)
        libXdamage.so.1 => /usr/lib64/libXdamage.so.1 (0x00007fbea979a000)
        libXfixes.so.3 => /usr/lib64/libXfixes.so.3 (0x00007fbea9594000)
        libatk-1.0.so.0 => /usr/lib64/libatk-1.0.so.0 (0x00007fbea9372000)
        libpixman-1.so.0 => /usr/lib64/libpixman-1.so.0 (0x00007fbea90ec000)
        libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00007fbea8ee3000)
        libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007fbea8bab000)
        libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007fbea898c000)
        libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007fbea8789000)
        libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00007fbea8584000)
        libpng14.so.14 => /usr/lib64/libpng14.so.14 (0x00007fbea835e000)
        libgio-2.0.so.0 => /usr/lib64/libgio-2.0.so.0 (0x00007fbea8012000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fbea7df8000)
        libpangoft2-1.0.so.0 => /usr/lib64/libpangoft2-1.0.so.0 (0x00007fbea7bcb000)
        libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00007fbea7995000)
        libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007fbea7709000)
        libbz2.so.1 => /lib64/libbz2.so.1 (0x00007fbea74f8000)
        libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007fbea72cf000)
        libffi.so.6 => /usr/lib64/libffi.so.6 (0x00007fbea70c7000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fbeb2942000)
        libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1 (0x00007fbea6eb0000)
Edit:

I think this is what you want from gdb:

Code:
(gdb) run
Starting program: /usr/local/bin/wireshark 
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib64/libgobject-2.0.so.0.3200.4-gdb.py", line 9, in <module>
    from gobject import register
  File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
ImportError: No module named backtrace
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff14839fe in genl_register () from /usr/lib64/libnl-genl-3.so.200

Last edited by flyinggeorge; 07-03-2013 at 04:11 PM.
 
Old 07-03-2013, 04:22 PM   #9
JanZamoyski
LQ Newbie
 
Registered: May 2009
Location: Gdansk, Poland
Distribution: slackware64-14.0
Posts: 7

Rep: Reputation: 1
You must update the tcpdump / libpcap suite to the latest stable version (tcpdump 4.4.0 / libpcap 1.4.0)

Yours libpcap.so:
Code:
bash-4.2# ldd /usr/lib64/libpcap.so
        linux-vdso.so.1 (0x00007fffe4d36000)
        libusb-1.0.so.0 => /usr/lib64/libusb-1.0.so.0 (0x00007fed68414000)
        libnl.so.1 => /usr/lib64/libnl.so.1 (0x00007fed681c5000)
it is linked against libnl.so.1 (version 1), thus it's most probably the libpcap version 1.3.0 or pre (as the libpcap version 1.4.0 links with libnl-3.so).

While the wireshark:
Code:
bash-4.2# ldd /usr/local/bin/wireshark 
        linux-vdso.so.1 (0x00007fff127ff000)
        libwiretap.so.3 => /usr/local/lib/libwiretap.so.3 (0x00007fbeb2675000)
        libwireshark.so.3 => /usr/local/lib/libwireshark.so.3 (0x00007fbeae6d2000)
        libwsutil.so.3 => /usr/local/lib/libwsutil.so.3 (0x00007fbeae4cc000)
        libpcap.so.1 => /usr/lib64/libpcap.so.1 (0x00007fbeae28d000)
        libgtk-x11-2.0.so.0 => /usr/lib64/libgtk-x11-2.0.so.0 (0x00007fbeadc5c000)
        libgdk-x11-2.0.so.0 => /usr/lib64/libgdk-x11-2.0.so.0 (0x00007fbead9a9000)
        libpangocairo-1.0.so.0 => /usr/lib64/libpangocairo-1.0.so.0 (0x00007fbead79d000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib64/libgdk_pixbuf-2.0.so.0 (0x00007fbead57e000)
        libcairo.so.2 => /usr/lib64/libcairo.so.2 (0x00007fbead2cf000)
        libpango-1.0.so.0 => /usr/lib64/libpango-1.0.so.0 (0x00007fbead084000)
        libgobject-2.0.so.0 => /usr/lib64/libgobject-2.0.so.0 (0x00007fbeace37000)
        libgmodule-2.0.so.0 => /usr/lib64/libgmodule-2.0.so.0 (0x00007fbeacc33000)
        libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0 (0x00007fbeac915000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fbeac61a000)
        libz.so.1 => /usr/lib64/libz.so.1 (0x00007fbeac404000)
        libnl-route-3.so.200 => /usr/lib64/libnl-route-3.so.200 (0x00007fbeac1bd000)
        libnl-genl-3.so.200 => /usr/lib64/libnl-genl-3.so.200 (0x00007fbeabfb8000)
        libnl-3.so.200 => /usr/lib64/libnl-3.so.200 (0x00007fbeabd9f000)
is using libnl-3 (version 3).

So you have a conflict that causes your segmentation fault.

In order to resolve this error please download the latest sources of the stable release for tcpdump/libpcap (mentioned above) and create the slackware packages for those (I've used the official slackbuild scripts without any changes), than upgrade the libpcap and tcpdump and viola!

-Adam

Last edited by JanZamoyski; 07-03-2013 at 04:42 PM.
 
Old 07-03-2013, 05:24 PM   #10
flyinggeorge
Member
 
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 159

Rep: Reputation: 3
I just built the latest of both of those (for the second time) from:

http://www.tcpdump.org/#latest-release

I got no errors, and I removed/re installed wireshark. Still, segfault.

Code:
bash-4.2# ldd /usr/lib64/libpcap.so
        linux-vdso.so.1 (0x00007fffcf881000)
        libusb-1.0.so.0 => /usr/lib64/libusb-1.0.so.0 (0x00007fac9263f000)
        libnl.so.1 => /usr/lib64/libnl.so.1 (0x00007fac923f0000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fac9202f000)
        librt.so.1 => /lib64/librt.so.1 (0x00007fac91e27000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fac91c0b000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fac9190f000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fac92ab8000)
What could I possibly be doing wrong?
 
Old 07-04-2013, 01:42 PM   #11
JanZamoyski
LQ Newbie
 
Registered: May 2009
Location: Gdansk, Poland
Distribution: slackware64-14.0
Posts: 7

Rep: Reputation: 1
We need to investigate the building of the libpcap library then.

Can you paste the output of following commands
Code:
locate libnl-3
And from your build directory of the libpcap package (it's probably the /tmp/libpcap-1.4.0 after running the SlackBuild script)
Code:
more config.h | grep NL
-Adam
 
Old 07-04-2013, 07:36 PM   #12
flyinggeorge
Member
 
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 159

Rep: Reputation: 3
Okay, I'm building from source, not using a slackbuild. I suppose I will give the slackbuild a shot just for fun though.

Code:
bash-4.2# locate libnl-3
/usr/lib64/pkgconfig/libnl-3.0.pc
/usr/lib64/libnl-3.so.200
/usr/lib64/libnl-3.so.200.9.0
/usr/lib64/libnl-3.so
/usr/lib64/libnl-3.la
/usr/doc/libnl-3.2.11
/usr/doc/libnl-3.2.11/README
/usr/doc/libnl-3.2.11/COPYING
/usr/doc/libnl-3.2.11/ChangeLog
And...

Code:
bash-4.2# more config.h | grep NL
#define HAVE_LIBNL 1
/* #undef HAVE_LIBNL_2_x */
#define HAVE_LIBNL_3_x 1
/* libnl has NLE_FAILURE */
#define HAVE_LIBNL_NLE 1
#define HAVE_LIBNL_SOCKETS 1
 
Old 07-05-2013, 02:01 PM   #13
JanZamoyski
LQ Newbie
 
Registered: May 2009
Location: Gdansk, Poland
Distribution: slackware64-14.0
Posts: 7

Rep: Reputation: 1
Strange...

Code:
bash-4.2# more config.h | grep NL
#define HAVE_LIBNL 1
/* #undef HAVE_LIBNL_2_x */
#define HAVE_LIBNL_3_x 1 (This line means that libpcap will be linked with libnl-3)
/* libnl has NLE_FAILURE */
#define HAVE_LIBNL_NLE 1
#define HAVE_LIBNL_SOCKETS 1
Ok, let's go though step by step and verify. For now let's focus on the libpcap lib.

If any of that steps fails than just tell me which one


1. Download latest libpcap release from here (link)
2. Download slackbuild script for libpcap from here (link) to the same directory as libpcap sources
3. run libpcap.SlackBuild
Verification step: the /tmp/package-libpcap/usr/lib64/libpcap.so.1.4.0 is created
4. run command
Code:
ldd /tmp/package-libpcap/usr/lib64/libpcap.so.1.4.0
Verification step: one of lines should be similar (linking with libnl-3)
Code:
libnl-3.so.200 => /usr/lib64/libnl-3.so.200
If you see a linking with libnl-1 that there's no sense in continuing.
5. run
Code:
upgrade --reinstall /tmp/libpcap-1.4.0-x86_64-1.txz
6. run command
Code:
ldd /usr/lib64/libpcap.so.1.4.0
Verification step: one of lines should be similar (linking with libnl-3)
Code:
libnl-3.so.200 => /usr/lib64/libnl-3.so.200
-Adam
 
Old 07-06-2013, 11:15 AM   #14
flyinggeorge
Member
 
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 159

Rep: Reputation: 3
I installed the slackpackage and wireshark works just fine now. Thanks for your help, but can you offer any sort of explanation as to why using the slackpackage made a difference? It was the same version of the package. I didn't even download the one you linked me to, just the slackbuild to see if it would work and magically it did. But what went wrong before?
 
Old 07-06-2013, 12:41 PM   #15
JanZamoyski
LQ Newbie
 
Registered: May 2009
Location: Gdansk, Poland
Distribution: slackware64-14.0
Posts: 7

Rep: Reputation: 1
Glad to hear that.

My first bet is that you were installing the updated libpcap to the /usr/lib instead of /usr/lib64, but there could be many explanations for this.

Regards,
Adam
 
1 members found this post helpful.
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
google-chrome segfaults on Slackware64 -current TL_CLD Slackware 26 05-27-2012 10:13 AM
[SOLVED] Slackware64 13.37 KVM GUEST Xorg segfaults when starting KDE (workaround) rtguille Slackware 2 05-15-2011 05:13 PM
Mutt Segfaults on Slackware64 13.1 tpreitzel Slackware 4 08-28-2010 06:41 AM
Slackware64 madplay segfaults disturbed1 Slackware 3 09-24-2009 05:46 AM
Slackware64-current: Creation of LUKS encrypted partition segfaults titopoquito Slackware 16 08-16-2009 04:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:44 AM.

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