FYI, I've merged your patch and this fix to master, and everything builds now.

index 0f60111..b37d7e8 100644
--- a/cde/lib/DtTerm/TermPrim/TermPrimSetUtmp.c
+++ b/cde/lib/DtTerm/TermPrim/TermPrimSetUtmp.c
@@ -56,7 +56,7 @@ static char rcs_id[] = "$TOG: TermPrimSetUtmp.c /main/10 1998/04/03 17:11:42 mgr
 #define XOS_USE_XT_LOCKING
 #include <X11/Xos_r.h>

-#ifdef linux
+#ifdef __linux__
 #define        UT_NO_pututline
 #endif /* sun */

-jon

On 05/24/2018 06:37 PM, Chase via cdesktopenv-devel wrote:
Strange, I didn't see this error, I will take another look at it tomorrow...


​Thank you for your time,

-Chase​

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On May 24, 2018 7:33 PM, Jon Trulson <j...@radscan.com> wrote:

​​

Can't apply this one - it breaks compilation of dtterm and dtcodegen:

gcc -g -pipe -o dtterm -O2 -fno-strict-aliasing -Wno-write-strings

-Wno-unused-result -ansi -L../../exports/lib

-L../../imports/motif/lib -L/usr/lib DtTermLogit.o DtTermMain.o

DtTermFallBackResources.o sunDtTermServer.o DtTermSyntax.o -lDtTerm

-lDtHelp -lDtSvc -ltt -lXm -lXt -lSM -lICE -lXext -lX11 -L/usr/dt/lib

-L/usr/lib -lm -Wl,-rpath,/usr/dt/lib:/usr/lib

../../exports/lib/libDtTerm.so: undefined reference to `_pututline' collect2: 
error: ld returned 1 exit status Makefile:802: recipe for target 'dtterm' 
failed make[3]: *** [dtterm] Error 1 and gcc -g -pipe -o dtcodegen -O2 
-fno-strict-aliasing -Wno-write-strings -Wno-unused-result -ansi 
-L../../../../exports/lib -L../../../../imports/motif/lib -L/usr/lib abmf.o 
args.o cdefs.o connect.o create_decls.o dtb_utils.o generate_code.o instances.o 
lib_func_strings.o make_file.o merge_c.o motifdefs.o msg_cvt.o msg_file.o 
obj_names.o parse_c.o proj_c_file.o proj_header_file.o resource_file.o 
stubs_c_file.o ui_c_file.o ui_header_file.o utils.o utils_c_file.o 
utils_header_file.o write_c.o write_code.o ../libABil/libABil.a 
../libABobjXm/libABobjXm.a ../libABobj/libABobj.a ../libAButil/libAButil.a 
-lDtTerm -lDtHelp -lDtWidget -lDtSvc -ltt -lXm -lXt -lSM -lICE -lXext -lX11 
-L/usr/dt/lib -L/usr/lib -lm -Wl,-rpath,/usr/dt/lib:/usr/lib 
../../../../exports/lib/libDtTerm.so: undefined reference to`_pututline'

collect2: error: ld returned 1 exit status

Makefile:784: recipe for target 'dtcodegen' failed

make[5]: *** [dtcodegen] Error 1

You might have missed something in libDtTerm...

-jon

On 05/24/2018 03:26 PM, Chase via cdesktopenv-devel wrote:

The current define macros for linux are deprecated, so we should use the

official POSIX macros instead.

Thank you for your time,

-Chase

Check out the vibrant tech community on one of the world's most

engaging tech sites, Slashdot.org! http://sdm.link/slashdot

cdesktopenv-devel mailing list

cdesktopenv-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

--

Jon Trulson

"But when I'm in command, every mission's a suicide mission."

- Zapp Brannigan


------------------------------------------------------------------------------------------------

Check out the vibrant tech community on one of the world's most

engaging tech sites, Slashdot.org! http://sdm.link/slashdot

cdesktopenv-devel mailing list

cdesktopenv-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel


--
Jon Trulson

"But when I'm in command, every mission's a suicide mission."

                              - Zapp Brannigan
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to