customize sysrescue emerge -av net-analyzer/wireshark fail

Post questions about how to make a customized SystemRescueCd, and if you have problems to install new packages. Please read the handbook first.
unixfan
Posts: 3
Joined: 29 Dec 2015, 01:33

customize sysrescue emerge -av net-analyzer/wireshark fail

Postby unixfan » 29 Dec 2015, 03:26

I want customize systemrescuecd-x86-4.6.1.iso.
For research purpose, I use systemrescuecd as virtual router with many network interfaces and then I want to sniff "realtime" routed traffic in GUI.
And I try to install GUI version of Wireshark into SystemRescueCD.
I boot in Vmware Vm from systemrescuecd-x86-4.6.1.iso, use default kernel at boot.

Code: Select all

sysresccd / # uname -a
Linux sysresccd 3.14.56-std461-amd64 #2 SMP Tue Oct 27 19:46:17 UTC 2015 x86_64 Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz GenuineIntel GNU/Linux
sysresccd / #


I use this doc:
http://www.sysresccd.org/Sysresccd-manu ... emRescueCd

for create filesystem (/dev/sda1), "Extract the current files from the sysrcd.dat image" and "Download and extract a recent portage snapshot"

I use this version of portage

Code: Select all

sysresccd / # ls -la / | grep portage
-rw-r--r--   1 root root 64154880 Dec 29 10:47 portage-20151227.tar.xz
sysresccd / #


Code: Select all

sysresccd / # ls -la /usr/portage/net-analyzer/wireshark/
total 196
drwxr-xr-x   3 portage portage   4096 Dec 28 00:08 .
drwxr-xr-x 289 portage portage  12288 Dec 17 08:01 ..
-rw-r--r--   1 portage portage  10058 Dec 27 15:43 ChangeLog
-rw-r--r--   1 portage portage 107469 Nov  9 05:01 ChangeLog-2015
drwxr-xr-x   2 portage portage   4096 Dec 25 12:01 files
-rw-r--r--   1 portage portage   8852 Dec 27 15:43 Manifest
-rw-r--r--   1 portage portage   2559 Dec 24 13:01 metadata.xml
-rw-r--r--   1 portage portage   6423 Nov  8 00:01 wireshark-1.12.8.ebuild
-rw-r--r--   1 portage portage   6658 Oct 23 05:31 wireshark-1.12.8-r1.ebuild
-rw-r--r--   1 portage portage   6752 Dec 27 08:01 wireshark-2.0.0.ebuild
-rw-r--r--   1 portage portage   6968 Dec 27 08:01 wireshark-2.0.0-r1.ebuild
-rw-r--r--   1 portage portage   6847 Dec 27 08:01 wireshark-99999999.ebuild
sysresccd / #


I try to emerge net-analyzer/wireshark with use flags gtk3
net-analyzer/wireshark -ipv6 -qt4 -netlink
or qt4
net-analyzer/wireshark -ipv6 -gtk3 -netlink
both way need package: x11-apps/xprop-1.2.2
and build operation fail.

Code: Select all

sysresccd / # cat /etc/portage/package.use | grep wireshark
net-analyzer/wireshark -ipv6 -qt4 -netlink
#net-analyzer/wireshark -ipv6 -gtk3 -netlink
sysresccd / #



Code: Select all

sysresccd / # equery u net-analyzer/wireshark
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for net-analyzer/wireshark-2.0.0:
 U I
 - - adns                 : Use the GNU net-dns/c-ares library to resolve DNS names
 + - caps                 : Use Linux capabilities library to control privilege
 - - cpu_flags_x86_sse4_2 : Enable SSE4.2 instruction support
 + + crypt                : Use dev-libs/libgcrypt to decrypt traffic
 - - doc                  : Add extra documentation (API, Javadoc, etc). It is recommended to enable
                            per package instead of globally
 - - doc-pdf              : Build documentation in pdf format (US and a4 paper sizes)
 + - filecaps             : Use Linux file capabilities to control privilege rather than set*id (this
                            is orthogonal to USE=caps which uses capabilities at runtime e.g. libcap)
 - - geoip                : Add geoip support for country and city lookup based on IPs
 + - gtk3                 : Build the wireshark executable with a GTK+ UI version 3.
 + + ipv6                 : Add support for IP version 6
 - - kerberos             : Add kerberos support
 - - lua                  : Enable Lua scripting support
 + - netlink              : Use dev-libs/libnl
 + - pcap                 : Use net-libs/libpcap for network packet capturing (build dumpcap, rawshark)
 - - portaudio            : Add support for the crossplatform portaudio audio API
 + - qt4                  : Build the wireshark executable with an experimental Qt UI instead of GTK+.
 - - sbc                  : Use media-libs/sbc for playing back SBC encoded packets
 - - smi                  : Use net-libs/libsmi to resolve numeric OIDs into human readable format
 + + ssl                  : Add support for Secure Socket Layer connections
 + + zlib                 : Add support for zlib (de)compression
sysresccd / #


Code: Select all

sysresccd / # emerge -av net-analyzer/wireshark

 * IMPORTANT: 19 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


 * IMPORTANT: 2 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] app-text/docbook-xml-dtd-4.2-r2:4.2::gentoo  0 KiB
