Compile SATAN 1.1.1 w/gcc?

Compile SATAN 1.1.1 w/gcc?

Post by Steven L Coope » Sat, 28 Feb 1998 04:00:00



Help!  I need a clue-by-four!

We are trying to compile SATAN 1.1.1 on a 5.0.4 box with gcc.  We get major
errors in the first file (rex.c) so we are stuck.  We tried the Makefile
options that Jean-Pierre gave years ago, but that did not fix it.  Could
someone tell me if this is a waste of time, or what we are missing?

I saw one post that referred to SATAN v1.1.4 that was supposed to be "more"
SCO, but I cannot find any site that has anything over 1.1.1?  I assume
someone just mistyped it...

Steps taken:
Installed 5.0.4
Installed Headers and Libs from CD
Downloaded/installed gcc (compiler and make) from SCO Skunkwork site
Downloaded SATAN 1.1.1 and added sco option (per Jean-Pierre post from
1995) to Makefile
note: SATAN config files were modified for SCO system...

Thx,
Steve
--
Steven L Cooper
Manager, Systems Engineering
---------------------------------------
Please reply to NG only, so others may be enlightened...
The views expressed here are mine and
you can't have them...unless you agree!

 
 
 

Compile SATAN 1.1.1 w/gcc?

Post by Russell Conne » Sat, 28 Feb 1998 04:00:00


I was unable to get anything to compile under gcc, including perl. BUT
here is a few ideas:
run "make linux" and follow the directions.
make a batch file called "whoami" to run "who am i"
use "make dgux" this is a system 3 like SCO.
AND, get a free, non commmerical, demo only cc licence for home developers
from sco's site, and use it on a home machine and compile satan and then
move the compiled package to the right server.
Of course you need perl as well to run satan.



Quote:> Help!  I need a clue-by-four!

> We are trying to compile SATAN 1.1.1 on a 5.0.4 box with gcc.  We get
major
> errors in the first file (rex.c) so we are stuck.  We tried the Makefile
> options that Jean-Pierre gave years ago, but that did not fix it.  Could
> someone tell me if this is a waste of time, or what we are missing?

> I saw one post that referred to SATAN v1.1.4 that was supposed to be
"more"
> SCO, but I cannot find any site that has anything over 1.1.1?  I assume
> someone just mistyped it...

> Steps taken:
> Installed 5.0.4
> Installed Headers and Libs from CD
> Downloaded/installed gcc (compiler and make) from SCO Skunkwork site
> Downloaded SATAN 1.1.1 and added sco option (per Jean-Pierre post from
> 1995) to Makefile
> note: SATAN config files were modified for SCO system...

> Thx,
> Steve
> --
> Steven L Cooper
> Manager, Systems Engineering
> ---------------------------------------
> Please reply to NG only, so others may be enlightened...
> The views expressed here are mine and
> you can't have them...unless you agree!



- Show quoted text -

Quote:> Help!  I need a clue-by-four!

> We are trying to compile SATAN 1.1.1 on a 5.0.4 box with gcc.  We get
major
> errors in the first file (rex.c) so we are stuck.  We tried the Makefile
> options that Jean-Pierre gave years ago, but that did not fix it.  Could
> someone tell me if this is a waste of time, or what we are missing?

> I saw one post that referred to SATAN v1.1.4 that was supposed to be
"more"
> SCO, but I cannot find any site that has anything over 1.1.1?  I assume
> someone just mistyped it...

> Steps taken:
> Installed 5.0.4
> Installed Headers and Libs from CD
> Downloaded/installed gcc (compiler and make) from SCO Skunkwork site
> Downloaded SATAN 1.1.1 and added sco option (per Jean-Pierre post from
> 1995) to Makefile
> note: SATAN config files were modified for SCO system...

> Thx,
> Steve
> --
> Steven L Cooper
> Manager, Systems Engineering
> ---------------------------------------
> Please reply to NG only, so others may be enlightened...
> The views expressed here are mine and
> you can't have them...unless you agree!


 
 
 

Compile SATAN 1.1.1 w/gcc?

Post by Jean-Pierre Radle » Sun, 01 Mar 1998 04:00:00


Steven L Cooper telecommunicated (on 27Feb):
| We are trying to compile SATAN 1.1.1 on a 5.0.4 box with gcc.  We get major
| errors in the first file (rex.c) so we are stuck.  We tried the Makefile
| options that Jean-Pierre gave years ago, but that did not fix it.  Could
| someone tell me if this is a waste of time, or what we are missing?
|
| I saw one post that referred to SATAN v1.1.4 that was supposed to be "more"
| SCO, but I cannot find any site that has anything over 1.1.1?  I assume
| someone just mistyped it...
|
| Steps taken:
| Installed 5.0.4
| Installed Headers and Libs from CD
| Downloaded/installed gcc (compiler and make) from SCO Skunkwork site
| Downloaded SATAN 1.1.1 and added sco option (per Jean-Pierre post from
| 1995) to Makefile
| note: SATAN config files were modified for SCO system...

