Discussion:
owcc doesn't understand unix directory separators?
(too old to reply)
Johann 'Myrkraverk' Oskarsson
2018-04-14 08:56:41 UTC
Permalink
Hi all,

I've been trying to use owcc to port a complex application, specifically
OpenSSL, to OS/2; yes I know OpenSSL is already ported with the EMX runtime.

One of the problems I'm dealing with is adjusting the makefiles and it
seems easiest to use owcc rather than wcc386 for the compilation steps.
Yet, owcc doesn't seem to understand / as a directory separator.

An example command line, from the makefile is

owcc -o tmp/cryptlib.o -c ./crypto/cryptlib.c

where I've removed all the "cruft." Is it possible to make owcc
understand / as a directory separator under OS/2?

Assuming I need to build my own owcc for this, what are my first steps?
--
Johann | email: invalid -> com | www.myrkraverk.com/blog/
I'm not from the Internet, I just work there. | twitter: @myrkraverk
Dave Yeo
2018-04-14 17:23:12 UTC
Permalink
Post by Johann 'Myrkraverk' Oskarsson
Hi all,
I've been trying to use owcc to port a complex application, specifically
OpenSSL, to OS/2; yes I know OpenSSL is already ported with the EMX runtime.
One of the problems I'm dealing with is adjusting the makefiles and it
seems easiest to use owcc rather than wcc386 for the compilation steps.
Yet, owcc doesn't seem to understand / as a directory separator.
An example command line, from the makefile is
owcc -o tmp/cryptlib.o -c ./crypto/cryptlib.c
where I've removed all the "cruft." Is it possible to make owcc
understand / as a directory separator under OS/2?
Assuming I need to build my own owcc for this, what are my first steps?
I ran into the same problems, kind of depressing as OS/2 mostly accepts
/ as a directory separator and as far as I know posix requires using /
It's quite possible to use configure to build a lot of projects with
owcc excepting building DLLs simply by setting up the right environment
such as
CC=owcc.exe
LD=owcc.exe
AR=emxomfar.exe
RANLIB=echo
Dave
Hans-Bernhard Bröker
2018-04-14 18:08:45 UTC
Permalink
Post by Johann 'Myrkraverk' Oskarsson
One of the problems I'm dealing with is adjusting the makefiles and it
seems easiest to use owcc rather than wcc386 for the compilation steps.
Yet, owcc doesn't seem to understand / as a directory separator.
owcc still has to respect some of the host operating system's
conventions. In the Microsoft world, that means / is still an option
character, and paths are given as with '\'.
Post by Johann 'Myrkraverk' Oskarsson
where I've removed all the "cruft."  Is it possible to make owcc
understand / as a directory separator under OS/2?
Everything's "possible". It's all just software, after all.
Post by Johann 'Myrkraverk' Oskarsson
Assuming I need to build my own owcc for this, what are my first steps?
I'd start by getting the sources, then taking a real hard look at
bld\cc\wcl\c\owcc.c.
Johann 'Myrkraverk' Oskarsson
2018-04-16 12:35:52 UTC
Permalink
Post by Hans-Bernhard Bröker
Post by Johann 'Myrkraverk' Oskarsson
Assuming I need to build my own owcc for this, what are my first steps?
I'd start by getting the sources, then taking a real hard look at
bld\cc\wcl\c\owcc.c.
Thank you. Using owcc turned out to be a red herring; I found a way to
change the forward slashes into backslashes.

My success, so far, is covered here:

http://www.myrkraverk.com/blog/2018/04/building-openssl-with-openwatcom-on-arcaos-the-initial-hurdles/
--
Johann | email: invalid -> com | www.myrkraverk.com/blog/
I'm not from the Internet, I just work there. | twitter: @myrkraverk
Frank Beythien
2018-04-16 13:12:25 UTC
Permalink
Post by Johann 'Myrkraverk' Oskarsson
Post by Hans-Bernhard Bröker
Post by Johann 'Myrkraverk' Oskarsson
Assuming I need to build my own owcc for this, what are my first steps?
I'd start by getting the sources, then taking a real hard look at
bld\cc\wcl\c\owcc.c.
Thank you. Using owcc turned out to be a red herring; I found a way to
change the forward slashes into backslashes.
http://www.myrkraverk.com/blog/2018/04/building-openssl-with-openwatcom-on-arcaos-the-initial-hurdles/
The changes for owcc forwardslashes to backslashes and removing the ./
(current directory) construct are submitted. My next builder server run
will have the changes tonight:

https://efbe.musca.uberspace.de

CU/2
Frank

Paul S. Person
2018-04-15 17:07:36 UTC
Permalink
On Sat, 14 Apr 2018 16:56:41 +0800, Johann 'Myrkraverk' Oskarsson
Post by Johann 'Myrkraverk' Oskarsson
Hi all,
I've been trying to use owcc to port a complex application, specifically
OpenSSL, to OS/2; yes I know OpenSSL is already ported with the EMX runtime.
One of the problems I'm dealing with is adjusting the makefiles and it
seems easiest to use owcc rather than wcc386 for the compilation steps.
Yet, owcc doesn't seem to understand / as a directory separator.
An example command line, from the makefile is
owcc -o tmp/cryptlib.o -c ./crypto/cryptlib.c
where I've removed all the "cruft." Is it possible to make owcc
understand / as a directory separator under OS/2?
Assuming I need to build my own owcc for this, what are my first steps?
I thought this had been fixed, but perhaps that was only for Linux.

Are you certain there aren't compiler/linker options that affect this?
--
"Nature must be explained in
her own terms through
the experience of our senses."
Frank Beythien
2018-04-15 17:28:43 UTC
Permalink
Post by Paul S. Person
On Sat, 14 Apr 2018 16:56:41 +0800, Johann 'Myrkraverk' Oskarsson
Post by Johann 'Myrkraverk' Oskarsson
Hi all,
I've been trying to use owcc to port a complex application, specifically
OpenSSL, to OS/2; yes I know OpenSSL is already ported with the EMX runtime.
One of the problems I'm dealing with is adjusting the makefiles and it
seems easiest to use owcc rather than wcc386 for the compilation steps.
Yet, owcc doesn't seem to understand / as a directory separator.
An example command line, from the makefile is
owcc -o tmp/cryptlib.o -c ./crypto/cryptlib.c
where I've removed all the "cruft." Is it possible to make owcc
understand / as a directory separator under OS/2?
Assuming I need to build my own owcc for this, what are my first steps?
I thought this had been fixed, but perhaps that was only for Linux.
No, owcc for OS/2 and probably winxx does not work with forward slashes.
Post by Paul S. Person
Are you certain there aren't compiler/linker options that affect this?
That wouldn't help, as owcc tries to resolve the names.
I'm looking into it.

CU
Frank
Loading...