Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
I am trying to installl ethereal,
which needs gtk+
which needs pongo
which needs fontconfig
which needs freetype
which I have as the rpm but fontconfig wont pick it up and when I try install it from source it configures but will not make and says:
freetype-1.3.1/test/arch/unix/../../arch/unix/gwin_x11.c
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:22:22: X11/Xlib.h: No such file or directory
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:23:23: X11/Xutil.h: No such file or directory
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:24:28: X11/cursorfont.h: No such file or directory
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:76: syntax error before "win"
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:76: warning: type defaults to `int' in declaration of `win'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:76: ISO C forbids data definition with no type or storage class
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:77: syntax error before "gcblack"
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:77: warning: type defaults to `int' in declaration of `gcblack'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:77: ISO C forbids data definition with no type or storage class
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:78: syntax error before "color"
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:78: warning: type defaults to `int' in declaration of `color'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:78: ISO C forbids data definition with no type or storage class
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:80: syntax error before '*' token
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:80: warning: type defaults to `int' in declaration of `display'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:80: ISO C forbids data definition with no type or storage class
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:83: syntax error before '*' token
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:83: warning: type defaults to `int' in declaration of `image'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:83: ISO C forbids data definition with no type or storage class
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:85: syntax error before '*' token
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:85: warning: type defaults to `int' in declaration of `visual'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:85: ISO C forbids data definition with no type or storage class
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:86: syntax error before "colormap"
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:86: warning: type defaults to `int' in declaration of `colormap'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:86: ISO C forbids data definition with no type or storage class
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:88: syntax error before "gray"
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:88: warning: type defaults to `int' in declaration of `gray'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:88: ISO C forbids data definition with no type or storage class
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:90: syntax error before "idle"
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:90: warning: type defaults to `int' in declaration of `idle'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:90: ISO C forbids data definition with no type or storage class
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:91: syntax error before "busy"
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:91: warning: type defaults to `int' in declaration of `busy'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:91: ISO C forbids data definition with no type or storage class
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c: In function `Driver_Restore_Mode':
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:105: warning: implicit declaration of function `XUnmapWindow'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:106: warning: implicit declaration of function `XCloseDisplay'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c: In function `x11init':
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:117: `XTextProperty' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:117: (Each undeclared identifier is reported only once
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:117: for each function it appears in.)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:117: syntax error before "xtp"
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:118: `XSizeHints' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:119: `XSetWindowAttributes' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:128: warning: implicit declaration of function `XrmInitialize'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:130: warning: implicit declaration of function `XOpenDisplay'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:130: warning: assignment makes pointer from integer without a cast
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:133: warning: implicit declaration of function `DefaultScreen'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:134: warning: implicit declaration of function `DefaultColormap'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:135: warning: implicit declaration of function `DefaultDepth'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:136: warning: implicit declaration of function `DefaultVisual'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:136: warning: assignment makes pointer from integer without a cast
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:138: warning: implicit declaration of function `XCreateFontCursor'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:138: `XC_left_ptr' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:139: `XC_watch' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:144: `XPixmapFormatValues' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:144: `formats' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:147: warning: implicit declaration of function `XListPixmapFormats'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:171: warning: implicit declaration of function `XFree'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:179: `xswa' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:179: warning: implicit declaration of function `BlackPixel'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:180: warning: implicit declaration of function `WhitePixel'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:183: `KeyPressMask' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:183: `ExposureMask' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:185: warning: implicit declaration of function `XCreateWindow'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:186: warning: implicit declaration of function `RootWindow'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:193: `InputOutput' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:195: `CWBackPixel' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:195: `CWBorderPixel' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:195: `CWEventMask' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:195: `CWCursor' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:198: warning: implicit declaration of function `XMapWindow'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:200: warning: implicit declaration of function `XCreateGC'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:202: warning: implicit declaration of function `XSetForeground'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:203: warning: implicit declaration of function `XSetBackground'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:212: request for member `red' in something not a structure or union
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:213: request for member `green' in something not a structure or union
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:214: request for member `blue' in something not a structure or union
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:216: warning: implicit declaration of function `XAllocColor'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:220: warning: implicit declaration of function `XCreateImage'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:223: `ZPixmap' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:223: `XYBitmap' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:229: warning: assignment makes pointer from integer without a cast
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:235: request for member `byte_order' in something not a structure or union
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:235: `MSBFirst' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:236: request for member `bitmap_bit_order' in something not a structure or union
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:240: `xtp' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:245: `xsh' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:250: `PPosition' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:250: `PSize' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:253: warning: implicit declaration of function `XSetWMProperties'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c: In function `Put_Image':
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:293: warning: implicit declaration of function `XPutImage'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c: In function `Driver_Display_Bitmap':
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:303: warning: implicit declaration of function `XClearWindow'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:306: warning: implicit declaration of function `XStoreName'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:357: warning: implicit declaration of function `XPutPixel'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:357: request for member `pixel' in something not a structure or union
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c: In function `Get_Event':
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:380: warning: ISO C forbids nested functions
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:380: syntax error before "x_event"
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:381: `KeySym' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:386: `XComposeStatus' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:386: syntax error before "compose"
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:391: warning: implicit declaration of function `XDefineCursor'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:395: warning: implicit declaration of function `XNextEvent'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:395: `x_event' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:399: `KeyPress' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:400: warning: implicit declaration of function `XLookupString'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:403: `key' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:404: `compose' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:411: `MappingNotify' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:412: warning: implicit declaration of function `XRefreshKeyboardMapping'
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:415: `Expose' undeclared (first use in this function)
/root/freetype-1.3.1/test/arch/unix/gwin_x11.c:432: warning: implicit declaration of function `XFlush'
make[1]: *** [gwin_x11.o] Error 1
make[1]: Leaving directory `/root/freetype-1.3.1/test'
make: *** [tttest] Error 2
it's after x11 headers, install xorg-x11-devel or equivalent. i'd wonder why you want to do all this from source... you've probably got gtk installed already... just not the -devel rpm
I have rpm's for gtk+ and gtk+devel
[root@bubba ethereal-0.10.10]# rpm -q gtk+
gtk+-1.2.10-31
[root@bubba ethereal-0.10.10]# rpm -q gtk+-devel
gtk+-devel-1.2.10-31
but ethereal seems like it needs it installed from source so its recognized in pkg-config
checking for pkg-config... /usr/local/bin/pkg-config
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
checking for pkg-config... (cached) /usr/local/bin/pkg-config
erm... ok so if we just stop and look at what you have there:
"gtk+-1.2.10-31" vs "checking for GTK+ - version >= 2.0.0... no"
clearly that's not being satisfied... in actual fact if you do run "rpm -qa | gerp gtk" you'll probably see gtk2 in there anyway.. but as i said before, you're missing the gtk2-devel rpm. You're wrong to think it needs to be installed from source, that's totally incorrect, you just need the -devel rpms.
I have gtk2 and gtk2-devel now, but it still gives me the same error:
[root@bubba nickgi]# rpm -qa | grep gtk
gtk+-1.2.10-31
gtk2-2.2.4-15
gtk2-devel-2.2.4-15
checking for pkg-config... /usr/local/bin/pkg-config
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
checking for pkg-config... (cached) /usr/local/bin/pkg-config
checking for GLIB - version >= 2.0.0... yes (version 2.6.0)
ok, now that's a fair enough issue... erm... what happens if you run "pkg-config --modversion gtk+-2.0"? you should have a .pc file for gtk2 in /usr/lib/pkgconfig (or maybe /usr/local/lib/pkgconfig). One possible cause is that it was placed in the wrong path, e.g. ..local/lib.. instead of just ..lib.. but that would imply usage of a non-standard rpm for your distro.
you know you could still easily install etheral from an rpm and avoid this being an issue if you just want to get it working.
How do I run ethereal after installing it via the RPM?
It doesnt seem to be finding the ethereal binary:
[root@business root]# ethereal
bash: ethereal: command not found
[root@business root]# ethereal
bash: ethereal: command not found
The install seems to have worked properly:
[root@business root]# yum install ethereal
Gathering header information file(s) from server(s)
Server: CentOS-3 - Addons
Server: CentOS-3 - Base
Server: CentOS-3 - Extras
Server: CentOS-3 - Updates
Finding updated packages
Downloading needed headers
nasm-0-0.98.35-3.EL3.i386 100% |=========================| 3.2 kB 00:00
nasm-doc-0-0.98.35-3.EL3. 100% |=========================| 2.6 kB 00:00
nasm-rdoff-0-0.98.35-3.EL 100% |=========================| 2.4 kB 00:00
Resolving dependencies
..Dependencies resolved
I will do the following:
[install: ethereal 0.10.10-1.EL3.1.i386]
I will install/upgrade these to satisfy the dependencies:
[deps: net-snmp-libs 5.0.9-2.30E.12.i386]
[deps: net-snmp 5.0.9-2.30E.12.i386]
[deps: libpcap 14:0.7.2-7.E3.2.i386]
Is this ok [y/N]: y
Downloading Packages
Getting net-snmp-libs-5.0.9-2.30E.12.i386.rpm
net-snmp-libs-5.0.9-2.30E 100% |=========================| 1.4 MB 00:15
Getting ethereal-0.10.10-1.EL3.1.i386.rpm
ethereal-0.10.10-1.EL3.1. 100% |=========================| 5.0 MB 00:59
Getting net-snmp-5.0.9-2.30E.12.i386.rpm
net-snmp-5.0.9-2.30E.12.i 100% |=========================| 713 kB 00:08
Getting libpcap-0.7.2-7.E3.2.i386.rpm
libpcap-0.7.2-7.E3.2.i386 100% |=========================| 153 kB 00:02
Running test transaction:
Test transaction complete, Success!
libpcap 100 % done 1/4
net-snmp-libs 100 % done 2/4
net-snmp 100 % done 3/4
ethereal 100 % done 4/4
Installed: ethereal 0.10.10-1.EL3.1.i386
Dep Installed: net-snmp-libs 5.0.9-2.30E.12.i386 net-snmp 5.0.9-2.30E.12.i386 libpcap 14:0.7.2-7.E3.2.i386
Transaction(s) Complete
[root@business root]# ethereal
bash: ethereal: command not found
[root@business root]#
[root@business root]# rpm -qa ethereal
ethereal-0.10.10-1.EL3.1
ok, that caught me out too... it's the additional ethereal-gnome package you need. I guess that as there's so much core clever stuff in ethereal that is used by other apps, they factored out the Xwindows part.. makes sense i guess.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.