Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274698 - app-misc/tracker-0.6.6-r1: warning about implicit definition of lrintf
Summary: app-misc/tracker-0.6.6-r1: warning about implicit definition of lrintf
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 291501
  Show dependency tree
 
Reported: 2009-06-19 12:22 UTC by Johannes Buchner
Modified: 2009-12-10 23:21 UTC (History)
0 users

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 Johannes Buchner 2009-06-19 12:22:54 UTC
Updating to app-misc/tracker-0.6.6-r1, emerge brought this:

"tracker-indexer.c:1139: warning: implicit declaration of function 'lrintf'"
Someone should look at tracker-indexer.c, line 1139 ('lrintf'). http://linux.about.com/library/cmd/blcmdl3_lrintf.htm

math.h is included though. Hmm. Don't know why it complains. 
This will probably cause some crashes?

Source at the place:

static gint
get_idf_score (WordDetails *details, float idf)
{
        guint32 score = get_score (details);
        float f = idf * score * SCORE_MULTIPLIER;

        return (f > 1.0) ? lrintf (f) : 1;
}
----


Install output:
----
ecompressdir: bzip2 -9 /usr/share/man
removing executable bit: usr/lib64/libtrackerclient.la
removing executable bit: usr/lib64/libtracker-gtk.la

 * QA Notice: Package has poor programming practices which may compile
 *            fine but exhibit random runtime failures.
 * tracker-cache.c:292: warning: dereferencing type-punned pointer will break strict-aliasing rules
 * tracker-cache.c:296: warning: dereferencing type-punned pointer will break strict-aliasing rules


 * QA Notice: Package has poor programming practices which may compile
 *            fine but exhibit random runtime failures.
 * tracker-indexer.c:1139: warning: implicit declaration of function 'lrintf'


 * QA Notice: Package has poor programming practices which may compile
 *            fine but exhibit random runtime failures.
 * tracker-indexer.c:1139: warning: incompatible implicit declaration of built-in function 'lrintf'

 * Please do not file a Gentoo bug and instead report the above QA
 * issues directly to the upstream developers of this software.
 * Homepage: http://www.tracker-project.org/

>>> Installing (1 of 4) app-misc/tracker-0.6.6-r1
sandbox:main  signal SIGQUIT already had a handler ...

sandbox:main  signal SIGQUIT already had a handler ...
----

$ emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r8jb x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r8jb-x86_64-AMD_Turion-tm-_64_Mobile_Technology_ML-37-with-glibc2.2.5
Timestamp of tree: Fri, 19 Jun 2009 01:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O3 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.inode.at/ http://gentoo.intergenia.de http://gd.tuwien.ac.at/opsys/linux/gentoo/"
LANG="en_US"
LC_ALL="en_US"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acl alsa amd64 berkdb bitmap-fonts branding bzip2 cairo cli cracklib crypt cups dbus directfb dri dvd ffmpeg flac fortran gdbm gif glitz gnome gpm gstreamer gtk hal iconv ipv6 isdnlog java jpeg mad midi mmx mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png pppd python readline reflection session speex spl sse sse2 ssl startup-notification svg sysfs tcpd theora tiff truetype-fonts type1-fonts unicode usb vorbis widescreen wma xine xinerama xml xorg xscreensaver xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="ati radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Wormo (RETIRED) gentoo-dev 2009-06-25 05:44:28 UTC
In addition to including math.h, code using lrintf() also needs to be compiled with C99 standard (either compile flag -std=c99 or #define __USE_ISOC99).

Thanks for the report, assigning to maintainers.
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-12-10 23:21:39 UTC
Tracker 0.6 is gone, 0.7.10 has been added to the tree and live ebuild has been updated to git repository with 0.7 deps. Please give them a shot. I'll start adding back tracker support to apps as patches come in. Thanks for your patience.