Commit Graph

96 Commits

Author SHA1 Message Date
Jon Trulson
e437a02e0b dtinfo/dtinfogen: make it build
Now, as to whether it all actually works, I guess we will see.
2021-12-06 17:47:00 -07:00
Jon Trulson
93a3d73ef7 dtinfo: install required stuff, also in localized/ 2021-12-06 11:59:00 -07:00
Jon Trulson
b6c938fb47 dtinfo: move the dtinfo_dfiles_hfiles.mk makefile include into dtinfo/src/ 2021-12-05 19:48:48 -07:00
Jon Trulson
89cdc161d0 dtinfo: move the dtinfo_env.mk makefile include to programs/dtinfo/ 2021-12-05 19:15:05 -07:00
Jon Trulson
b9dbea9d3a dtinfo/dtinfo: get it to build
After fixing up some problems with the dtinfo/mmdb library, dtinfo now
links.
2021-12-05 11:57:50 -07:00
Jon Trulson
7540b13e2b dtinfo/dtinfo/src: more changes to the way the libs are made 2021-12-05 11:57:50 -07:00
Jon Trulson
10c77328fa dtinfo/DtMmdb: Fix up another build issue 2021-12-05 11:57:50 -07:00
Jon Trulson
97b2f86eba dtinfo/mmdb: redo the way this library is built
Specifically:

- use libtool so that the top level library contains the actual
  objects, and not just the sub-archives, which the linker will just
  ignore.
- create the source files via symlinks rather than referencing them
  with relative paths.  Doing it that way causes a 'make clean' to
  delete objects in DtMmdb/ which is wrong.
- fix up utility/ - it seemed to be building more source files than
  the original Imakefile listed.  Other changes may need to be done
  here if similar mistakes were made in other subdirs.
2021-12-05 11:57:50 -07:00
Jon Trulson
b24fd04619 dtinfo: get src/UAS building, finish msg and res building
Also, rework the way we build convenience libs for the classes to use
libtool.  This fixes some potential linking issues and dependency
checking.

Next up will be to see if we can link and install it, along with it's
message catalogs, resources, etc.
2021-12-05 11:57:50 -07:00
Jon Trulson
bdf9256ab2 dtinfo/dtinfo: initial stab at making it build 2021-12-05 11:57:50 -07:00
Jon Trulson
c12e6fea5b dtinfo: remove endian checks from Makefile, handled by autotools now 2021-10-23 22:08:48 -06:00
Jon Trulson
b876ab3932 dtinfo: use autotools endian detection instead of cpu-specific checks
This affects the definitions of OLIAS_BIG_ENDIAN and
OLIAS_LITTLE_ENDIAN when building mmdb.
2021-08-07 18:25:36 -06:00
Jon Trulson
31c2e82eea include: move dtinfo/DtMmdb/oliasdb/Mmdb.h -> include/Dt/Mmdb.h 2021-07-17 16:52:33 -06:00
Liang Chang
3909c8dbcc dtinfo: Fix a segmentation fault.
The return value from CanvasRenderer::_dofont is a pointer. It will be passed
to the free function. Ensure that pointer always points to a dynamically
allocated memory to avoid segmentation faults.
2021-06-02 19:56:29 -06:00
Lev Kujawski
a6ea2a2d52 Centralize catgets() calls through MsgCat
CDE has relied upon catgets() implementations following a relaxed
interpretation of the XPG internationalization standard that ignored
-1, the standard error value returned by catopen, as the catalog
argument. However, this same behavior causes segmentation faults with
the musl C library.

This patch:

- Centralizes (with the exception of ToolTalk) all calls to catopen(),
  catgets(), and catclose() through MsgCat within the DtSvc library.
- Prevents calls to catgets() and catclose() that rely upon
  undefined behavior.
- Eliminates a number of bespoke catgets() wrappers, including multiple
  redundant caching implementations designed to work around a design
  peculiarity in HP/UX.
- Eases building CDE without XPG internationalization support by providing
  the appropriate macros.
