Build CK Core CDE
Configured Makefiles are build outputs. File Manager's Makefile is generated
from its tracked Makefile.am; no configured checkout paths are shipped in it.
When reusing a build tree, run bootstrap and configuration before cleaning if
the source Makefile definitions have changed.
At the start of a repair batch, fetch the latest published CK Core Motif
master, record its full revision in .ckgit/motif-revision and update the
rpi4 sister pin to match. Build and install that revision into an isolated
prefix. Keep the prefix fixed for all ten rounds, their validation and
publication. Adopt further toolkit updates at the start of the next batch.
The prefix must contain its ABI 9 Xm, Mrm, and Uil libraries, Motif headers,
and UIL compiler.
Keep the configured CDE and Motif build trees for subsequent repair batches. Use incremental builds for changed sources and affected header/library dependencies. Do not clean or recreate the trees between batches. Keep the SDK prefix path stable and preserve unchanged installed headers' bytes and timestamps during SDK updates. Reconfigure when its inputs or settings change, and record any ABI or toolchain change that requires broader object invalidation.
export MOTIF_SDK=/absolute/path/to/ck-core-motif-prefix
export PATH="$MOTIF_SDK/bin:$PATH"
export CPPFLAGS="-I$MOTIF_SDK/include $(pkg-config --cflags xft)"
export LDFLAGS="-L$MOTIF_SDK/lib -Wl,-rpath,$MOTIF_SDK/lib"
cd cde
./autogen.sh
./configure
make -j4
make -j4 check
Configuration verifies both the XmToolkitABI symbol and the ABI 9 header
constant. It fails when the selected include or library path resolves to stock
Motif or a different CK Core Motif ABI.
The complete desktop also needs the X11, PAM, ToolTalk, RPC, JPEG, LMDB, Tcl,
terminal, font, and document-processing development packages listed by the
Debian package metadata under cde/debian/control.
Desktop KornShell dependency
CK Core CDE builds dtksh from the ksh93/ksh 1.0 maintenance line. The
exact commit, archive SHA-256 and ordered patches are recorded in
cde/programs/dtksh/ksh93.mk. The desktop built-ins and widget bindings remain
CDE source. The CDE entry point registers them through ksh's startup callback,
and the bindings use the generated headers for the same pinned library. The
dependency retains its upstream compiler settings; CDE glue follows the
configured C language mode.
The build installs ksh's private shared libraries under
lib/dtksh/ksh93/, allowing builtin -f and DtLoadWidget to load widget
classes at runtime. Native plug-ins must be built against the pinned headers.
The test-widget.c fixture includes ast.h before shcmd.h and uses SHLIB
to advertise the matching plug-in ABI.
A normal build prepares the dependency automatically. A configured CDE build can also prepare it explicitly:
make -C programs/dtksh prepare-ksh
Preparation requires Python 3, tar and patch. Git checkouts and source distributions contain the checksum-pinned upstream archive, so the dependency can be prepared without network access. To use a separately staged copy of the same archive, supply its absolute path:
make -j4 KSH93_ARCHIVE=/absolute/path/to/ksh-REVISION.tar.gz
Preparation verifies the archive checksum before extraction or patching. The
verified archive and patched source live in the private build directory under
programs/dtksh/ksh-work/. The tracked archive remains the unmodified bytes
from the pinned upstream revision; CDE's integration manifest and ordered
patches remain separate.
Installation includes the upstream EPL-2.0 license and copyright notices under
share/licenses/dtksh/.
To update ksh, select an upstream maintenance commit, update the commit and
checksum together, and review every patch against the new source. Production
patches are limited to the platform probe and desktop shell build options. Test
patches apply to a temporary copy of the upstream suite: they synchronize
pipeline checks, scope the version check to exclude ToolTalk commands, measure
signal and command-substitution deadlines inside the child interpreter, and
bound PTY dialogues. Run the upstream POSIX and UTF-8 suites through the linked
dtksh, then exercise the installed-style widget callback under Xvfb:
make -j4 -C programs/dtksh check
xvfb-run -a make -j1 -C programs/dtksh check-widget
For a focused rerun, pass a space-separated list of upstream test names, for
example KSH93_TEST_CASES="basic signal subshell", to the same make check
command.
Hardening and sanitizer builds
Two opt-in configure switches support defect hunting. Neither changes an ordinary build.
--enable-hardening adds -Wall -Wextra -Wformat=2 -Wnull-dereference,
-Wno-unused-parameter (Xt and Motif callback signatures fix their parameter
lists), -fstack-protector-strong and, when the build is optimized,
-D_FORTIFY_SOURCE=3. Each flag is probed, so a compiler that lacks one skips
it. The switch also stops adding -Wno-format-truncation, -Wno-write-strings
and -Wno-unused-result, so truncation, string-constant and ignored-result
defects are reported, and promotes all sixteen zeroed defect classes
(-Werror=return-type, -Werror=use-after-free, -Werror=free-nonheap-object,
-Werror=restrict, -Werror=format-overflow, -Werror=stringop-overflow,
-Werror=stringop-truncation, -Werror=maybe-uninitialized,
-Werror=array-bounds, -Werror=unused-result, -Werror=format-truncation,
-Werror=null-dereference, -Werror=address, -Werror=implicit-fallthrough,
-Werror=misleading-indentation, -Werror=cast-function-type) to compile
errors. Build with at least -O1; -Wnull-dereference finds most with -O2.
--enable-sanitizers[=LIST] compiles and links with -fsanitize=LIST (default
address,undefined) and -fno-omit-frame-pointer. Configure fails when the
compiler cannot link a sanitized program. The flags are applied after the last
feature probe, so sanitized probe programs do not change feature detection. A
sanitized toolkit needs a sanitized consumer: configure the pinned CK Core
Motif with the same switch and list, and build CDE against that prefix. Set
ASAN_OPTIONS=detect_leaks=0 while building, because generator programs run
during the build.
Remaining warning classes are tracked per component and warning class before and after a change. The hardening baseline and audit ledger holds the current counts and the tool that compares a build with them.
C23 build contract
C23 is the default language mode for maintained CDE C sources. Configure keeps
an explicit -std= mode supplied by a packager or developer. Genuinely
historical utilities retain their scoped compatibility modes. The external
ksh93 dependency uses its supported upstream dialect while maintained dtksh
glue inherits the enclosing C23 qualification flags. Both GCC and Clang build
the dependency and strict C23 glue in their respective lanes.
Generated dtksh scripts likewise name their source-tree prerequisites
explicitly, allowing the check and install targets to run out of tree.
The maintained dtksh command layer is compiled in the enclosing C23 mode. Its
Xt, Xlib, ToolTalk, print-setup and ksh discipline callbacks use their native
prototypes; operations with different signatures have separate typed paths or
small value adapters rather than common untyped dispatch.
The same rule applies to Motif constructors and list, text and subwidget
operations: related commands share a helper only when their callback types are
actually compatible.
The dtsearchpath and dtappgather executables search the libCliSrv build
directory before its maintained source directory. Generated interfaces can
therefore override their source counterparts when present, while a clean
out-of-tree build still finds the checked-in private interfaces without copying
them into the build tree.
The same build-before-source rule covers dtprintinfo's private UI, object and
utility header trees. Its catalog generator resolves the checked-in shell and
AWK helpers and message input through $(srcdir), so generated catalog headers
remain build outputs without requiring source files to be staged beside them.
The icon and work-area widgets' initialization, destruction, resize, expose,
set-values, geometry, constraint, action and timeout methods implement their Xt
contracts directly. The C++ help, main-window, container and drag-and-drop
adapters are registered without function-pointer casts as well. Icon geometry
returns Motif's negotiated result, and the registered fatal Xt handler is
non-returning even if delivery of the requested core-dump signal fails.
The ttsnoop App Builder rules likewise treat BIL projects, module
descriptions, maintained stub templates and C/C++ wrapper fragments as source
inputs. Generated UI modules, utility headers and the main translation unit
remain private build outputs, and a clean out-of-tree build never depends on
copies left beside them by an earlier in-tree generation. The generated utility
runtime covers each centering and grouping enum value and transports numeric Xt
client data through uintptr_t. The maintained ToolTalk viewer uses one
mkstemp path helper for its temporary files and FIFO names, with explicit file
descriptor, allocation and cleanup ownership.
DtInfo's shared include map searches its generated build directories before the maintained DtInfo, UAS, DtMmdb and WWL source directories. Clean out-of-tree builds can therefore compile checked-in application and C++ wrapper headers without copying them into the build tree, while preserving the normal override order for generated interfaces.
The C locale generators keep generated desktop resources in the build tree,
read checked-in resources and translation templates from the source tree, and
write all merged locale data to the build tree. App Manager category
directories are created there before their generated action entries. DtInfo's
resource and message generators likewise use source-qualified templates, so a
clean shadow build cannot silently turn a missing relative input into an empty
application-default file. Its final catalog preprocessor resolves the generated
message aggregate from the shadow directory, checks that stage before invoking
the catalog converter, and publishes the result atomically. The maintained
merge utility is compiled as C23 with a standard int main entry point under
both GCC and Clang.
The DtHelp generator and print helper search generated build interfaces before the checked-in private DtHelp headers. This preserves generated overrides while allowing clean out-of-tree GCC and Clang C23 builds.
DtHelp's pass1, pass2 and canon1 parser components follow the same build-first,
source-second rule for their shared util, build, element-definition, parser and
help-tag headers. Their DTD, delimiter and context inputs are source-qualified;
generated parser tables remain confined to the build tree. Generator fragment
lookups use the same build-first/source-second ordering, and their file-opening
interface accepts const path and mode strings without casts. Generated
pass1 element-definition tables are completed before their consumers compile,
matching the canon1 and pass2 generators in parallel builds. Generated
interface-value macros explicitly end an earlier token definition before
reusing its name, and integer trie payloads cross the generic pointer boundary
through intptr_t rather than a width-truncating cast.
The maintained help viewer also uses the C-standard int main entry-point
contract under both compilers.
DtTerm's optional Solaris interactive-session integration resolves its Xlib entry point dynamically but retains the documented display, process-buffer, flag and count types at the call boundary. App Builder no longer carries the disabled pre-CDE matrix renderer whose data members and callback shape predated the maintained viewer model.
The Motif manual guide resolves its shared link definitions from the source
tree and replaces an earlier generated link atomically enough for repeated
out-of-tree builds. A stale or broken shadow-tree link therefore cannot stop a
subsequent full build. Manual-page rules invoke the generated DocBook wrapper
from the build tree rather than looking for a nonexistent generated script in
the source checkout. The wrapper keeps static SGML data in the source tree but
resolves the compiled instant converter from the build tree; each manual rule
also passes its source-qualified declaration file. Generated wrapper scripts
derive their launcher path from Automake's absolute build directory rather than
the invoking shell's PWD environment. Shadow builds provide source-backed
links for the entity files which the declarations resolve relative to the
manual build directory. Source inputs and shadow-tree outputs are absolute, and
the output directory is created before conversion. Guide TOC and information
library rules invoke the compiled dtdocbook2infolib program from the build
tree while keeping source-qualified catalog and book inputs in the source tree.
Each generated TOC remains in a pre-created directory beneath the build tree;
the final information-library build waits for all of those TOCs. Its derived
bookcase descriptor maps generated TOCs to the build tree while keeping the
immutable guide books and style sheet in the source tree, so a parallel clean
shadow build cannot race or resolve one class of input in the wrong tree. The
information-library helper uses the same split: static DocBook support data is
source-owned, while the generated dtsearch database definition is build-owned.
Its sibling generator lookup is anchored to Automake's absolute build
directory, not the directory from which configure happened to be invoked.
Localized help SDL generation likewise invokes the generated DocBook wrapper from the build tree, searches immutable SGML data in the source tree and writes each output through its absolute shadow-build path. A derived descriptor for each help book maps the configured shared help entities to the build tree and the checked-in per-product entities to the source tree.
ToolTalk's mini-ISAM library is qualified with both GCC and Clang in C23 mode. Its public conversion routines, internal operations and record-method callbacks use complete prototypes, including the legacy client-facing declaration set; the conversion regression test also compiles const encoded input buffers through those interfaces and verifies integer, floating point and fixed-width character round trips.
ToolTalk's drag-and-drop helper also publishes one typed interface to C and C++
consumers rather than retaining a K&R fallback. Its send/receive callbacks and
the internal ToolTalk reply callbacks use their complete argument lists. The
library builds and links with both C23 compilers, and its type negotiation is
exercised against the linked archive for common-type and fallback selection.
The ttdbck utility searches both build and source directories for its private
ToolTalk, mini-ISAM and typed-database headers, so a clean out-of-tree build no
longer relies on headers copied into a sibling build directory. The
tt_type_comp utility likewise links its generated grammar include to the
maintained source header and searches the private ToolTalk source directories.
The ttauth command utility declares its public entry points explicitly and
uses separate typed dispatch contracts for command handlers and authority-entry
iterators, so C23 does not reinterpret either table as accepting no arguments.
The ToolTalk database server also searches the maintained ToolTalk and
mini-ISAM source directories, allowing its C++ sources to build cleanly from an
out-of-tree C23 qualification directory. The ToolTalk session server uses the
same source-aware include contract for its private session, message and utility
headers. ToolTalk's optional dynamic Xlib/Xt dispatch table preserves every
native function prototype, including the X I/O-error callback; only the POSIX
dlsym boundary converts the resolved address into that exact type.
The DtMrm resource-registration library searches both build and source trees for the private DtHelp and DtTerm headers included by its widget-private interfaces, rather than relying on an in-tree sibling layout.
The dtmail library and its Motif, RFC, desktop and print consumers likewise
include their maintained header trees explicitly. Clean qualification builds
therefore do not depend on source headers having been mirrored into sibling
build directories.
The desktop executable consumes X_CFLAGS as a complete optional flag set, so
an empty platform X include path cannot swallow the following source include.
The dtimsstart desktop input-method launcher is also qualified at the
translation-unit level with GCC and Clang in C23 mode. Its module interface and
private functions use complete prototypes, Xt callbacks use XtCallbackProc,
the Xlib error handler uses XErrorHandler, and X property results retain the
unsigned-byte and unsigned long types required by XGetWindowProperty.
Relinking the launcher remains part of the complete-tree qualification because
it depends on CDE libraries that are being converted in later batches.
The dtpdmd print-display manager is qualified at the translation-unit level
with both compilers as well. Its dispatch, mailbox, manager, record, setup and
utility interfaces use complete prototypes, including the XIOErrorHandler
contract. Child output that contains no PDM status token leaves the match state
explicitly empty rather than consulting uninitialized storage. Like
dtimsstart, final relinking follows the conversion of its CDE library
dependencies.
DtSearch's embedded Raima runtime builds as a complete static archive with GCC and Clang in C23 mode. Its public single-database declarations, internal startup contract, linked-list API, private helpers and database error callback all use complete prototypes. The collation path explicitly crosses from character data to unsigned table indices, so the compiler no longer has to infer signedness or discard a legacy dereference expression while advancing an input pointer.
The DtInfo widget library's C classes use the complete Xt method contracts for
initialization, realization, geometry, redisplay and resource changes. The same
C23 qualification covers DtSvc's private hash callbacks, Instant's typed
element/content tree visitors, and dtscreen's mode dispatch and fireworks
helpers. Callback implementations accept their framework-defined context type
and recover private state inside the function, rather than relying on an
incompatible function pointer or a cast at registration time. Restraint's
geometry and child-management slots and Simple's sensitivity slot now preserve
their native class-record types as well; casts still emitted by these widget
records are Xt/Motif inheritance sentinels.
DtSvc's action translations, timeouts, prompt handlers, message logger and
subprocess termination hook likewise expose their exact framework callback
boundaries. Its database converter table uses one typed Boolean-returning
contract for every converter. Private dialog state and the queued command
identifier are recovered from the opaque client-data argument inside those
callbacks.
DtSearch uses typed exit adapters for database and shared-memory cleanup rather
than treating unrelated no-argument routines as exit hooks. Its string and file
readers also implement the parser's shared opaque-argument callback directly.
The dtsrcreate utility uses the same typed adapter contract for emergency
database cleanup.
DtWidget's ComboBox, Control and DialogBox class records use full Xt/Motif
method signatures and recover their concrete widget types inside each method.
The same rule applies to Editor, Icon, SpinBox and TitleBox methods, action
tables, synthetic resources and gadget dispatch hooks. Project-owned methods
and converters are stored directly; casts that remain in these records are
toolkit-defined inheritance sentinels or typed null initializers.
DtPrint procedure resources follow the Intrinsics default-value contract as
well: their defaults are addresses of typed DtPrintSetupProc values, with a
valid typed sentinel preserving the difference between unspecified and null.
DtHelp's image library uses exact callback types for pipeline initialization, cleanup, destruction and execution, conversion records, and image-object lifecycle hooks. Implementations accept the pipeline or object context defined by the framework and recover their private record internally. This also makes the cleanup ABI explicit: cleanup hooks receive the private record and the abort flag, while image descriptors belong only to initialization hooks. The complete image-library archive builds from clean objects with GCC and Clang in C23 mode.
The surrounding DtHelp library also has typed contracts for formatter UI
services, SDL content models, display-area notifications, interpreter filters,
and region cleanup. Its buffered-I/O layer keeps read and write operations in
separate callback slots: input callbacks receive the buffer, while output
callbacks receive the byte and buffer. This removes the former dependence on a
single unspecified-argument function pointer serving two incompatible ABIs.
The complete shared DtHelp library compiles and links with both C23 toolchains.
Dialog map callbacks return void as XtCallbackProc requires. Menu, message
and display-area event handlers accept Xt's dispatch-control pointer and are
registered directly, without function-pointer casts concealing a three- versus
four-argument ABI mismatch. Help and terminal selection ownership uses the
native Xt conversion, loss and completion slots directly, and terminal key
translation no longer casts already-compatible translators at registration.
The maintained desktop launch and session paths also use their framework and
system interfaces directly. dtexec relies on the standard and POSIX headers
instead of shadowing them with unspecified-argument declarations; dtaction
timer callbacks use the Xt timeout signature; and dtsession declares its
XSMP, ICE, save-state, signal and UI routines with complete prototypes. The
session manager's client- and window-manager readiness hooks implement the
complete four-argument XtEventHandler contract at add/remove registration.
Its X I/O hook accepts the display directly, while its fatal Xt hook is marked
non-returning and has an unconditional _exit fallback if orderly session
shutdown is not yet permitted.
Action-database reload notification likewise uses its public client-data
callback contract directly, including the session manager's initial explicit
reload path. DtSvc retains each function and its client data together in a
typed registration context; ToolTalk user data carries only the context's
object pointer, never an encoded function pointer.
The dsdm X error and recursive-window callbacks, interest-property reader and
drag-and-drop proxy boundary use exact shared Xlib contracts; the dticon X
error hooks likewise avoid function-pointer casts.
The welcome-screen timeout likewise registers its existing void(int) alarm
handler directly rather than casting it to a no-argument function type.
The icon editor's remaining cross-file interfaces are fully prototyped as
well. Its ToolTalk contract and media callbacks use the toolkit-defined
argument lists, dialog constructors declare explicit no-argument contracts,
and dialog-management operations accept a single Widget. The selection
flash timer implements XtTimerCallbackProc directly, so registrations do not
cast around an incompatible client-data parameter.
The window manager likewise registers callbacks without disguising their
types. Workspace-presence and front-panel callbacks receive XtPointer
payloads, event handlers include Xt's Boolean * dispatch parameter, and
icon-box and window-manager timers implement their framework contracts
directly. The window-manager command table and its argument-parser table use
the concrete signatures shared by their implementations, including explicit
encoding of legacy numeric command arguments instead of writing through an
incompatible pointer type. Supporting desktop APIs now preserve the read-only
tokens returned by shellscan, distinguish shared Xt callbacks from event
handlers, and publish the complete four-argument _DtCreateView factory
prototype. Resource converters accept Xt's argument-count pointer directly,
and the front-panel button and clock gadget records store their exact class
method contracts; remaining casts in those records are toolkit-defined
inheritance sentinels rather than project callbacks.
The File Manager and the DtSvc dependency path now link as complete
executables and shared libraries with GCC and Clang in C23 mode. Converted File
Manager resource serialization, file-operation dispatch, menu construction,
signal handling and X/Xt callback paths use their exact contracts. DtSvc's
command invoker, hash traversal and destruction callbacks, workspace and marquee
notifications, and dynamically loaded Help entry points are typed at their
definitions and call sites. Both linked File Manager executables resolve
libXm.so.9 from the pinned CK Core Motif qualification prefix.
The shared public-interface layer is qualified in both C and C++ consumers as well. ToolTalk message callbacks, DtSvc receive/message/status callbacks, command-invoker initialization, action allocation, multimedia database lifecycle functions, the symbolic-table API, and the Sb event-loop hooks now publish their complete parameter lists. Instant's initialization, browsing, ID-reference and output-buffer declarations match their definitions. Header probes compile these interfaces with GCC and Clang in C23 mode and with G++ and Clang++ in C++17 mode; the corresponding ToolTalk, DtSvc, DtMmdb, dtspcd, dtfile and dtdocbook consumers build and link in both C23 configurations.
The editor, calculator, print-display manager, terminal primitive layer and
selected calendar/mail interfaces are qualified with GCC and Clang C23 as
well. dtpad uses XtCallbackProc and the complete ToolTalk contract for its
file workflow. Its editor, help, formatting, option, session and print
callbacks all implement the Xt boundary directly, while a dedicated
integer-argument adapter invokes the parameterless panic-save routine for
signals. dtcalc registers its X error handler without a cast and keeps
its button dispatch explicitly parameterless. Its help callbacks implement
XtCallbackProc directly, while typed callback adapters invoke the
parameterless ASCII-conversion and exit operations. dtpdm publishes explicit
no-argument constructors. DtTerm's parser action table and cleanup entry points
now carry their actual arguments, while dtmail's generated utility accessors
state that they take no arguments.
The calendar storage containers use concrete key, comparison, enumeration,
destruction and tree-action callback types. Their v4/v5 adapters recover the
typed appointment or entry key from the container's opaque key argument, and
the v4 result callback uses one explicit output-slot contract instead of a
function-pointer cast. The caller keeps each concrete appointment result in a
separately typed local. The affected libcsa and calendar-server objects compile
with both C23 toolchains. The calendar RPC table now stores one exact dispatch
signature and uses per-procedure adapters to call each service through its real
argument and result types. Its tree/list selection hooks and signal handlers
are exact as well, so the complete rpc.cmsd server builds and links in both
C23 configurations. The libcsa RPC-generation rules resolve all templates and
filter scripts through $(srcdir), allowing the same clean out-of-tree build.
The checked-in calendar RPC v2-v5 headers now expose one typed interface instead
of retaining alternate K&R declarations. Out-of-tree calendar builds take the
generated agent.h from the build tree while resolving checked-in CSA and
libDtCmP headers from the source tree. The dtcm parser query hook, Xt callbacks,
ToolTalk load callbacks, session helpers and standalone entry points likewise
use their exact contracts. As a result, clean libcsa, libDtCmP, rpc.cmsd and
calendar-program builds link under both GCC and Clang C23.
The next maintained-program tranche removes unspecified argument lists from
the remaining small DtHelp, DtTerm and DtWidget helpers and from dtcreate,
dtlogin, dtsession and dtstyle. DtWidget's editor and search callbacks expose
XtPointer at the toolkit boundary; its icon timer receives XtPointer, and
its icon and format event handlers implement the full XtEventHandler ABI.
These paths register directly without function-pointer casts. In dtlogin, the
network-address helpers are
declared once in the shared interface, optional authentication initializers
match the dispatch table's void contract, and chooser callbacks carry their
complete Xt types. Local socket, chooser and XDMCP code relies on those shared
host/address prototypes instead of shadowing them with f() declarations;
dtcreate no longer retains an unused untyped signal-function pointer.
Dtappbuilder's browser, editor and generated-application
utilities now state their real contracts instead of relying on implicit
arguments or an untyped undo slot. Its object verifier also installs a real
int-argument signal handler for guarded memory probes, while its callable
UIL compiler uses separate, exact message and status callback contracts
without registration casts. Dtudcexch similarly publishes complete BDF
conversion and utility interfaces; its primary UI and file-selection callbacks
accept XtPointer client data directly, without callback casts. The bundled
PAM dispatcher uses one exact module-function type, while the font loader uses
the system <dlfcn.h> declarations and RTLD_* flags. DtHelp's parent library
also searches the image library and JPEG helper source include directories, so
a clean out-of-tree build does not depend on headers left in the build tree.
DtTerm's utility, terminal and view libraries likewise resolve their private
line-font and terminal headers from the source tree, and its generated line
table reads the checked-in data file there.
Its cursor and pointer-blanking timers implement XtTimerCallbackProc
directly, and dtterm's session-save hook uses the exact Xt callback boundary;
none requires a registration cast.
App Builder resolves each private include from $(top_srcdir), feeds its
message catalog from source-qualified inputs, and stages read-only links to its
BIL project inputs when generating code outside the source tree. It seeds the
build with the maintained generated header and stub files so application
resources and user-code sections survive code generation, and its exit path
assigns SIG_IGN through the native signal-handler type. Project, module,
browser and modal-prompt chooser arrays store exact XtCallbackProc
implementations rather than cast functions specialized to a Motif callback
record. Those implementations accept XtPointer at the toolkit boundary and
recover XmSelectionBoxCallbackStruct only inside the callback. App Builder's
generated message-dialog runtime uses the same direct callback entries, and
the code emitter writes plain null callback values instead of generated
function-pointer casts. Generated popup actions and drag-motion event handlers
also carry the complete Xt contracts. Palette and editor registrations likewise
store their callbacks directly. List and toggle callbacks accept Xt's opaque call-data
argument and recover the concrete Motif callback record inside the function;
the callback-map helper returns a typed null without a function-pointer cast.
Project, browser and object translation actions likewise implement
XtActionProc directly. External-resize event handlers and the menu-button
double-click timer use the complete Xt event and timeout callback contracts, so
their registration sites require no function-pointer casts. Object change
notifications retain their distinct geometry, reparent, attribute, lifecycle
and update callback types in a tagged union; dispatch selects the matching
member rather than erasing every callback into one incompatible generic slot.
The maintained generated application source also initializes project-open and
import chooser arrays with the direct callbacks. Their shared implementations
recover the selection-box record internally. The final application also
includes the parser header from the sibling build directory rather than
depending on an in-source generated copy. App Builder's remaining internal and
public no-argument declarations use (void), and unused generic function
pointer aliases have been removed. A complete GNU17 diagnostic audit with
-Wstrict-prototypes -Wold-style-definition reports no remaining ambiguous
declaration or old-style definition before the same target is rebuilt in C23
mode. Dtterm resolves its
terminfo and fallback-resource generation scripts and inputs through
$(srcdir), while its compile includes cover both generated build headers and
the checked-in private terminal headers.
Dtstyle's fatal Xt error hook carries Xt's non-returning contract, and its map
and window-manager reparent handlers implement XtEventHandler directly
without casts at registration or removal sites.
Its help and startup callbacks likewise implement XtCallbackProc at the
registration boundary, recovering toggle or help records from call_data only
inside the callback. Font and cursor-preview labels retain the mutable string
type required by the legacy Motif and message-catalog interfaces.
Dtcreate uses the ToolTalk toolkit's input handler for Xt dispatch and reserves
its exact three-argument contract callback for ttdt_session_join, avoiding an
incompatible callback cast and a duplicate ToolTalk connection. Its help-dialog
close hook is also registered directly through its exact Xt callback type. The
icon selector stores and accepts XtCallbackProc values rather than unspecified
function pointers, and its directory scanner gives the selection hook its real
two-argument contract.
Generated widget registrations now pass their callbacks without function-pointer
casts. Those callbacks expose Xt's three-argument boundary and recover Motif- or
CDE-specific callback records from call_data only where the implementation
actually reads one.
Dtlogin retains X I/O and alarm handlers through their native function-pointer
types and restores X's default error handler with NULL, without handler casts.
Its language enumerator table carries the exact next/end method contracts, and
chooser/XDMCP code uses the shared typed environment and opaque-address APIs.
Dialog file access comes from <stdio.h> rather than local fopen()
redeclarations, and the fatal Xt error callback carries Xt's non-returning
contract.
Dtstyle registers dedicated int-argument signal handlers rather than casting
Xt callbacks or no-argument helpers to the signal ABI.
DtIcon's help, hyperlink and close callbacks accept Xt's opaque client and call
data directly, so all help registrations use typed callback entries without
casts.
DtCm's menus, editors, browsers and dialogs likewise register the shared
calendar help callback directly through its exact Xt contract.
Its appointment, group, to-do and standalone-editor drag-motion hooks carry
Xt's complete event-handler contract. Appointment and to-do list-view buttons
also register through exact Xt callbacks. Calendar canvas translations
and input callbacks use separate exact adapters around shared event processing,
and canvas help uses its native Xt callback contract throughout day views.
DtLogin's login-field insert and backspace translation actions likewise use
their complete four-argument Xt action contracts directly.
DtHelp's help-view close hook uses its native Xt callback boundary directly.
DtCalc's popup mapping, help-selection timeout and X editres hooks also register
their already-exact callback contracts without function-pointer casts.
DtPad registers its X editres hook through the complete Xt event-handler
contract, while DtIcon uses a typed timeout adapter around its reusable polygon
click-state reset helper.
DtInfo's WWL member-callback and timeout bridges use Xt's exact opaque-pointer
and interval-ID contracts at the toolkit boundary. Its query-resize, search
help, selection-transfer, input-readiness, deferred-scope, session-save,
client-event, editres and command-exit hooks likewise register through exact
typed boundaries.
DtMail registers its list, message-drag, icon, text and editres hooks through
their complete Xt contracts. Sendmail completion crosses the frontend boundary
through a typed Xt input adapter, while the mail transport exposes a neutral
completion operation instead of returning an untyped function address.
DtPdm also treats an absent optional menu callback as a typed null value without
a function-pointer cast.
DtWidget's editor translation table stores its complete four-argument Xt action
implementations directly, allowing the compiler to check every public and
internal editor action.
DtImsStart registers its window-manager callbacks and host-return action
directly, with a typed Xt adapter around its reusable no-argument window
shutdown routine.
DtFile's core window registers its close and timeout callbacks directly. Its
directory-entry and restricted-text callbacks accept opaque Xt call data and
recover the Motif callback record internally, while drag-motion and window
map/resize handlers carry Xt's complete event-handler contract. All shared
file-manager and desktop help callbacks are also registered directly.
Find and content-search pipe readers register their complete Xt input-source
callback contracts directly as well.
The Change Directory dialog class also implements the generic dialog-method
typedefs directly, recovering its concrete dialog and values records inside the
methods rather than casting the function table.
The Find dialog uses the same generic method boundary and gives its stop-button
enter/leave handlers the full Xt event signature.
The main File Manager class similarly implements its set/free/focus methods at
the generic boundary and initializes unsupported methods with typed nulls. Its
branch-list and selection-list resource converters implement the actual modern
and legacy Xt converter contracts directly.
The Help dialog class also stores exact generic methods and typed null entries,
recovering its concrete help records only inside the method implementation.
The Modify Attributes class uses that same generic method boundary and exposes
its apply and filesystem-specific launcher operations as native
XtCallbackProc implementations.
The Filter dialog class likewise implements its generic method-table contracts
directly and casts only opaque data back to its concrete records internally.
The Preferences class completes the same method-table conversion and registers
its apply and OK operations as exact Xt callbacks.
DtFile's text-field actions and legacy resource converters also expose the
complete XtActionProc and XtConverter contracts directly.
Its command, dialog-cache and Change Directory timeouts use the native
XtTimerCallbackProc contract and recover widgets from opaque client data.
Dialog-cache structure notifications likewise use the complete Xt event
handler boundary.
Rename verification and tree-button activation accept opaque Xt call data and
recover their concrete Motif records inside the callback.
Map, help, icon activation and iconic-path handlers are registered directly
where their implementations already match Xt's callback and event contracts.
Drop callbacks and Xmu editres dispatch are likewise registered without casts.
DtPad exposes its editor, help, formatting, option, session and print callbacks
through XtCallbackProc directly, and routes panic signals through a typed
signal adapter. DtAction likewise registers its custom text actions and
action-status callback through the exact Xt and DtAction contracts instead
of hiding mismatches behind function-pointer casts.
To repeat that focused qualification from a configured C23 build tree:
make -j4 -C lib/tt/mini_isam check
make -j4 -C lib/tt/lib/api/dnd
make -j4 -C lib/DtHelp/il
make -j4 -C lib/DtSvc
make -j4 -C lib/DtMmdb
make -j4 -C lib/csa
make -j4 -C programs/dtspcd
make -j4 -C programs/dtfile
make -j4 -C programs/dtdocbook
make -j4 -C programs/dtcalc
make -j4 -C programs/dtpad
make -j4 -C programs/dtpdm
make -j4 -C programs/dtcm/libDtCmP
make -j4 -C programs/dtcm/server
make -j4 -C programs/dtcm/dtcm
make -j4 -C programs/dtappbuilder
make -j4 -C programs/dtudcexch
make -j4 -C programs/dtlogin
The ToolTalk session checks start their own Xvfb for the shell cases when
available. They wait for a complete display number and report a failed
Xvfb startup as a test failure. Run those checks from the configured
build tree with make -C lib/tt/bin/ttsession check.
The final default-language gate uses ARM64 shadow builds with both GCC
and Clang, followed by the complete make check suite in each build tree. The
same qualified GCC output is staged into an isolated uConsole CDE session which
must open the Front Panel, Style Manager, Terminal and File Manager, accept a
command typed through the visible terminal, pass the native dtwm property
client, and map every captured desktop process to CK Core Motif ABI 9. The CI
workflow preserves both compiler lanes with explicit -std=c23 and promotes
strict-prototype, old-style-definition and incompatible function-pointer
diagnostics to errors. The installed filesystem-consumer qualification uses
the same C diagnostics. GitHub and rpi4 each run separate GCC and Clang lanes;
the rpi4 driver records the compiler, source revisions, timing, output path and
dtwm fingerprint in its isolated task directory. Each CI lane configures in
an empty out-of-tree directory. Generated public headers in
that directory take precedence, with the maintained source header tree as the
fallback. ToolTalk applies the same build-first/source-second order to its
private library interfaces, and the named Dt, DtI, ToolTalk, Xm, CSA and SPC
include groups preserve that order for consumers using unqualified private
header names. No lane may depend on headers copied by an earlier build.
Clang diagnoses the Xt and Motif class-record inheritance sentinels more
broadly than GCC: the toolkit ABI deliberately represents every typed
XtInherit* and XmInherit* entry with the generic _XtInherit function
address. The Clang lane therefore leaves -Wcast-function-type-strict as a
warning while retaining the other function-pointer errors.
scripts/check-clang-cast-warnings.py audits the build log and accepts that
warning only when its source line uses an Xt/Motif inherit entry or compares a
class method with _XtInherit while propagating it. It also recognizes the
precise bool_t (XDR *, T *) to variadic xdrproc_t conversion emitted by
rpcgen and required by libtirpc. Any CDE callback cast, converter cast, or
other occurrence still fails the lane.
Configure validates the lexer it will use while already in the selected C
language mode. Its generated-scanner probe selects the POSIX declaration level
needed by Flex, and configuration fails early when no usable lexer exists.
DtMmdb and DocBook builds therefore use the configured LEX directly; a clean
shadow build does not require a command-line override or a generated scanner
left behind by an earlier build.
The DtInfo C++ viewer also consumes the typed DtHelp hyperlink and resize
interfaces directly. Its callbacks accept the interface's opaque display/client
pointers and recover the concrete viewer objects inside the callback. They do
not cast through unspecified-argument function-pointer aliases. Rebuilding
programs/dtinfo/dtinfo/src/Agents/libAgents_a-NodeWindowAgentMotif.o checks this
consumer against the actual private DtHelp declarations. The DtInfo launcher
registers its action-completion callback and timeout routine through their
native CDE and Xt contracts without function-pointer casts.
Ubuntu 26.04 LTS Lima Wayland harness
On Apple Silicon macOS hosts with Lima (vmType: vz), scripts/lima/cde-ubuntu-26.04.yaml
and scripts/run-lima-wayland-harness.py provision an isolated ARM64 Ubuntu 26.04 LTS
qualification guest and build the matched CK Core Motif ABI 9, ck-core-fs-lib,
CK Core CDE, and ck-core-apps stack on guest-local storage (capped at six
parallel jobs). All macOS temporary paths, LIMA_HOME, and XDG_CACHE_HOME
must reside beneath /Volumes/S8T/tmp:
export TASK_ROOT=/Volumes/S8T/tmp/cde-wayland-task
export TMPDIR="$TASK_ROOT/tmp"
export LIMA_HOME="$TASK_ROOT/lima"
export XDG_CACHE_HOME="$TASK_ROOT/cache"
limactl start --tty=false --name=cde-ubuntu2604 scripts/lima/cde-ubuntu-26.04.yaml
python3 scripts/run-lima-wayland-harness.py --task-root "$TASK_ROOT"
The provisioner also installs the libarchive development headers used by
the File Manager and its archive tests. Run the File Manager tests with
the matched file-engine prefix on PKG_CONFIG_PATH and a temporary
directory with trusted ownership and non-group-writable ancestors.
After staging the build, the runner starts a dual-output headless wlroots
compositor with rootless Xwayland, launches both native Wayland and Motif/CDE
clients, checks /proc/<pid>/maps so every Motif process maps the recorded
libXm.so.9 prefix, drives virtual pointer input, captures output PNG frames
through zwlr_screencopy_manager_v1, and writes receipt.json.
Ubuntu and Debian .deb cohort packaging
scripts/build-ubuntu-debs.py packages the matched native cohort into five
Debian/Ubuntu archives (ck-core-motif9, ck-core-fs-lib, ck-core-cde,
ck-core-dtlogin, and ck-core-apps) along with GPG-signed APT repository
metadata (Packages, Packages.gz, Release, Release.gpg, InRelease, and
ck-core-archive-keyring.asc):
python3 scripts/build-ubuntu-debs.py --task-root "$TASK_ROOT" --verify-install
Run install verification in a clean Ubuntu guest. To qualify a repository built on another machine, make the complete repository accessible inside the guest and point the verifier to it.
python3 scripts/build-ubuntu-debs.py --in-guest --verify-install \
--verify-repo "$SIGNED_REPO" --output-dir "$EVIDENCE" \
--guest-build-root "$GUEST_SCRATCH"
The verifier uses the repository's signing key for a scoped APT source. It
checks the installed Motif digest and live library mappings, captures the
native Wayland and X11 desktops, and verifies clean compositor shutdown.
The Wayland capture waits for the compositor to report the installed
applications' windows.
The X11 check lets Xvfb allocate a display and waits for its readiness
notification. It keeps the display available between desktop setup and
window manager startup. Diagnostics are saved in installed-xvfb.log and
installed-x11.log.
To qualify XLibre, put the directory containing its Xvfb executable
first on the guest's PATH before running the same command.
proc-maps-provenance.json and apt-verification.json record the running
X server's executable path and SHA-256 digest.
The live check-wayland-dtlogin.py check uses the same PATH selection
for the authenticated X11 handoff and records the server with --json-out.
The guest's _apt user needs to be able to traverse $GUEST_SCRATCH/tmp
and its ancestors to read the staged public key.
The desktop package recommends GNOME Keyring and secret-tool for
dtmail's CardDAV credentials, plus GnuPG and gpgsm for local message
signature verification.
All runtime libraries and executables install beneath /usr/dt with
RUNPATH=/usr/dt/lib and /etc/ld.so.conf.d/ck-core-cde.conf, avoiding file or
SONAME collisions with system libxm4. ck-core-cde ships dtwm-wayland,
dtwm-panel, /usr/dt/bin/Xsession.wayland, /usr/share/xsessions/cde.desktop,
/usr/share/wayland-sessions/cde-wayland.desktop, and
/lib/systemd/system/rpc-cmsd.service (initializing /var/spool/calendar and
enabling/starting rpc-cmsd.service in AF_UNIX + SO_PEERCRED mode with
PrivateNetwork=yes and zero open TCP/UDP ports so dtcm works immediately
and securely, plus optional libcurl HTTPS CalDAV sync and SSH socket
forwarding), while ck-core-dtlogin
provides /lib/systemd/system/dtlogin.service, the unprivileged _dtgreeter
account and /etc/pam.d/dtlogin-greeter PAM greeter stack, pam_systemd.so
session hooks, and shared/default-x-display-manager debconf integration.
To install from a generated local or published APT repository on Ubuntu LTS:
sudo install -d -m 0755 /etc/apt/keyrings
sudo install -m 0644 ck-core-archive-keyring.asc /etc/apt/keyrings/ck-core-archive-keyring.asc
echo "deb [signed-by=/etc/apt/keyrings/ck-core-archive-keyring.asc] file:/path/to/repo ./" \
| sudo tee /etc/apt/sources.list.d/ck-core.list
sudo apt-get update
sudo apt-get install ck-core-cde ck-core-apps ck-core-dtlogin
For Fedora / RHEL / openSUSE .rpm packaging (packaging/rpm/ck-core-cde.spec
and scripts/build-rpm.py) and FreeBSD ports / pkg recipes
(packaging/freebsd/ and scripts/build-freebsd-pkg.py, including seatd +
drm-kmod + evdev seat configuration), see
Packaging and Seat Portability.
CK Core CDE