void-linux / musl-fts

Implementation of fts(3) for musl libc packages in Void Linux
Other
34 stars 21 forks source link

clamav 0.99.2 build #7

Closed lucize closed 7 years ago

lucize commented 7 years ago

I'm trying to build a clamav 0.99.2 for LEDE (OpenWrt fork), made the package to depend on musl-fts which is built properly but I have the following error

onaccess_hash.o: In function `onas_ht_add_hierarchy':
onaccess_hash.c:(.text+0x855): undefined reference to `fts_open'
onaccess_hash.c:(.text+0x886): undefined reference to `fts_read'
onaccess_hash.c:(.text+0x946): undefined reference to `fts_children'
onaccess_hash.c:(.text+0x9af): undefined reference to `fts_close'
onaccess_scth.o: In function `onas_scan_th':
onaccess_scth.c:(.text+0x112): undefined reference to `fts_open'
onaccess_scth.c:(.text+0x122): undefined reference to `fts_read'
collect2: error: ld returned 1 exit status

do you know what I could be missing ?

regards

pullmoll commented 7 years ago

You need to add -lfts to either LIBS or LDFLAGS, depending on what the Makefile uses to link the binary.

lucize commented 7 years ago

adding it to LIBS worked !

regards