2021-06-02 19:55:15 -06:00
Lev Kujawski
3379999106 dtinfo: rename the CATGETS macro to MCATGETS 2021-06-02 19:51:24 -06:00
Jon Trulson
9f5021a81f pm_randon.h: fix conversion warning (int to float) 2021-06-01 18:23:46 -06:00
Chase
58ccd05459 dtinfo: make auxillary libs and programs build 2021-02-28 20:32:46 -07:00
Jon Trulson
ece5c0ea14 Merge branch 'master' into autotools-conversion
Lost the ksh93 submodule so will re-add in a later commit.
2021-01-30 19:04:10 -07:00
Lev Kujawski
f7227e1b74 dtinfo: Include config.h for the definition of u_int
Also, properly include unistd.h as a system header.
2021-01-30 17:22:12 -07:00
Lev Kujawski
c2d2accbad dtinfo: the musl C library requires the inclusion of the POSIX fcntl header 2021-01-30 17:21:57 -07:00
Jon Trulson
90e61dda5f Merge branch 'master' into autotools-conversion 2020-11-24 16:53:24 -07:00
Peter Howkins
67f62e5a8a all: remove deprecated sys_errlist[] and replace with ANSI C strerror() 2020-11-02 05:30:08 +00:00
Jon Trulson
5852c4742f Fix erroneous uses of ${prefix} rather than $(CDE_INSTALLATION_TOP)
Some Makefiles use prefix when they should be using
CDE_INSTALLATION_TOP.

Patch by Peter G.
2020-03-23 13:10:07 -06:00
Jon Trulson
c329d5cfd7 Remove $(TIRPCINC) from all Makefile.am files - it no longer exists
Also, restructure some of the dependencies in the lib/tt binaries.  We
will link with libtt (which will include libtirpc as a dependency),
and XTOOLLIB - all the right X11 stuff without needing to add it to
every OS.  Removed several uneeded OS specializations ("if LINUX",
etc) as a result.
2019-11-20 18:52:29 -07:00
Jon Trulson
152f5c9a88 Merge branch 'master' into autotools-conversion after utf8-conversion 2019-11-19 11:44:33 -07:00
Jon Trulson
de9d913b77 dtinfo: link proper localized (utf8) dirs 2019-11-17 15:07:14 -07:00
Jon Trulson
82059bf240 Merge branch 'master' into autotools-conversion after 2.3.1 release 2019-11-16 16:35:56 -07:00
Nina Didenko
b3f3997bd1 dtinfogen: don't override PATH 2019-11-05 18:48:00 -07:00
Jon Trulson
730da7747c Change "if SUN" conditionals in remaining Makefile.am files to "if SOLARIS" 2019-10-28 18:54:17 -06:00
Chase
4e254aee74 programs/dtinfo: add automake files 2019-10-23 15:34:20 -06:00
chase
dd68514e4f Remove hpversion.h from repository
This patch removes hpversion.h from the repository, this also untangles a
lot of ifdef mess. This closes bug CDExc19524.
2018-10-06 17:00:38 -06:00
chase
90a2b2848a remove ultrix support 2018-09-30 17:27:04 -06:00
chase
66db2259f7 Remove redundant motif widgets 2018-07-29 16:52:44 -06:00
Jon Trulson
556ce45298 dtinfo: remove register keyword 2018-06-27 22:20:34 -06:00
Jon Trulson
7c0de21ad4 dtinfo: remove TKTemplate.nd.c 2018-06-27 22:17:25 -06:00
Peter Howkins
4cf746f177 dtinfo: Change to ANSI function definitions 2018-06-28 04:15:16 +01:00
Jon Trulson
825a504a11 XPM: Replace calls to XmeXpm*() with regular Xpm*()
This is no longer needed on modern Motif's.
2018-06-14 16:50:57 -06:00
Jon Trulson
0554f2335f dtinfo/freebsd: fix a (int)NULL cast in DtSR_SearchEngine.C
This caused a compilation failure using gcc6 on FBSD 11.1-STABLE.
2018-06-13 17:57:46 -06:00
chase
809c3d8bb6 Spelling fixes 2018-05-31 22:23:19 -06:00
Ulrich Wilkens
297b6bd845 Fix warnings on FreeBSD 2018-05-31 22:04:08 -06:00
Ulrich Wilkens
07f272122d Fix Linux rpc problems with new glibc 2018-05-31 18:00:22 -06:00
Ulrich Wilkens
16fbb15ecc Fix BSD and Sun problems after coverity fixes 2018-05-31 17:46:03 -06:00
chase
4f5e7fe5e3 Use POSIX macros for linux 2018-05-24 18:22:55 -06:00
chase
164e695cd0 remove OSF1 support 2018-05-24 14:25:26 -06:00
chase
07900bd93b Remove Unixware and openserver support 2018-05-20 12:13:07 -06:00
chase
8a4f389634 Remove UXPDS support 2018-05-15 20:27:22 -06:00
chase
158fc36af4 Remove examples/motif 2018-05-13 13:12:47 -06:00
chase
3ccf3a8b86 Add missing license headers on *.hh files and others 2018-05-12 15:49:13 -06:00
chase
33d2749ea3 Last of the spelling fixed 2018-04-28 12:36:44 -06:00