Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 653028 - app-antivirus/clamav-0.100.0 fails to link : undefined reference to symbol 'halfdelay'
Summary: app-antivirus/clamav-0.100.0 fails to link : undefined reference to symbol 'h...
Status: RESOLVED DUPLICATE of bug 670729
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Antivirus Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-12 16:29 UTC by Helmut Jarausch
Modified: 2020-09-10 13:22 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2018-04-12 16:29:15 UTC
Configure should add a -ltinfo which breaks it.
Comment 1 Thomas Raschbacher gentoo-dev 2018-04-20 09:22:19 UTC
please elaborate what you mean with "should add"
Comment 2 Helmut Jarausch 2018-04-20 15:06:55 UTC
(In reply to Thomas Raschbacher from comment #1)
> please elaborate what you mean with "should add"

To build clamav on my machine I need to put

CXXFLAGS="${CXXFLAGS} -ltinfo"
CFLAGS="${CFLAGS} -ltinfo"
LDFLAGS="${LDFLAGS} -ltinfo"

into /etc/portage/env/app-antivirus/clamav

This should have been done by 'configure' itself.
Comment 3 Thomas Raschbacher gentoo-dev 2018-04-22 20:09:18 UTC
hmm i can't reproduce the problem here. can you provide emerge --info output and the emerge.log file form when it fails please?
Comment 4 Chiitoo gentoo-dev 2018-06-13 12:10:40 UTC
(In reply to Thomas Raschbacher from comment #3)
> hmm i can't reproduce the problem here.

Have you tried with USE="clamdtop"?

[snip]

libtool: link: x86_64-pc-linux-gnu-gcc -march=znver1 -O2 -fomit-frame-pointer -pipe -mindirect-branch=thunk -O0 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wl,-O1 -Wl,--as-needed -o clamdtop optparser.o getopt.o misc.o clamdtop.o  -lncurses ../libclamav/.libs/libclamav_internal_utils_nothreads.a -lssl -lcrypto -lz -L/usr/lib64 -lpcre2-8 -ldl
/usr/lib/gcc/x86_64-pc-linux-gnu/8.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: clamdtop.o: undefined reference to symbol 'halfdelay'
/lib64/libtinfo.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

[snip]
Comment 5 Thomas Raschbacher gentoo-dev 2018-06-14 12:24:37 UTC
honestly not sure if i had that enabled.
I shall have a look later or tomorrow if I get around to it.
Comment 6 Nico Baggus 2018-07-18 21:53:49 UTC
Still Fails and is NOW the only version available:
Symbol is different now (stdscr) but -ltinfo is not specified.


libtool: link: x86_64-pc-linux-gnu-gcc -O2 -pipe -mno-tls-direct-seg-refs -O0 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wl,--as-needed -o clamdtop optparser.o getopt.o misc.o clamdtop.o  -lncurses ../libclamav/.libs/libclamav_internal_utils_nothreads.a -lssl -lcrypto -lz -L/usr/lib64 -lpcre2-8
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: clamdtop.o: undefined reference to symbol 'stdscr'
/lib64/libtinfo.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:613: clamdtop] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-antivirus/clamav-0.100.1/work/clamav-0.100.1/clamdtop'
make[1]: *** [Makefile:757: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-antivirus/clamav-0.100.1/work/clamav-0.100.1'
make: *** [Makefile:585: all] Error 2
 * ERROR: app-antivirus/clamav-0.100.1::gentoo failed (compile phase):
 *   emake failed
Comment 7 Nico Baggus 2018-07-18 21:55:01 UTC
oops not the only version, but it is the active 'stable' version.
Comment 8 Nico Baggus 2018-07-18 22:24:05 UTC
after emerge --sync (just now) 0.100.1 does build...
I there seems to have been updates to the ebuild between my previous sync and the current one.
Comment 9 Nico Baggus 2018-07-21 10:29:22 UTC
clamav build fails if clamdtop is used in the useflags.

USE=-clamdtop emerge clamav    does build.
Comment 10 Mihai 2018-09-25 21:00:23 UTC
FYI: I fixed this issue by switching from:

# required by dev-util/android-studio
sys-libs/ncurses tinfo

to:

# required by dev-util/android-studio
=sys-libs/ncurses-5.9-r101 tinfo

and re-emerging "ncurses", of course.
Comment 11 Michael Orlitzky gentoo-dev 2020-01-15 14:44:22 UTC
I think this was fixed by the patch in bug #670729, can someone please confirm?

(That bug is still open until the fix goes upstream, but there's no reason to keep TWO gentoo bugs open about it.)
Comment 12 Chiitoo gentoo-dev 2020-09-10 13:19:18 UTC
At the very least, 'app-antivirus/clamav-0.102.4[clamdtop]' does build here now, which seems to have been a blocker for me previously.
Comment 13 Michael Orlitzky gentoo-dev 2020-09-10 13:22:31 UTC
I'm fairly confident this was fixed on bug 670729 before anyone noticed the duplicate.

*** This bug has been marked as a duplicate of bug 670729 ***