Skip to content

Commit

Permalink
Fix build issue on Ubuntu 22.04
Browse files Browse the repository at this point in the history
The error was:
[30/32] Linking target parse
FAILED: parse
cc  -o parse parse.p/meson-generated_tokenparser.c.o parse.p/src_parse.c.o parse.p/src_debug.c.o parse.p/src_ccid_usb.c.o parse.p/src_sys_unix.c.o parse.p/src_simclist.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,--start-group /usr/lib/x86_64-linux-gnu/libusb-1.0.so /usr/lib/x86_64-linux-gnu/libz.so -Wl,--end-group
/usr/bin/ld: parse.p/src_debug.c.o: in function `log_xxd':
/home/user/workspace/CCID/builddir/../src/debug.c:221: undefined reference to `strlcpy'
collect2: error: ld returned 1 exit status

Thanks to Jahns Ralf for the bug report.
  • Loading branch information
LudovicRousseau committed Jun 7, 2024
1 parent 1b5f11e commit 3a179d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ parse_src = [
'src/debug.c',
'src/ccid_usb.c',
'src/sys_unix.c',
'src/strlcpy.c',
'src/simclist.c',
]
parse_src += gen_src
Expand Down

0 comments on commit 3a179d9

Please sign in to comment.