For the record, I still must have these patches to make packager happy.

1) Current CMakeLists.txt modified to find correct CMAKE_INSTALL_LIBDIR for this platform
2) no Libs in bin
3) I have to use 127.0.0.1 for some of the samples.


--- oorexx-5.0.0/CMakeLists.txt.~1~    Fri Dec  7 03:11:51 2018
+++ oorexx-5.0.0/CMakeLists.txt    Fri Dec  7 03:26:53 2018
@@ -246,6 +246,9 @@
      if (${INSTALL_LIB_DIR} STREQUAL "INSTALL_LIB_DIR-NOTFOUND")
        set (INSTALL_LIB_DIR ${CMAKE_INSTALL_PREFIX}/lib)
      endif ()
+     if (CMAKE_SYSTEM_NAME MATCHES "(SunOS|Solaris)")
+       set (INSTALL_LIB_DIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
+     endif ()
    endif ()

    set (INSTALL_EXECUTABLE_DIR ${CMAKE_INSTALL_PREFIX}/bin)
--- oorexx-5.0.0/samples/unix/api/wpipe1/CMakeLists.txt.~1~    Mon Feb 12 21:55:11 2018 +++ oorexx-5.0.0/samples/unix/api/wpipe1/CMakeLists.txt    Fri Feb 16 10:43:27 2018
@@ -54,4 +54,4 @@
             ${build_api_platform_dir})
 # Extra link library definitions
 target_link_libraries(wpipe1 rexx rexxapi)
-install(TARGETS wpipe1 LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
+install(TARGETS wpipe1 LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}) --- oorexx-5.0.0/samples/unix/api/wpipe2/CMakeLists.txt.~1~    Mon Feb 12 21:55:11 2018 +++ oorexx-5.0.0/samples/unix/api/wpipe2/CMakeLists.txt    Fri Feb 16 10:43:27 2018
@@ -54,4 +54,4 @@
             ${build_api_platform_dir})
 # Extra link library definitions
 target_link_libraries(wpipe2 rexx rexxapi)
-install(TARGETS wpipe2 LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
+install(TARGETS wpipe2 LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}) --- oorexx-5.0.0/samples/unix/api/wpipe3/CMakeLists.txt.~1~    Mon Feb 12 21:55:10 2018 +++ oorexx-5.0.0/samples/unix/api/wpipe3/CMakeLists.txt    Fri Feb 16 10:43:27 2018
@@ -54,4 +54,4 @@
             ${build_api_platform_dir})
 # Extra link library definitions
 target_link_libraries(wpipe3 rexx rexxapi)
-install(TARGETS wpipe3 LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
+install(TARGETS wpipe3 LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
--- oorexx-5.0.0/samples/scclient.rex.~1~    Thu Nov 29 07:58:17 2018
+++ oorexx-5.0.0/samples/scclient.rex    Thu Nov 29 08:59:09 2018
@@ -48,7 +48,7 @@
     contact: localhost and port 50010
     we use the "gethostid" class method of the socket
     class to determine the localhost address  */
-    host = .inetaddress~new(.socket~gethostid(), '50010')
+    host = .inetaddress~new('127.0.0.1', '50010')

 /*  connect to the server  */
     if sock~connect(host) < 0 then do
--- oorexx-5.0.0/samples/scserver.rex.~1~    Thu Nov 29 07:58:11 2018
+++ oorexx-5.0.0/samples/scserver.rex    Thu Nov 29 08:59:09 2018
@@ -73,7 +73,7 @@
 /*  instantiate an instance of the socket class  */
     sock = .socket~new()

-    host = .inetaddress~new(.socket~gethostid(), '50010')
+    host = .inetaddress~new('127.0.0.1', '50010')

 /*  connect to the server (if it hasn't already shutdown)  */
     if sock~connect(host) < 0 then
@@ -88,7 +88,7 @@
     contact: localhost and port 50010
     we use the "gethostid" class method of the socket
     class to determine the localhost address  */
-    host = .inetaddress~new(.socket~gethostid(), '50010')
+    host = .inetaddress~new('127.0.0.1', '50010')

 /*  bind to the host information  */
     sock~setOption('SO_REUSEADDR', 1)
--- oorexx-5.0.0/samples/sfclient.rex.~1~    Thu Nov 29 07:58:11 2018
+++ oorexx-5.0.0/samples/sfclient.rex    Thu Nov 29 08:59:09 2018
@@ -45,7 +45,7 @@

 /*  specify the host we will connect to  */
     host.!family = 'AF_INET'        --  Protocol family (only AF_INET is supported) -    host.!addr = SockGetHostId()    --  IP address (use the sockgethostid function to get address of the localhost) +    host.!addr = '127.0.0.1'    --  IP address (use the sockgethostid function to get address of the localhost)
     host.!port = '50010'            --  Port number

 /*  connect to the server  */
--- oorexx-5.0.0/samples/sfserver.rex.~1~    Thu Nov 29 07:58:15 2018
+++ oorexx-5.0.0/samples/sfserver.rex    Thu Nov 29 08:59:09 2018
@@ -73,7 +73,7 @@

 /*  specify the host we will connect to  */
     host.!family = 'AF_INET'
-    host.!addr = SockGetHostId()
+    host.!addr = '127.0.0.1'
     host.!port = '50010'

 /*  connect to the server (if it hasn't already shutdown)  */
@@ -87,7 +87,7 @@

 /*  specify the host we will run as  */
     host.!family = 'AF_INET'        --  Protocol family (only AF_INET is supported) -    host.!addr = SockGetHostId()    --  IP address (use the sockgethostid function to get address of the localhost) +    host.!addr = '127.0.0.1'    --  IP address (use the sockgethostid function to get address of the localhost)
     host.!port = '50010'            --  Port number

 /*  bind to the host information  */



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

Reply via email to