[ebuild  N     ] x11-apps/xprop-1.2.2::gentoo  0 KiB
[ebuild  N     ] www-client/w3m-0.5.3-r5::gentoo  USE="nls ssl unicode -X -fbcon -gpm -gtk -imlib -lynxkeymap (-migemo) -nntp -vanilla -xface" LINGUAS="-ja" 0 KiB
[ebuild  N     ] virtual/w3m-0::gentoo  0 KiB
[ebuild  N     ] app-text/xmlto-0.0.26-r1::gentoo  USE="text -latex" 0 KiB
[ebuild  N     ] x11-misc/xdg-utils-1.1.0_rc2::gentoo  USE="perl -doc" 0 KiB
[ebuild  N     ] dev-qt/qtcore-4.8.6-r2:4::gentoo  USE="exceptions glib iconv ssl (-aqua) -debug -icu -pch -qt3support" 197,310 KiB
[ebuild  N     ] dev-qt/qttranslations-4.8.6-r1:4::gentoo  0 KiB
[ebuild  N     ] dev-qt/qtscript-4.8.6-r2:4::gentoo  USE="exceptions jit (-aqua) -debug -pch" 0 KiB
[ebuild  N     ] dev-qt/qtgui-4.8.6-r4:4::gentoo  USE="accessibility exceptions glib xv (-aqua) -cups -debug -egl -gtkstyle -mng -nas -nis -pch -qt3support -tiff -trace -xinerama" 51 KiB
[ebuild  N     ] net-analyzer/wireshark-2.0.0:0/2.0.0::gentoo  USE="caps crypt filecaps gtk3 ipv6 netlink pcap qt4 ssl zlib -adns -doc -doc-pdf -geoip -kerberos -lua -portaudio (-qt5) -sbc (-selinux) -smi" CPU_FLAGS_X86="-sse4_2" 30,251 KiB

Total: 11 packages (11 new), Size of downloads: 227,611 KiB

Would you like to merge these packages? [Yes/No]


Code: Select all

...
.o /var/tmp/portage/x11-apps/xprop-1.2.2/work/xprop-1.2.2/xprop.c
/var/tmp/portage/x11-apps/xprop-1.2.2/work/xprop-1.2.2/clientwin.c:22:23: fatal error: X11/Xatom.h: No such file or directory
 #include <X11/Xatom.h>
                       ^
/var/tmp/portage/x11-apps/xprop-1.2.2/work/xprop-1.2.2/dsimple.c:29:21: fatal error: X11/Xos.h: No such file or directory
 #include <X11/Xos.h>
                     ^
compilation terminated.
compilation terminated.
/var/tmp/portage/x11-apps/xprop-1.2.2/work/xprop-1.2.2/xprop.c:32:22: fatal error: X11/Xlib.h: No such file or directory
 #include <X11/Xlib.h>
                      ^
compilation terminated.
Makefile:491: recipe for target 'xprop.o' failed
make[2]: *** [xprop.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Makefile:491: recipe for target 'clientwin.o' failed
make[2]: *** [clientwin.o] Error 1
Makefile:491: recipe for target 'dsimple.o' failed
make[2]: *** [dsimple.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/x11-apps/xprop-1.2.2/work/xprop-1.2.2_build'
Makefile:507: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/x11-apps/xprop-1.2.2/work/xprop-1.2.2_build'
Makefile:376: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: x11-apps/xprop-1.2.2::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=x11-apps/xprop-1.2.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-apps/xprop-1.2.2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-apps/xprop-1.2.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-apps/xprop-1.2.2/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-apps/xprop-1.2.2/work/xprop-1.2.2_build'
 * S: '/var/tmp/portage/x11-apps/xprop-1.2.2/work/xprop-1.2.2'

>>> Failed to emerge x11-apps/xprop-1.2.2, Log file:

>>>  '/var/tmp/portage/x11-apps/xprop-1.2.2/temp/build.log'

 * Messages for package x11-apps/xprop-1.2.2:

 * ERROR: x11-apps/xprop-1.2.2::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=x11-apps/xprop-1.2.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-apps/xprop-1.2.2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-apps/xprop-1.2.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-apps/xprop-1.2.2/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-apps/xprop-1.2.2/work/xprop-1.2.2_build'
 * S: '/var/tmp/portage/x11-apps/xprop-1.2.2/work/xprop-1.2.2'

!!! existing preserved libs:
>>> package: sys-fs/progsreiserfs-0.3.1_rc8
 *  - /usr/lib/libreiserfs-0.3.so.0
 *  - /usr/lib/libreiserfs-0.3.so.0.0.1
 *      used by /usr/bin/testdisk (app-admin/testdisk-7.0-r2)
 *  - /usr/lib/libdal-0.3.so.0
 *  - /usr/lib/libdal-0.3.so.0.0.1
>>> package: sys-devel/autogen-5.15
 *  - /usr/lib/libopts.so.25
 *  - /usr/lib/libopts.so.25.11.3
 *      used by /usr/bin/certtool (net-libs/gnutls-3.3.17.1)
 *      used by /usr/bin/gnutls-cli (net-libs/gnutls-3.3.17.1)
 *      used by /usr/bin/gnutls-cli-debug (net-libs/gnutls-3.3.17.1)
 *      used by 4 other files
Use emerge @preserved-rebuild to rebuild packages using these libraries

 * IMPORTANT: 2 config files in '/etc' need updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.

 * IMPORTANT: 19 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


other log here:
http://pastebin.com/j9MydD3G

Return to “Customization and installing new packages”

Who is online

Users browsing this forum: No registered users and 2 guests