Bug 243603 - security/clamav: Doesn't build: [use of undeclared identifier 'lzxd_decompress']
Summary: security/clamav: Doesn't build: [use of undeclared identifier 'lzxd_decompress']
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-26 07:11 UTC by Vladimir Omelchuk
Modified: 2020-01-26 21:29 UTC (History)
2 users (show)

See Also:
w.schwarzenfeld: maintainer-feedback? (yasu)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Omelchuk 2020-01-26 07:11:46 UTC
[...]
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../libclammspack -I.. -I./nsis -DWARN_DLOPEN_FAIL -I/usr/local/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unused-parameter -I../libclammspack/mspack -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -c ../libclammspack/mspack/cabc.c  -fPIC -DPIC -o .libs/libclammspack_la-cabc.o
/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I../libclammspack  -I.. -I./nsis  -DWARN_DLOPEN_FAIL -I/usr/local/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unused-parameter -I../libclammspack/mspack -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   -c -o libclammspack_la-cabd.lo `test -f '../libclammspack/mspack/cabd.c' || echo './'`../libclammspack/mspack/cabd.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../libclammspack -I.. -I./nsis -DWARN_DLOPEN_FAIL -I/usr/local/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unused-parameter -I../libclammspack/mspack -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -c ../libclammspack/mspack/cabd.c  -fPIC -DPIC -o .libs/libclammspack_la-cabd.o
../libclammspack/mspack/cabd.c:1181:53: error: use of undeclared identifier 'lzxd_decompress'; did you mean 'qtmd_decompress'?
    self->d->decompress = (int (*)(void *, off_t)) &lzxd_decompress;
                                                    ^~~~~~~~~~~~~~~
                                                    qtmd_decompress
../libclammspack/mspack/qtm.h:116:12: note: 'qtmd_decompress' declared here
extern int qtmd_decompress(struct qtmd_stream *qtm, off_t out_bytes);
           ^
../libclammspack/mspack/cabd.c:1182:22: warning: implicit declaration of function 'lzxd_init' is invalid in C99 [-Wimplicit-function-declaration]
    self->d->state = lzxd_init(&self->d->sys, fh, fh, (int) (ct >> 8) & 0x1f, 0,
                     ^
../libclammspack/mspack/cabd.c:1182:20: warning: incompatible integer to pointer conversion assigning to 'void *' from 'int' [-Wint-conversion]
    self->d->state = lzxd_init(&self->d->sys, fh, fh, (int) (ct >> 8) & 0x1f, 0,
                   ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../libclammspack/mspack/cabd.c:1198:32: warning: implicit declaration of function 'lzxd_free' is invalid in C99 [-Wimplicit-function-declaration]
  case cffoldCOMPTYPE_LZX:     lzxd_free((struct lzxd_stream *) self->d->state);    break;
                               ^
../libclammspack/mspack/cabd.c:1272:11: warning: implicit declaration of function 'lzxd_set_output_length' is invalid in C99 [-Wimplicit-function-declaration]
          lzxd_set_output_length((struct lzxd_stream *) self->d->state, self->d->outlen);
          ^
4 warnings and 1 error generated.
gmake[5]: *** [Makefile:3760: libclammspack_la-cabd.lo] Error 1
gmake[5]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.1/libclamav'
gmake[4]: *** [Makefile:4320: all-recursive] Error 1
gmake[4]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.1/libclamav'
gmake[3]: *** [Makefile:1463: all] Error 2
gmake[3]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.1/libclamav'
gmake[2]: *** [Makefile:853: all-recursive] Error 1
gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.1'
gmake[1]: *** [Makefile:649: all] Error 2
gmake[1]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.1'
*** Error code 1

Stop.
make: stopped in /usr/ports/security/clamav

# uname -srm
FreeBSD 12.1-RELEASE-p1 amd64