errors compiling ppp-2.4.1 on solaris 8 and on solaris 8 x86

errors compiling ppp-2.4.1 on solaris 8 and on solaris 8 x86

Post by Shaw » Fri, 01 Mar 2002 05:39:41



Tried to compile ppp-2.4.1 on both sparc solaris 8 and solaris 8 x86
and get the following errors.

bash-2.05# ./configure
Creating links to Makefiles.
  Makefile -> solaris/Makefile.top
  solaris/Makefile -> Makefile.sol2-64
  pppd/Makefile -> Makefile.sol2
  pppstats/Makefile -> Makefile.sol2
  chat/Makefile -> Makefile.sol2
  pppdump/Makefile -> Makefile.sol2
bash-2.05# make
cd chat; make all
gcc -O2 -DNO_USLEEP -DSOL2  -c  chat.c
gcc -o chat chat.o
cd pppd; make all
gcc -I../include -DSVR4 -DSOL2 -O2 -xO2 -xspace -W0,-Lt -DPLUGIN  -c
main.c
gcc: language space not recognized
gcc: main.c: linker input file unused since linking not done
gcc -I../include -DSVR4 -DSOL2 -O2 -xO2 -xspace -W0,-Lt -DPLUGIN  -c
magic.c
gcc: language space not recognized
gcc: magic.c: linker input file unused since linking not done
gcc -I../include -DSVR4 -DSOL2 -O2 -xO2 -xspace -W0,-Lt -DPLUGIN  -c
fsm.c
gcc: language space not recognized
gcc: fsm.c: linker input file unused since linking not done
gcc -I../include -DSVR4 -DSOL2 -O2 -xO2 -xspace -W0,-Lt -DPLUGIN  -c
lcp.c
gcc: language space not recognized
gcc: lcp.c: linker input file unused since linking not done
gcc -I../include -DSVR4 -DSOL2 -O2 -xO2 -xspace -W0,-Lt -DPLUGIN  -c
ipcp.c
gcc: language space not recognized
gcc: ipcp.c: linker input file unused since linking not done
gcc -I../include -DSVR4 -DSOL2 -O2 -xO2 -xspace -W0,-Lt -DPLUGIN  -c
upap.c
gcc: language space not recognized
gcc: upap.c: linker input file unused since linking not done
gcc -I../include -DSVR4 -DSOL2 -O2 -xO2 -xspace -W0,-Lt -DPLUGIN  -c
chap.c
gcc: language space not recognized
gcc: chap.c: linker input file unused since linking not done
gcc -I../include -DSVR4 -DSOL2 -O2 -xO2 -xspace -W0,-Lt -DPLUGIN  -c
md5.c
gcc: language space not recognized
gcc: md5.c: linker input file unused since linking not done
gcc -I../include -DSVR4 -DSOL2 -O2 -xO2 -xspace -W0,-Lt -DPLUGIN  -c
tty.c
gcc: language space not recognized
gcc: tty.c: linker input file unused since linking not done
gcc -I../include -DSVR4 -DSOL2 -O2 -xO2 -xspace -W0,-Lt -DPLUGIN  -c
ccp.c
gcc: language space not recognized
gcc: ccp.c: linker input file unused since linking not done
gcc -I../include -DSVR4 -DSOL2 -O2 -xO2 -xspace -W0,-Lt -DPLUGIN  -c
auth.c
gcc: language space not recognized
gcc: auth.c: linker input file unused since linking not done
gcc -I../include -DSVR4 -DSOL2 -O2 -xO2 -xspace -W0,-Lt -DPLUGIN  -c
options.c
gcc: language space not recognized
gcc: options.c: linker input file unused since linking not done
gcc -I../include -DSVR4 -DSOL2 -O2 -xO2 -xspace -W0,-Lt -DPLUGIN  -c
demand.c
gcc: language space not recognized
gcc: demand.c: linker input file unused since linking not done
gcc -I../include -DSVR4 -DSOL2 -O2 -xO2 -xspace -W0,-Lt -DPLUGIN  -c
utils.c
gcc: language space not recognized
gcc: utils.c: linker input file unused since linking not done
gcc -I../include -DSVR4 -DSOL2 -O2 -xO2 -xspace -W0,-Lt -DPLUGIN  -c
sys-solaris.c
gcc: language space not recognized
gcc: sys-solaris.c: linker input file unused since linking not done
gcc -I../include -DSVR4 -DSOL2 -O2 -xO2 -xspace -W0,-Lt -DPLUGIN  -c
tdb.c
gcc: language space not recognized
gcc: tdb.c: linker input file unused since linking not done
gcc -o pppd main.o magic.o fsm.o lcp.o ipcp.o upap.o chap.o md5.o
tty.o  ccp.o auth.o options.o demand.o utils.o     sys-solaris.o tdb.o
-lsocket -lnsl -ldl
gcc: main.o: No such file or directory
gcc: magic.o: No such file or directory
gcc: fsm.o: No such file or directory
gcc: lcp.o: No such file or directory
gcc: ipcp.o: No such file or directory
gcc: upap.o: No such file or directory
gcc: chap.o: No such file or directory
gcc: md5.o: No such file or directory
gcc: tty.o: No such file or directory
gcc: ccp.o: No such file or directory
gcc: auth.o: No such file or directory
gcc: options.o: No such file or directory
gcc: demand.o: No such file or directory
gcc: utils.o: No such file or directory
gcc: sys-solaris.o: No such file or directory
gcc: tdb.o: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `pppd'
Current working directory /home/downloads/ppp-2.4.1/pppd
*** Error code 1
make: Fatal error: Command failed for target `all'
bash-2.05# pwd
/downloads/ppp-2.4.1

