Re: [Oorexx-devel] Haiku now at full speed.

2019-02-21 Thread Jason Martin

Thanks,

Updated patch I used for you to see:

https://github.com/agrellum/NetRexx-Samples/blob/master/haiku-oorexx.patch

Plus the cmake command I used:

https://github.com/agrellum/NetRexx-Samples/blob/master/haiku-oorexx.sh

Here is last build r11796 test results:

321 test pass running one at a time.

Next 15 have errors or failures.

rexx testOORexx.rex -R ooRexx/base/bif -f ARG
rexx testOORexx.rex -R ooRexx/base/bif -f CHAROUT
rexx testOORexx.rex -R ooRexx/base/bif -f CONDITION
rexx testOORexx.rex -R ooRexx/base/bif -f LINEIN
rexx testOORexx.rex -R ooRexx/base/bif -f STREAM
rexx testOORexx.rex -R ooRexx/base/class -f File
rexx testOORexx.rex -R ooRexx/base/class -f RexxQueue
rexx testOORexx.rex -R ooRexx/base/class -f Stream
rexx testOORexx.rex -R ooRexx/base/keyword -f ADDRESS
rexx testOORexx.rex -R ooRexx/base/keyword -f PARSE
rexx testOORexx.rex -R ooRexx/base/keyword -f SIGNAL
rexx testOORexx.rex -R ooRexx/base/runtime.objects -f environmentEntries
rexx testOORexx.rex -R ooRexx/base/special.variables -f RESULT_RC_SIGL
rexx testOORexx.rex -R ooRexx/utilities/rexxc -f rexxc
rexx testOORexx.rex -R ooRexx/utilities/rxqueue -f rxQueue

Most are just SHELL commands not able to run.



___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] Haiku now at full speed.

2019-02-21 Thread Enrico Sorichetti via Oorexx-devel
Here is the first draft of the  mods
It passes the testSuite on Darwin 

E 
P.S. 
There are some more, I will keep researching



[enrico@enrico-imac ooRexx.svn.src]$svn diff
Index: CMakeLists.txt
===
--- CMakeLists.txt  (revision 11796)
+++ CMakeLists.txt  (working copy)
@@ -344,7 +344,20 @@
 set (ORX_SYSLIB_PTHREAD pthread)
 endif ()
 
+
 # Check header files and functions. These are all defined to the config.h file.
+check_include_file(alloca.h HAVE_ALLOCA_H)
+check_include_file(fnmatch.h HAVE_FNMATCH_H)
+check_include_file(sched.h HAVE_SCHED_H)
+check_include_file(sys/sched.h HAVE_SYS_SCHED_H)
+check_include_file(sys/time.h HAVE_SYS_TIME_H)
+check_include_file(time.h HAVE_TIME_H)
+check_include_file(utime.h HAVE_UTIME_H)
+check_include_file(wordexp.h HAVE_WORDEXP_H)
+
+check_function_exists(wordexp HAVE_WORDEXP)
+check_function_exists(euidaccess HAVE_EUIDACCESS)
+
 check_include_file(ctype.h HAVE_CTYPE_H)
 check_include_file(float.h HAVE_FLOAT_H)
 check_include_file(limits.h HAVE_LIMITS_H)
@@ -360,7 +373,6 @@
 check_include_file(stdio.h HAVE_STDIO_H)
 check_include_file(stdlib.h HAVE_STDLIB_H)
 check_include_file(string.h HAVE_STRING_H)
-check_include_file(time.h HAVE_TIME_H)
 check_function_exists(vprintf HAVE_VPRINTF)
 check_include_file(fcntl.h HAVE_FCNTL_H)
 check_function_exists(nanosleep HAVE_NANOSLEEP)
@@ -411,10 +423,10 @@
return 0;}"
   HAVE_DLADDR)
   check_symbol_exists(_PC_CASE_SENSITIVE unistd.h HAVE_PC_CASE_SENSITIVE)
+
   check_symbol_exists(FNM_CASEFOLD fnmatch.h HAVE_FNM_CASEFOLD)
   check_symbol_exists(KDMKTONE linux/kd.h HAVE_KDMKTONE)
   check_include_file(pwd.h HAVE_PWD_H)
-  check_include_file(sched.h HAVE_SCHED_H)
   check_function_exists(sighold HAVE_SIGHOLD)
   check_function_exists(strdup HAVE_STRDUP)
   check_include_file(strings.h HAVE_STRINGS_H)
@@ -428,7 +440,6 @@
   check_include_file(sys/socket.h HAVE_SYS_SOCKET_H)
   check_include_file(sys/stat.h HAVE_SYS_STAT_H)
   check_include_file(sys/syscall.h HAVE_SYS_SYSCALL_H)
-  check_include_file(sys/time.h HAVE_SYS_TIME_H)
   check_include_file(sys/types.h HAVE_SYS_TYPES_H)
   check_include_file(sys/utsname.h HAVE_SYS_UTSNAME_H)
   check_include_file(sys/wait.h HAVE_SYS_WAIT_H)
Index: common/platform/unix/SysSemaphore.cpp
===
--- common/platform/unix/SysSemaphore.cpp   (revision 11796)
+++ common/platform/unix/SysSemaphore.cpp   (working copy)
@@ -50,16 +50,26 @@
 #include 
 #include 
 #include 
-#include 
-#ifdef AIX
-#include 
-#include 
+
+#if defined( HAVE_SYS_SCHED_H )
+# include 
 #endif
+#if defined( HAVE_SCHED_H )
+# include 
+#endif
 
-#if defined(OPSYS_SUN) || defined(__HAIKU__)
-#include 
+#if defined( HAVE_SYS_TIME_H )
+# include 
 #endif
 