You think I remember what I did then?

You could help your cause if you told us what error you saw after you ran
'configure', then 'make'?

--

 
 
 

Compile SATAN 1.1.1 w/gcc?

Post by Tony Earnsha » Tue, 03 Mar 1998 04:00:00



> You think I remember what I did then?
> You could help your cause if you told us what error you saw after you ran
> 'configure', then 'make'?

Jean-Pierre!

Satan 1.1.4:

*** ./reconfig:

| checking to make sure all the target(s) are here...
| Ok, trying to find perl5 now... hang on a bit...

| Perl5 is in /usr/bin/perl

| changing the source in: bin/get_targets bin/faux_fping satan
bin/boot.satan bin/
| dns.satan bin/finger.satan bin/ftp.satan bin/nfs-chk.satan
bin/rex.satan bin/rpc
| .satan bin/rsh.satan bin/rusers.satan bin/showmount.satan
bin/tcpscan.satan bin/
| tftp.satan bin/udpscan.satan bin/xhost.satan bin/yp-chk.satan
bin/ypbind.satan p
| erl/html.pl

| HTML/WWW Browser is /usr/bin/X11/netscape

| So far so good...
| Looking for all the commands now...

| Ok, now doing substitutions on the shell scripts...
| Changing paths in config/paths.pl...
| Changing paths in config/paths.sh...

No problems, thus far. Then,

*** ./make sco:

| make[1]: Entering directory `/usr/local/sataninstall/satan-1.1.4exp'
| cd src/misc; make "LIBS=-lrpc -lsocket" "XFLAGS=-DAUTH_GID_T=gid_t"
"RPCGEN=rpcg
| en"
| make[2]: Entering directory
`/usr/local/sataninstall/satan-1.1.4exp/src/misc'
| gcc -O -I. -DAUTH_GID_T=gid_t   -c rex.c -o rex.o
| rex.c: In function `rex_server':
| rex.c:118: `REXPROG' undeclared (first use this function)
| rex.c:118: (Each undeclared identifier is reported only once
| rex.c:118: for each function it appears in.)
| rex.c:118: `REXVERS' undeclared (first use this function)
| rex.c: In function `rex_command':
| rex.c:149: syntax error before `rx_start'
| rex.c:150: syntax error before `rx_result'
| rex.c:159: `rx_start' undeclared (first use this function)
| rex.c:175: `REXPROC_START' undeclared (first use this function)
| rex.c:176: `xdr_rex_start' undeclared (first use this function)
| rex.c:177: `xdr_rex_result' undeclared (first use this function)
| rex.c:177: `rx_result' undeclared (first use this function)
| rex.c: In function `rex_exit':
| rex.c:215: storage size of `rx_result' isn't known
| rex.c:219: `REXPROC_WAIT' undeclared (first use this function)
| rex.c:221: `xdr_rex_result' undeclared (first use this function)
| make[2]: *** [rex.o] Error 1
| make[2]: Leaving directory
`/usr/local/sataninstall/satan-1.1.4exp/src/misc'
| make[1]: *** [all] Error 2
| make[1]: Leaving directory `/usr/local/sataninstall/satan-1.1.4exp'
| make: *** [sco] Error 2

It doesn't make any difference whether you use the 95q4 gcc (-b elf) or
2.7.2 (-melf) compilers/libraries. "make linux" doesn't work, it wants
bsd libraries; make dgux gives the same result as sco, as does every
other argument.

Suppose I could contact Dan Farmer directly? What do you think?

Tony

--
Tony Earnshaw
E-State
Groeneweg 150
3981 CP Bunnik, The Netherlands
Telephone:      +31 30 6563881
Fax:            +31 30 6562472

**** The Magic is UNIX ****

 
 
 

Compile SATAN 1.1.1 w/gcc?

Post by Steven L Coope » Tue, 03 Mar 1998 04:00:00




Quote:> Steven L Cooper telecommunicated (on 27Feb):
> | We are trying to compile SATAN 1.1.1 on a 5.0.4 box with gcc.  We get

major
<snipped>
> You could help your cause if you told us what error you saw after you ran
> 'configure', then 'make'?


SCOForum

Oops! You are right!  I should have included the output...I will hit myself
with my ruler!

Tony was nice enough to post the details for me, thanks Tony!
Steve

partial output:
| gcc -O -I. -DAUTH_GID_T=gid_t   -c rex.c -o rex.o
| rex.c: In function `rex_server':
| rex.c:118: `REXPROG' undeclared (first use this function)
| rex.c:118: (Each undeclared identifier is reported only once
| rex.c:118: for each function it appears in.)
| rex.c:118: `REXVERS' undeclared (first use this function)
| rex.c: In function `rex_command':
| rex.c:149: syntax error before `rx_start'
| rex.c:150: syntax error before `rx_result'
| rex.c:159: `rx_start' undeclared (first use this function)
| rex.c:175: `REXPROC_START' undeclared (first use this function)
| rex.c:176: `xdr_rex_start' undeclared (first use this function)
| rex.c:177: `xdr_rex_result' undeclared (first use this function)
| rex.c:177: `rx_result' undeclared (first use this function)
.
.
.

 
 
 