Any suggestions on how to fix this?

Thanks for the help,
Shawn

 
 
 

errors compiling ppp-2.4.1 on solaris 8 and on solaris 8 x86

Post by Clifford Kit » Fri, 01 Mar 2002 06:58:05



> Tried to compile ppp-2.4.1 on both sparc solaris 8 and solaris 8 x86
> and get the following errors.
> cd pppd; make all
> gcc -I../include -DSVR4 -DSOL2 -O2 -xO2 -xspace -W0,-Lt -DPLUGIN  -c
> main.c
> gcc: language space not recognized

For what it's worth, the gcc for Linux doesn't have a -xO2 or -xspace
option.  The -W0,-Lt is inexplicable too.  The info pages say this about
the -x option:

   You can specify the input language explicitly with the `-x' option:

`-x LANGUAGE'
     Specify explicitly the LANGUAGE for the following input files
     (rather than letting the compiler choose a default based on the
     file name suffix).  This option applies to all following input
     files until the next `-x' option.  Possible values for LANGUAGE
     are:
          c  objective-c  c++
          c-header  cpp-output  c++-cpp-output
          assembler  assembler-with-cpp

`-x none'
     Turn off any specification of a language, so that subsequent files
     are handled according to their file name suffixes (as they are if
     `-x' has not been used at all).

   If you only want some of the stages of compilation, you can use `-x'
   (or filename suffixes) to tell `gcc' where to start, and one of the
   options `-c', `-S', or `-E' to say where `gcc' is to stop.  Note that
   some combinations (for example, `-x cpp-output -E' instruct `gcc' to
   do nothing at all.

There may be a Solaris verision of gcc, but I don't know what the options
mean, or why the -x option is used in that way.

Hopefully someone will enlighten us both.

--

PPP-Q&A links, downloads:    http://users3.ev1.net/~ckite/public_html/
/* I hear and I forget.  I see and I remember.  I do and I understand.
                               --Confucius, 551-479 BC */

 
 
 

errors compiling ppp-2.4.1 on solaris 8 and on solaris 8 x86

Post by Frank Hah » Fri, 01 Mar 2002 11:51:56




>> Tried to compile ppp-2.4.1 on both sparc solaris 8 and solaris 8 x86
>> and get the following errors.

>> cd pppd; make all
>> gcc -I../include -DSVR4 -DSOL2 -O2 -xO2 -xspace -W0,-Lt -DPLUGIN  -c
>> main.c
>> gcc: language space not recognized

> For what it's worth, the gcc for Linux doesn't have a -xO2 or -xspace
> option.  The -W0,-Lt is inexplicable too.  The info pages say this about
> the -x option:

The options that gcc is having trouble with are specific to the
commercial compiler that Sun sells I believe.

The directions in the pppd source code archive are incomplete.  There
is the following in the README.sol2 file:

"If you wish to use gcc (or another compiler) instead of Sun's cc,
edit the svr4/Makedefs file and uncomment the definition of CC.  You
can also change the options passed to the C compiler by editing the
COPTS definition."

In the svr4/Makedefs file, there is the following:

COPTS = -O -Xa

# For compiling with gcc, comment out the COPTS definition above and
# uncomment the next 2 definitions.
#CC = gcc
#COPTS = -O2

but, just changing this file is not enough.  The following also need
edited:

solaris/Makedefs file
pppd/Makefile (linked to Makefile.sol2)
solaris/Makefile (linked to Makefile.sol2)

This was compiled on a Sparc 20 running Solaris 2.6.

I also compiled ppp-2.4.1 on a Sparc 5 running Solaris 2.6.  I had a
kernel panic and the machine rebooted while running pppd.  I don't
know for sure if the panic was caused by this specific version of pppd
or not.  I downloaded and compiled the previous version and have not
had this problem for more than a week.

--
Frank Hahn

Important letters which contain no errors will develop errors in the
mail.  Corresponding errors will show up in the duplicate while the
Boss is reading it.

 
 
 

errors compiling ppp-2.4.1 on solaris 8 and on solaris 8 x86

Post by Rene Berb » Sat, 02 Mar 2002 01:39:27


[snip]

Quote:> In the svr4/Makedefs file, there is the following:

> COPTS = -O -Xa

> # For compiling with gcc, comment out the COPTS definition above and
> # uncomment the next 2 definitions.
> #CC = gcc
> #COPTS = -O2

> but, just changing this file is not enough.  The following also need
> edited:

> solaris/Makedefs file
> pppd/Makefile (linked to Makefile.sol2)
> solaris/Makefile (linked to Makefile.sol2)

Just to make this more explicit:

The file svr4/Makedefs doesn't have to be changed at all, it's not
used.  The comment on the README.sol2 should refer to
solaris/Makedefs.

In the last two files, pppd/Makefile and solaris/Makefile (actually it
should be pppd/Makefile.sol2 and solaris/Makefile.sol2 which configure
links to the above Makefiles) just comment out the COPTS line.

Quote:

> This was compiled on a Sparc 20 running Solaris 2.6.

> I also compiled ppp-2.4.1 on a Sparc 5 running Solaris 2.6.  I had a
> kernel panic and the machine rebooted while running pppd.  I don't
> know for sure if the panic was caused by this specific version of pppd
> or not.  I downloaded and compiled the previous version and have not
> had this problem for more than a week.

I compiled ppp-2.4.1 in Solaris 2.8 with gcc 3.0.3 and there was
another problem: when you "make install" there is a message that says
"driver failed to attach", the cause is that gcc adds a call to memset
which is not one of the functions in the kernel.

The solution, thanks to Anton Rang at the comp.unix.solaris news
group, is to add your own (simple) memset function to the
solaris/ppp.c file.

I haven't tested the result so far, but the driver is attached with no
complaints.
--
R. Berber

 
 
 

errors compiling ppp-2.4.1 on solaris 8 and on solaris 8 x86

Post by Mardu » Fri, 08 Mar 2002 23:17:20


Edit all Makefies, Makedefs in th folder /svr4, /solaris, /ppp
comment out COPTS entry which has -Xa and/or -Xspace
uncomment COPTS which have -O or -O2 and any line reference to gcc.