I'm trying to make a 3DS homebrew app that needs to extract files from a ZIP archive using libarchive. However, when I try to compile it with make, I get a lot of undefined references. The one at the top always has to do with waitpid. Here's the full list of them:
Code: Select all
C:/devkitPro/devkitARM/bin/../lib/gcc/arm-none-eabi/13.2.0/../../../../arm-none-eabi/bin/ld.exe: C:/
devkitPro/portlibs/3ds/lib\libarchive.a(archive_read_support_filter_program.o): in function `child_s
top.isra.1':
archive_read_support_filter_program.c:(.text.child_stop.isra.1+0xa0): undefined reference to `waitpi
d'
C:/devkitPro/devkitARM/bin/../lib/gcc/arm-none-eabi/13.2.0/../../../../arm-none-eabi/bin/ld.exe: C:/
devkitPro/portlibs/3ds/lib\libarchive.a(archive_read_support_filter_program.o): in function `program
_filter_read':
archive_read_support_filter_program.c:(.text.program_filter_read+0x110): undefined reference to `__a
rchive_check_child'
C:/devkitPro/devkitARM/bin/../lib/gcc/arm-none-eabi/13.2.0/../../../../arm-none-eabi/bin/ld.exe: arc
hive_read_support_filter_program.c:(.text.program_filter_read+0x20c): undefined reference to `__arch
ive_check_child'
C:/devkitPro/devkitARM/bin/../lib/gcc/arm-none-eabi/13.2.0/../../../../arm-none-eabi/bin/ld.exe: C:/
devkitPro/portlibs/3ds/lib\libarchive.a(archive_read_support_filter_program.o): in function `__archi
ve_read_program':
archive_read_support_filter_program.c:(.text.__archive_read_program+0xa8): undefined reference to `_
_archive_create_child'
C:/devkitPro/devkitARM/bin/../lib/gcc/arm-none-eabi/13.2.0/../../../../arm-none-eabi/bin/ld.exe: C:/
devkitPro/portlibs/3ds/lib\libarchive.a(archive_write_disk_set_standard_lookup.o): in function `look
up_uid':
archive_write_disk_set_standard_lookup.c:(.text.lookup_uid+0xa4): undefined reference to `getpwnam'
C:/devkitPro/devkitARM/bin/../lib/gcc/arm-none-eabi/13.2.0/../../../../arm-none-eabi/bin/ld.exe: C:/
devkitPro/portlibs/3ds/lib\libarchive.a(archive_write_disk_set_standard_lookup.o): in function `look
up_gid':
archive_write_disk_set_standard_lookup.c:(.text.lookup_gid+0xa4): undefined reference to `getgrnam'
Code: Select all
LIBS := -lcurl -lmbedtls -lmbedx509 -lmbedcrypto -larchive -lcitro2d -lcitro3d -lctru -lm -lbz2 -llzma -lz
Code: Select all
LIBDIRS := $(PORTLIBS) $(CTRULIB)