Skip to content

Fix compilation of auto-inject-ls preload main.c#7223

Open
bwoebi wants to merge 1 commit into
mainfrom
bob/fix-preload-main.so
Open

Fix compilation of auto-inject-ls preload main.c#7223
bwoebi wants to merge 1 commit into
mainfrom
bob/fix-preload-main.so

Conversation

@bwoebi

@bwoebi bwoebi commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Fails compilation with:

+  command:remote:Command -Ubuntu_20_amd64-ld-so-preload creating (85s) Compiling main.c to main.so
 +  command:remote:Command -Ubuntu_20_amd64-ld-so-preload creating (85s) main.c: In function ‘puts’:
 +  command:remote:Command -Ubuntu_20_amd64-ld-so-preload creating (85s) main.c:10:45: error: ‘RTLD_NEXT’ undeclared (first use in this function); did you mean ‘RTLD_NOW’?
 +  command:remote:Command -Ubuntu_20_amd64-ld-so-preload creating (85s)    10 |     original_puts = (original_puts_t) dlsym(RTLD_NEXT,"puts");
 +  command:remote:Command -Ubuntu_20_amd64-ld-so-preload creating (85s)       |                                             ^~~~~~~~~
 +  command:remote:Command -Ubuntu_20_amd64-ld-so-preload creating (85s)       |                                             RTLD_NOW
 +  command:remote:Command -Ubuntu_20_amd64-ld-so-preload creating (85s) main.c:10:45: note: each undeclared identifier is reported only once for each function it appears in
 +  command:remote:Command -Ubuntu_20_amd64-ld-so-preload creating (85s) mv: cannot stat 'main.so': No such file or directory

Fails compilation with:

```
+  command:remote:Command -Ubuntu_20_amd64-ld-so-preload creating (85s) Compiling main.c to main.so
 +  command:remote:Command -Ubuntu_20_amd64-ld-so-preload creating (85s) main.c: In function ‘puts’:
 +  command:remote:Command -Ubuntu_20_amd64-ld-so-preload creating (85s) main.c:10:45: error: ‘RTLD_NEXT’ undeclared (first use in this function); did you mean ‘RTLD_NOW’?
 +  command:remote:Command -Ubuntu_20_amd64-ld-so-preload creating (85s)    10 |     original_puts = (original_puts_t) dlsym(RTLD_NEXT,"puts");
 +  command:remote:Command -Ubuntu_20_amd64-ld-so-preload creating (85s)       |                                             ^~~~~~~~~
 +  command:remote:Command -Ubuntu_20_amd64-ld-so-preload creating (85s)       |                                             RTLD_NOW
 +  command:remote:Command -Ubuntu_20_amd64-ld-so-preload creating (85s) main.c:10:45: note: each undeclared identifier is reported only once for each function it appears in
 +  command:remote:Command -Ubuntu_20_amd64-ld-so-preload creating (85s) mv: cannot stat 'main.so': No such file or directory
```
@bwoebi bwoebi requested a review from a team as a code owner June 26, 2026 17:15
@github-actions

Copy link
Copy Markdown
Contributor

CODEOWNERS have been resolved as:

utils/build/virtual_machine/provisions/auto-inject-ld-preload/main.c    @DataDog/system-tests-core

@bwoebi bwoebi enabled auto-merge (squash) June 26, 2026 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant