Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#909 tightvnc-1.30-r1 QA warnings caused by missing #includes

open
5
2009-10-31
2009-10-31
Garrett Cooper
No

The file attached shows all of the warnings provided by gcc which were punted up to Gentoo Linux's emerge when compiling tightvnc, as follows:

vyzs-blackbox gcooper # emerge -pv tightvnc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] net-misc/tightvnc-1.3.10-r1 USE="server tcpd -java" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

More details about the system configuration are as follows:

vyzs-blackbox gcooper # emerge --info
Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.2.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-x86_64-Intel-R-_Xeon-R-_CPU_E5420_@_2.50GHz-with-gentoo-1.12.11.1
Timestamp of tree: Sat, 31 Oct 2009 19:00:01 +0000
app-shells/bash: 4.0_p28
dev-lang/python: 2.4.4-r14, 2.5.2-r7, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.13, 2.63-r1
sys-devel/automake: 1.5, 1.7.9-r1, 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: 2.2.6a
virtual/os-headers: 2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -mtune=nocona -O2 -pipe -fno-strict-aliasing"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -mtune=nocona -O2 -pipe -fno-strict-aliasing"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j4"
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="acl amd64 berkdb bzip2 cli cracklib crypt dri fortran gdbm gpm iconv minimal mmx modules mudflap multilib multislot ncurses nptl nptlonly openmp pam pcre perl python readline server session sse sse2 sse3 sse4 ssl sysfs tcpd zlib" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" USERLAND="GNU" VIDEO_CARDS="fbdev intel vesa vga"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

It all boils down to:
1. Missing #include <unistd.h> for abort(3).
2. Missing #include <unistd.h> for exit(2).
3. Missing #include <stdio.h> for printf(3).

I would provide a patch, but the layout in SVN is confusing to follow.

Discussion

  • Garrett Cooper
    Garrett Cooper
    2009-10-31

    emerge QA warnings.