[File] Build error on recent commit

Christos Zoulas christos at zoulas.com
Sat May 28 20:24:46 UTC 2022


Thanks, I fixed it, but that exposes file_printable for now...

christos

> On May 28, 2022, at 5:33 AM, Christoph Biedl <astron.com.bwoj at manchmal.in-ulm.de> wrote:
> 
> 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
> 
> --
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <https://mailman.astron.com/pipermail/file/attachments/20220528/59fff279/attachment.asc>


More information about the File mailing list