Hi.
I've been really busy, but I realized I needed to summarize. Here it is.
First, the solution. Following the solution is the original question:
I would like to thank:
'Arthur Darren Dunham'
John Kennedy
Michael Grice
Gabriel Rosenkoetter
Solution.
I got the thing to work, bot the GUI and the command line. I originally got
the gtk+ and glib packages. They seemed to be missing some parts, but I'm
not sure what. So I downloaded the tarballs and then compiled and installed
them. That solved my problem.
One peculiar thing about nmap is that when I run it on some of my Sun boxes,
sometimes nmap affects inetd. It affects inetd by disallowing any new
connections. I have re-start inetd so new connections can be made. Any
ideas on why?
Summary:
I was reading this article:
http://www.sunworld.com/sunworldonline/swol-05-2000/swol-05-security.html
<http://www.sunworld.com/sunworldonline/swol-05-2000/swol-05-security.html>
and went to part 2 of the article. It mentions a tool called nmap. I
downloaded it onto my E450 with Solaris 7 running, with gcc, glib, gtk,
etc., but I keep on getting the following error. What am I doing wrong?
checking for GTK - version >= 1.0.0... ./configure: /usr/local/bin: cannot
execute
./configure: /usr/local/bin: cannot execute
./configure: /usr/local/bin: cannot execute
./configure: /usr/local/bin: cannot execute
./configure: /usr/local/bin: cannot execute
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 was incorrectly
installed
*** or that you have moved GTK since it was installed. In the latter case,
you
*** may want to edit the gtk-config script: /usr/local/bin
configure: warning: NMAPFE WILL NOT BE BUILT-BUT NMAP SHOULD STILL WORK
creating ./config.status
creating Makefile
Here is the config.log from the nampfe subdirectory:
This file contains any messages produced by compilers while running
configure, to aid debugging if configure makes a mistake.
configure:537: checking for gcc
configure:650: checking whether the C compiler (gcc ) works
configure:666: gcc -o conftest conftest.c 1>&5
configure:692: checking whether the C compiler (gcc ) is a cross-compiler
configure:697: checking whether we are using GNU C
configure:725: checking whether gcc accepts -g
configure:810: checking for gtk-config
configure:845: checking for GTK - version >= 1.0.0
configure:946: gcc -o conftest -g -O2 conftest.c 1>&5
configure: In function 'main':
configure:889: parse error before ')'
configure:890: parse error before ')'
configure:891: parse error before ')'
configure:894: parse error before ','
configure: failed program was:
#line 868 "configure"
#include "confdefs.h"
#include <gtk/gtk.h>
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
int major, minor, micro;
char *tmp_version;
system ("touch conf.gtktest");
/* HP/UX 9 (%@#!) writes to sscanf strings */
tmp_version = g_strdup("1.0.0");
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
printf("%s, bad version string\n", "1.0.0"); exit(1);
}
if ((gtk_major_version != ) ||
(gtk_minor_version != ) ||
(gtk_micro_version != ))
{
printf("\n*** 'gtk-config-version' returned %d.%d.%d, but GTK+
(%d.%d.%d)\n",
, , ,
gtk_major_version, gtk_minor_version, gtk_micro_version); printf
("*** was found! If gtk-config was correct, then it is best\n"); printf
("*** to remove the old version of GTK+. You may also be able to fix the
error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment
variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have
run ldconfig if that is\n"); printf("*** required on your system.\n");
printf("*** If gtk-config was wrong, set the environment variable
GTK_CONFIG\n"); printf("*** to point to the correct copy of gtk-config, and
remove the file config.cache\n"); printf("*** before re-running
configure\n");
}
#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined
(GTK_MICRO_VERSION)
else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
(gtk_minor_version != GTK_MINOR_VERSION) ||
(gtk_micro_version != GTK_MICRO_VERSION))
{
printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
printf("*** library (version %d.%d.%d)\n",
gtk_major_version, gtk_minor_version, gtk_micro_version);
}
#endif /* defined (GTK_MAJOR_VERSION) ... */
else
{
if ((gtk_major_version > major) ||
((gtk_major_version == major) && (gtk_minor_version > minor)) ||
((gtk_major_version == major) && (gtk_minor_version == minor) &&
(gtk_micro_version >= micro)))
{
return 0;
}
else
{
printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
gtk_major_version, gtk_minor_version,
gtk_micro_version);
printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest
version of\n",
major, minor, micro); printf("*** GTK+ is always available from
ftp://ftp.gtk.org.\n"); <ftp://ftp.gtk.org.\n> printf("***\n"); printf("***
If you have already installed a sufficiently new version, this error\n");
printf("*** probably means that the wrong copy of the gtk-config shell
script is\n"); printf("*** being found. The easiest way to fix this is to
remove the old version\n"); printf("*** of GTK+, but you can also set the
GTK_CONFIG environment to point to the\n"); printf("*** correct copy of
gtk-config. (In this case, you will have to\n"); printf("*** modify your
LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
printf("*** so that the correct libraries are found at run-time))\n");
}
}
return 1;
}
configure:990: gcc -o conftest -g -O2 conftest.c 1>&5
Undefined first referenced
symbol in file
gtk_minor_version /var/tmp/ccCdaijF.o
gtk_micro_version /var/tmp/ccCdaijF.o
gtk_major_version /var/tmp/ccCdaijF.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 980 "configure"
#include "confdefs.h"
#include <gtk/gtk.h>
#include <stdio.h>
int main() { return ((gtk_major_version) || (gtk_minor_version) ||
(gtk_micro_version));
; return 0; }
I'm at a loss. Can somebody please help! Thanks.
Grant
S
U BEFORE POSTING please READ the FAQ located at
N ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/faq
. and the list POLICY statement located at
M ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/policy
A To submit questions/summaries to this list send your email message to:
N sun-managers@ececs.uc.edu
A To unsubscribe from this list please send an email message to:
G majordomo@sunmanagers.ececs.uc.edu
E and in the BODY type:
R unsubscribe sun-managers
S Or
. unsubscribe sun-managers original@subscription.address
L To view an archive of this list please visit:
I http://www.latech.edu/sunman.html
S
T
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:12 CDT