Compile SATAN 1.1.1 w/gcc?

Post by Steven L Coope » Tue, 03 Mar 1998 04:00:00




Quote:> | gcc -O -I. -DAUTH_GID_T=gid_t   -c rex.c -o rex.o
> | rex.c: In function `rex_server':
> | rex.c:118: `REXPROG' undeclared (first use this function)
<snip>
> It doesn't make any difference whether you use the 95q4 gcc (-b elf) or
> 2.7.2 (-melf) compilers/libraries. "make linux" doesn't work, it wants
> bsd libraries; make dgux gives the same result as sco, as does every
> other argument.

Yes this is my problem! Thanks, Tony, for adding what I left out of my post
(egg on face)...

Soooo, is there hope, or is SCO just NOT going to work for this?
Steve

 
 
 

Compile SATAN 1.1.1 w/gcc?

Post by Jean-Pierre Radle » Tue, 03 Mar 1998 04:00:00


Steven L Cooper telecommunicated (on 02Mar):


| > | gcc -O -I. -DAUTH_GID_T=gid_t   -c rex.c -o rex.o
| > | rex.c: In function `rex_server':
| > | rex.c:118: `REXPROG' undeclared (first use this function)
| <snip>
| > It doesn't make any difference whether you use the 95q4 gcc (-b elf) or
| > 2.7.2 (-melf) compilers/libraries. "make linux" doesn't work, it wants
| > bsd libraries; make dgux gives the same result as sco, as does every
| > other argument.
|
| Yes this is my problem! Thanks, Tony, for adding what I left out of my post
| (egg on face)...
|
| Soooo, is there hope, or is SCO just NOT going to work for this?
| Steve

As I said, I compiled Satan on SCO Unix last year with no big effort;
I'll try to scratch around and see what I did in a day or two.

--

 
 
 

Compile SATAN 1.1.1 w/gcc?

Post by Jean-Pierre Radle » Tue, 03 Mar 1998 04:00:00


Steven L Cooper telecommunicated (on 02Mar):


| > | gcc -O -I. -DAUTH_GID_T=gid_t   -c rex.c -o rex.o
| > | rex.c: In function `rex_server':
| > | rex.c:118: `REXPROG' undeclared (first use this function)
| <snip>
| > It doesn't make any difference whether you use the 95q4 gcc (-b elf) or
| > 2.7.2 (-melf) compilers/libraries. "make linux" doesn't work, it wants
| > bsd libraries; make dgux gives the same result as sco, as does every
| > other argument.
|
| Yes this is my problem! Thanks, Tony, for adding what I left out of my post
| (egg on face)...
|
| Soooo, is there hope, or is SCO just NOT going to work for this?

In my Makefile, this is what I have for target 'sco':

sco:

                XFLAGS="-DAUTH_GID_T=gid_t -DTIRPC"

--

 
 
 

1. Compiling Satan with gcc

I am trying to compile satan using gcc 2.8.1 under Solaris 2.6.  I put
in a symbolic link from gcc to cc as the satan configuration script
expects cc. This compiles, but fails on linking:

make sunos5
cd src/misc; make "LIBS=-lsocket -lnsl" "XFLAGS=-DAUTH_GID_T=gid_t
-DTIRPC" "RPCGEN=rpcgen"
cc -O -I. -DAUTH_GID_T=gid_t -DTIRPC -o ../../bin/md5 md5.o md5c.o
ld: fatal: file values-Xa.o: cannot open file: No such file or directory

ld: fatal: File processing errors. No output written to ../../bin/md5
*** Error code 1
make: Fatal error: Command failed for target `../../bin/md5'
Current working directory /opt/tools/satan-1.1.1/src/misc
*** Error code 1
make: Fatal error: Command failed for target `all'
Current working directory /opt/tools/satan-1.1.1
*** Error code 1
make: Fatal error: Command failed for target `sunos5'

Any ideas would be much appreciated.

Also is there an FAQ web page for this newsgroup?

Please remove NOSPAM from my address if you reply directly.

2. Upgrading Redhat without losing files?

3. Problems compiling perl5 to compile satan to test my security

4. My Kingdom for a MOUSE

5. Compiling gcc 2.7.2.1 with gcc 3.2 on redhat 8.0

6. AMD and new kernel

7. GCC-i2.6.3 compiling (gcc with pentium optimiz's) PLEASE HELP US!!

8. NEC Proserva dual and 4-up processors vs Linux

9. OpenBSD, GCC, ElectricFence, and PThreads -- order on gcc compile line is significant?

10. gcc error 11 compiling kernel (gcc 2.7.0)

11. Satan v111 GCC error missing rex.h

12. SATAN, Solaris and GCC

13. gcc won't compile C++ but will compile C, help!