[File] Build error on recent commit

Christoph Biedl astron.com.bwoj at manchmal.in-ulm.de
Sat May 28 09:33:32 UTC 2022


Hello,

starting with commit

    commit f448f3e5c37de8c285ac14b032b2bdcea82fc08b
    Author: Christos Zoulas <christos at zoulas.com>
    Date:   Sat May 28 01:04:57 2022 +0000

        PR/351: CathyKMeow: octalify unprintable characters in filenames unless raw.

file no longer builds, more precisely, the linker cannot resolve the
symbol file_printable:

| /bin/bash ../libtool  --tag=CC   --mode=link gcc -fvisibility=hidden -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith        -Wmissing-declarations -Wredundant-decls -Wnested-externs        -Wsign-compare -Wreturn-type -Wswitch -Wshadow        -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2 -g -O2 -ffile-prefix-map=/home/src/cbiedl/upstream/file/build/1653699897.f448f3e5.FILE5_41-144-gf448f3e5.amd64=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -o file file.o seccomp.o libmagic.la -llzma -lbz2 -lz
| libtool: link: gcc -fvisibility=hidden -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wsign-compare -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2 -g -O2 -ffile-prefix-map=/home/src/cbiedl/upstream/file/build/1653699897.f448f3e5.FILE5_41-144-gf448f3e5.amd64=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro -o .libs/file file.o seccomp.o  ./.libs/libmagic.so -llzma -lbz2 -lz
| /usr/bin/ld: file.o: in function `process':
| ./src/file.c:557: undefined reference to `file_printable'
| /usr/bin/ld: .libs/file: hidden symbol `file_printable' isn't defined
| /usr/bin/ld: final link failed: bad value
| collect2: error: ld returned 1 exit status
| make[3]: *** [Makefile:506: file] Error 1

It's not clear to me why this fails. It's however the first time,
file_printable is used in file.c

    Christoph



More information about the File mailing list