This raises the interesting question, why under linux-elf gcc is invoked
as preprocessor, but under FreeBSD obviously cpp?

If it's set somewhere during configuration it'S best to set
either to "cpp" or to "gcc -E -x c". Other opinions?

Background: This -x c switch was added for beta1 since a specific 
compiler config didn't accepted the *.cpp file but told it was 
unknown. -x c telss "this is C source, so please process the file as 
such!

Claus Assmann schrieb:
> 
> On Mon, Mar 20, 2000, Holger Reif wrote:
> > Please check whether the compilation fails in the asm routines,
> > especially, when it calls
> >
> >       gcc -E -x c ....
> 
> I was "grep"ping for "error", but there was only:
> 
> (cd asm; /usr/local/bin/perl5 bn-586.pl cpp >bn86unix.cpp )
> cpp -DELF -x c asm/bn86unix.cpp | as -o asm/bn86-elf.o
> cpp: Invalid option `-x'
> (cd asm; /usr/local/bin/perl5 co-586.pl cpp >co86unix.cpp )
> cpp -DELF -x c asm/co86unix.cpp | as -o asm/co86-elf.o
> cpp: Invalid option `-x'
> 
> that's why I missed it the first time, sorry about that.
> 
> So cpp on FreeBSD doesn't like -x.  In 0.9.5 there is no -x in that
> line.  How can I solve this problem? Do I have to edit the Makefiles?
> 
> > Claus Assmann schrieb:
> > >
> > > (0.9.5 compiled find on this system)
> > > OpenSSL self-test report:
> > >
> > > OpenSSL version:  0.9.5a-beta1
> > > Last change:      des_quad_cksum() byte order bug fix....
> > > Options:          --openssldir=/usr/ca/FreeBSD --prefix=/usr/ca/FreeBSD
> > > OS (uname):       FreeBSD  3.2-RELEASE FreeBSD 3.2-RELEASE #0:
> > > OS (config):      i686-pc-freebsd3.2
> > > Target (default): FreeBSD-elf
> > > Target:           FreeBSD-elf
> > > Compiler:         gcc version 2.7.2.1
> > >
> > > Failure!
> > > -----------------------------------------------------------------------------
> 
> > > bn_mont.o(.text+0x21c): undefined reference to `bn_mul_add_words'

-- 
Holger Reif                  Tel.: +49 361 74707-0
SmartRing GmbH               Fax.: +49 361 7470720
Europaplatz 5             [EMAIL PROTECTED]
D-99091 Erfurt                    WWW.SmartRing.de
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to