I am trying to build openssl-0.9.7b on a Windows box.  I edited
configure to add a build rule for the arm tools on my host.  The line
looks like this,

##### VxWorks for various targets
"vxworks-arm","ccarm:-g -msoft-float -mcpu=arm710 -mno-sched-prolog -mapcs-32 
-nostdinc -DCPU=ARMARCH3 -I\$(WIND_BASE)/target/h:::VXWORKS:-r:::::",

I am using the Msys build environment to emulate a Unix shell.  I ran
Configure like so,

$ ./Configure -DNO_BF -DNO_MD4 -DNO_RC2 -DNO_RC5 -DNO_IDEA -DNO_CAST -DNORIPEMD
 -DNO_HMAC -DNO_MDC2 no-threads no-zlib no-asm vxworks-arm

This works until "crypto/bio/b_sock.c" compiles.  The e_os.h has a
define like this for vxWorks,

  #define ioctlsocket(a,b,c) ioctl((a),(b),*(c))

Unfortunately BIO_socket_ioctl is declared like,

  int BIO_socket_ioctl(int fd, long type, void *arg)
 
and the line using ioctlsocket fails as "*(void*)" doesn't make much
sense.  Should the vxWorks declaration be changed to,

  #define ioctlsocket(a,b,c) ioctl((a),(b),*(int*)(c))

or should BIO_socket_ioctl be conditionalize?  The declaration is,

    int ioctl
        (
        int fd,                   /* file descriptor */
        int function,             /* function code */
        int arg                   /* arbitrary argument */
        )

The second failure was in "apps/ca.c".  It was using "strings.h" and
vxWorks only has a "string.h".  I copied the files, to get this to
compile.

The last problem I have is that the ARM version of vxWorks uses COFF
files (as oppose to the PowerPPC which has ELF).  I need to use the
ARM COFF archiver supplied with vxWorks.  The name is "ararm".  I hand
edited the "Makefile.ssl" files and changed ar to,

 AR=            ararm r

What is the best way to go about this?  I suspect that the PowerPC
target works because cywin, etc come with an `ar' that supports ELF
format objects.

After these changes, I compiled and download some test objects.  The
tests appeared to run correctly.  Usually the vxWorks system calls
"executeables" .out files.  Any chance that there is an option to
alter the output extention?

Thanks,
Bill Pringlemeir.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to