Skip to content

Building curl on OS400 with DEBUG *SOURCE doesn't allow debug as module source deleted #15445

Closed
@jonrumsey

Description

@jonrumsey

I did this

Attempted to build curl 8.10.1 on OS400 with source debug support both via DBGVIEW(*SOURCE) or DBGVIEW(*ALL).

I expected the following

To be able to debug the LIBCURL *SRVPGM, however the debugger states that the source code is missing.

The cause of this error is that the make_module() in initscript.sh prepends a pragma to cause all string literals to be handled as ASCII codepage 819 rather than EBCDIC codepage 37, it then builds a module based on this temporary source file. After the CRTCMOD call completes the temporary source file is removed.

The fix to this is when using a DEBUG value other than *NONE to keep the modified source file for use with the debugger.

curl/libcurl version

curl 8.10.1

operating system

OS/400 V7R4M0

Activity

added a commit that references this issue on Oct 29, 2024
b57e9c8
added a commit that references this issue on Apr 26, 2025
a5371e2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @vszakats@jonrumsey

        Issue actions

          Building curl on OS400 with DEBUG *SOURCE doesn't allow debug as module source deleted · Issue #15445 · curl/curl