+#if defined( HAVE_TIME_H )
+# include 
+#endif
+
+#if defined( HAVE_UTIME_H )
+#include 
+#endif
+
 #include 
 
 #include "SysSemaphore.hpp"
Index: config.h.in.cmake
===
--- config.h.in.cmake   (revision 11796)
+++ config.h.in.cmake   (working copy)
@@ -1,5 +1,37 @@
 /* config.h.in.  Generated from CMake.  */
 
+/* Define to 1 if you have the  header file. */
+#cmakedefine HAVE_SYS_SCHED_H
+
+/* Define to 1 if you have the  header file. */
+#cmakedefine HAVE_SCHED_H
+
+/* Define to 1 if you have the  header file. */
+#cmakedefine HAVE_SYS_TIME_H
+
+/* Define to 1 if you have the  header file. */
+#cmakedefine HAVE_TIME_H
+
+/* Define to 1 if you have the  header file. */
+#cmakedefine HAVE_UTIME_H
+
+/* Define to 1 if you have the  header file. */
+#cmakedefine HAVE_ALLOCA_H
+
+/* Define to 1 if you have the  header file. */
+#cmakedefine HAVE_FNMATCH_H
+
+/* Define to 1 if you have the  header file. */
+#cmakedefine HAVE_WORDEXP_H
+
+
+/* Define to 1 if you have the `wordexp' function. */
+#cmakedefine HAVE_WORDEXP
+
+/* Define to 1 if you have the `euidaccess' function. */
+#cmakedefine HAVE_EUIDACCESS
+
+
 /* Define to 1 if you have the  header file. */
 #cmakedefine HAVE_ATTR_XATTR_H
 
@@ -97,7 +129,7 @@
 #cmakedefine HAVE_DLADDR
 
 /* Define to 1 if _PC_HAVE_CASE_SENSITIVE is a valid value */
-#cmakedefine HAVE_PC_HAVE_CASE_SENSITIVE
+#cmakedefine HAVE_PC_CASE_SENSITIVE
 
 /* Define to 1 if FNM_CASEFOLD is a valid value */
 #cmakedefine HAVE_FNM_CASEFOLD
@@ -108,9 +140,6 @@
 /* Define to 1 if you have the  header file. */
 #cmakedefine HAVE_PWD_H
 
-/* Define to 1 if you have the  header file. */
-#cmakedefine HAVE_SCHED_H
-
 /* Define to 1 if you have the `setlocale' function. */
 #cmakedefine HAVE_SETLOCALE
 
@@ -171,8 +200,6 @@
 /* Define to 1 if you have the  header file. */
 #cmakedefine HAVE_SYS_SYSCALL_H
 
-/* Define to 1 if you have the  header file. */
-#cmakedefine HAVE_SYS_TIME_H
 
 /* Define to 1 if you have the  header file. */
 #cmakedefine HAVE_SYS_TYPES_H
@@ -183,9 +210,6 @@
 /* 

Re: [Oorexx-devel] Haiku now at full speed.

2019-02-20 Thread Erich Steinböck
>
> As soon I find all the things to fix
>  I will email  the svn diff report with some suggested modifications
>
Sounds great - waiting for the patch
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] Haiku now at full speed.

2019-02-20 Thread Enrico Sorichetti via Oorexx-devel
The main problem is that the logic for header inclusion is seriously flawed …

The test should be on the availability of features features 
( HEADERS, FUNCTIONS, LIBRARIES)
Not on the system name (*)

Working on it
 As soon I find all the things to fix 
 I will email  the svn diff report with some suggested modifications


I did point them out
And again … the test should not be on the system name 
In my private ooRexx development copy 
I do not care about the system name …
In the CMakeLists I run a compilation of

#include 
int main()
{
charPath[1000];
char   *dPath = Path;
struct  stat file;
lstat64( dPath, );
return (0);
}

And if it fails I set the flag

E

(*)
The only instance where it is needed, because on the different prototype 
definition
#if defined(FREEBSD) || defined(OPENBSD)
return context->WholeNumberToObject((wholenumber_t)setpgrp(0, 0));
#else
return context->WholeNumberToObject((wholenumber_t)setpgrp());
#endif


> On 20 Feb 2019, at 19:35, Jason Martin  wrote:
> 
> This is not all the HAIKU patches but I looked at what I had to do to fix 
> OpenIndiana build.
> 
> GCC or OpenIndiana knew I needed 
> 
> 
> Someone pointed them out with my first patches.
> 
> Regina Rexx get most all right here, including enviroment and Address 
> statements.
> 
> But it is C and ooRexx would be better on Haiku. (C++ OS and C++ GUI)
> 
> OpenBSD ok before the 5.0.0 release you be extra GREAT too!
> 
> The more OSes the better the code.
> 
> 
> 
> 
> 
> 
> 
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel



___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] Haiku now at full speed.

2019-02-20 Thread Jason Martin
This is not all the HAIKU patches but I looked at what I had to do to 
fix OpenIndiana build.


GCC or OpenIndiana knew I needed 

For some reason OpenIndiana complained when I did first build but Haiku 
did not.


I compiled latest on OpenIndiana with verbose on gmake build &> 
what_we_do_here.txt


Then Haiku make &> what_we_not_doing_here.txt

Compared what_we_do_here.txt with what_we_not_doing_here.txt

There are some more patches for Haiku related to stat64 file64 around 
_APPLE_ defines


Someone pointed them out with my first patches.

Regina Rexx get most all right here, including enviroment and Address 
statements.


But it is C and ooRexx would be better on Haiku. (C++ OS and C++ GUI)

OpenBSD ok before the 5.0.0 release you be extra GREAT too!

The more OSes the better the code.







___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel