i should add that it seems it's not the detection magic, as it
apparently knows no slang when building starts:

fwiw this seems to be a pasto, with the following having fixed it
here, as in still builds on linux, with slang picked up, compiled
and linked fine; also builds on sunos, with slang properly skipped --
though this is just the result of an incremental build over a
previously failed one, with a full build still running (it'll take a
good several more hours to finish).

Index: source/rtl/gtsln/Makefile
===================================================================
--- source/rtl/gtsln/Makefile   (revision 12338)
+++ source/rtl/gtsln/Makefile   (working copy)
@@ -17,9 +17,9 @@
# LDFLAGS := -L/usr/local/lib $(LDFLAGS)
# LDFLAGS := -L/usr/lib/slang -L/usr/local/lib -L/usr/local/lib/ slang $(LDFLAGS)

-ifneq ($(HB_HAS_CURSES),)
+ifneq ($(HB_HAS_SLANG),)

-   HB_CFLAGS += $(foreach d,$(HB_HAS_CURSES),-I$(d))
+   HB_CFLAGS += $(foreach d,$(HB_HAS_SLANG),-I$(d))

Good catch! Thank you. I was watching this code, but couldn't see :)

-      iErr = dup( 2 );
+      iErr = dup( STDERR_FILENO );
      iNull = open( "/dev/null", O_RDWR );
-      dup2( iNull, 2 );
+      dup2( iNull, STDERR_FILENO );
      close( iNull );
#endif
Conn.eventMask = GPM_MOVE | GPM_UP | GPM_DOWN | GPM_DRAG | GPM_DOUBLE;
@@ -390,7 +390,7 @@
         hb_gt_sln_mouse_FixTrash();
      }
#ifdef HB_GPM_NOICE_DISABLE
-      dup2( iErr, 2 );
+      dup2( iErr, STDERR_FILENO );
      close( iErr );
#endif
   }

I'll commit it.

Brgds,
Viktor

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to