Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 568498 - net-wireless/spectools-2011.08.1_p20140618-r1 fails to build with gcc-5: undefined reference to `hsv_to_rgb'
Summary: net-wireless/spectools-2011.08.1_p20140618-r1 fails to build with gcc-5: unde...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Rick Farina (Zero_Chaos)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-5
  Show dependency tree
 
Reported: 2015-12-17 06:43 UTC by tman
Modified: 2016-03-18 01:37 UTC (History)
2 users (show)

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


Attachments
/mnt/portage/logs/net-wireless:spectools-2011.08.1_p20140618-r1:20151217-064212.log (net-wireless:spectools-2011.08.1_p20140618-r1:20151217-064212.log,44.80 KB, text/x-log)
2015-12-17 06:44 UTC, tman
Details
spectools-2016.01.1/temp/build.log (build.log,44.44 KB, text/x-log)
2016-03-15 08:48 UTC, Juergen Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tman 2015-12-17 06:43:54 UTC
spectool_gtk_widget.c:194:2: note: in expansion of macro ‘g_return_if_fail’
  g_return_if_fail(event != NULL);
  ^
spectool_gtk_widget.c: In function ‘spectool_widget_buildcontroller’:
/usr/include/glib-2.0/glib/gmessages.h:373:3: warning: ‘return’ with no value, in function returning non-void
   return;       \
   ^
spectool_gtk_widget.c:240:2: note: in expansion of macro ‘g_return_if_fail’
  g_return_if_fail(widget != NULL);
  ^
/usr/include/glib-2.0/glib/gmessages.h:373:3: warning: ‘return’ with no value, in function returning non-void
   return;       \
   ^
spectool_gtk_widget.c:241:2: note: in expansion of macro ‘g_return_if_fail’
  g_return_if_fail(IS_SPECTOOL_WIDGET(widget));
  ^
spectool_gtk_widget.c: In function ‘spectool_widget_mouse_click’:
/usr/include/glib-2.0/glib/gmessages.h:373:3: warning: ‘return’ with no value, in function returning non-void
   return;       \
   ^
spectool_gtk_widget.c:303:2: note: in expansion of macro ‘g_return_if_fail’
  g_return_if_fail(widget != NULL);
  ^
/usr/include/glib-2.0/glib/gmessages.h:373:3: warning: ‘return’ with no value, in function returning non-void
   return;       \
   ^
spectool_gtk_widget.c:304:2: note: in expansion of macro ‘g_return_if_fail’
  g_return_if_fail(aux != NULL);
  ^
/usr/include/glib-2.0/glib/gmessages.h:373:3: warning: ‘return’ with no value, in function returning non-void
   return;       \
   ^
spectool_gtk_widget.c:305:2: note: in expansion of macro ‘g_return_if_fail’
  g_return_if_fail(IS_SPECTOOL_WIDGET(aux));
  ^
spectool_gtk_widget.c: In function ‘spectool_widget_expose’:
/usr/include/glib-2.0/glib/gmessages.h:373:3: warning: ‘return’ with no value, in function returning non-void
   return;       \
   ^
spectool_gtk_widget.c:789:2: note: in expansion of macro ‘g_return_if_fail’
  g_return_if_fail(widget != NULL);
  ^
/usr/include/glib-2.0/glib/gmessages.h:373:3: warning: ‘return’ with no value, in function returning non-void
   return;       \
   ^
spectool_gtk_widget.c:790:2: note: in expansion of macro ‘g_return_if_fail’
  g_return_if_fail(IS_SPECTOOL_WIDGET(aux));
  ^
In file included from spectool_gtk_widget.c:23:0:
spectool_gtk_widget.c: At top level:
spectool_gtk_widget.h:199:12: warning: inline function ‘spectool_widget_find_chan_pt’ declared but never defined
 inline int spectool_widget_find_chan_pt(SpectoolWidget *wwidget, int x, int y);
            ^
In file included from /usr/include/glib-2.0/glib.h:62:0,
                 from spectool_gtk.h:25,
                 from spectool_gtk.c:29:
spectool_gtk.c: In function ‘main_nodev_menu_button_press’:
/usr/include/glib-2.0/glib/gmessages.h:373:3: warning: ‘return’ with no value, in function returning non-void
   return;       \
   ^
spectool_gtk.c:185:2: note: in expansion of macro ‘g_return_if_fail’
  g_return_if_fail(aux != NULL);
  ^
In file included from spectool_gtk_planar.h:33:0,
                 from spectool_gtk.c:31:
spectool_gtk.c: At top level:
spectool_gtk_widget.h:208:13: warning: inline function ‘hsv_to_rgb’ declared but never defined
 inline void hsv_to_rgb(double *r, double *g, double *b, 
             ^
spectool_gtk_widget.h:206:13: warning: inline function ‘rgb_to_hsv’ declared but never defined
 inline void rgb_to_hsv(double r, double g, double b, 
             ^
spectool_gtk_widget.h:199:12: warning: inline function ‘spectool_widget_find_chan_pt’ declared but never defined
 inline int spectool_widget_find_chan_pt(SpectoolWidget *wwidget, int x, int y);
            ^
x86_64-pc-linux-gnu-gcc spectool_container.o wispy_hw_gen1.o wispy_hw_24x.o wispy_hw_dbx.o ubertooth_hw_u1.o spectool_net_client.o spectool_gtk_hw_registry.o spectool_gtk_widget.o spectool_gtk_channel.o spectool_gtk_planar.o spectool_gtk_spectral.o spectool_gtk_topo.o spectool_gtk.o -o spectool_gtk -Wl,-O1 -Wl,--as-needed -lpthread -lm -lusb -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype
spectool_gtk_channel.o: In function `spectool_channel_draw':
spectool_gtk_channel.c:(.text+0xd4b): undefined reference to `hsv_to_rgb'
collect2: error: ld returned 1 exit status
Makefile:70: recipe for target 'spectool_gtk' failed
make: *** [spectool_gtk] Error 1
 * ERROR: net-wireless/spectools-2011.08.1_p20140618-r1::gentoo failed (c

Reproducible: Always




Portage 2.2.26 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop, gcc-5.3.0, glibc-2.22-r1, 4.3.3-gentoo x86_64)
=================================================================
System uname: Linux-4.3.3-gentoo-x86_64-Intel-R-_Core-TM-_i7-3740QM_CPU_@_2.70GHz-with-gentoo-2.2
KiB Mem:    24626776 total,  15965588 free
KiB Swap:   26488828 total,  26488828 free
Timestamp of repository gentoo: Thu, 17 Dec 2015 05:30:01 +0000
Timestamp of repository poly-c: Wed, 16 Dec 2015 13:04:23 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.11::gentoo, 3.4.3-r5::gentoo, 3.5.1::gentoo
dev-util/cmake:           3.4.1::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.9::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r1::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

amielke-overlay
    location: /mnt/portage/local/layman/amielke-overlay
    masters: gentoo
    priority: 0

x-portage
    location: /mnt/portage
    masters: gentoo

bitcoin
    location: /mnt/portage/local/layman/bitcoin
    masters: gentoo
    priority: 1

brother-overlay
    location: /mnt/portage/local/layman/brother-overlay
    masters: gentoo
    priority: 2

bumblebee
    location: /mnt/portage/local/layman/bumblebee
    masters: gentoo
    priority: 3

dotnet
    location: /mnt/portage/local/layman/dotnet
    masters: gentoo
    priority: 4

dr
    location: /mnt/portage/local/layman/dr
    masters: gentoo
    priority: 5

media-overlay
    location: /mnt/portage/local/layman/media-overlay
    masters: gentoo
    priority: 6

poly-c
    location: /mnt/portage/local/layman/poly-c
    masters: gentoo
    priority: 7

steam-overlay
    location: /mnt/portage/local/layman/steam-overlay
    masters: gentoo
    priority: 8

ixit
    location: /mnt/portage/local/layman/ixit
    masters: gentoo
    priority: 9

lokal
    location: /mnt/portage/local/local-overlay
    masters: gentoo
    priority: 10

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx-i -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/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"
CXXFLAGS="-march=core-avx-i -O2 -pipe"
DISTDIR="/mnt/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks fail-clean fixlafiles merge-sync news nodoc noinfo parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/mnt/portage/packages"
PORTAGE_CONFIGROOT="/"
Comment 1 tman 2015-12-17 06:44:14 UTC
Created attachment 419434 [details]
/mnt/portage/logs/net-wireless:spectools-2011.08.1_p20140618-r1:20151217-064212.log
Comment 2 David Seifert gentoo-dev 2016-01-12 23:14:26 UTC
Fixed with commit b701cdfd35cd58ad8ef587727e3f931475a27959.
Comment 3 Juergen Rose 2016-03-15 08:46:59 UTC
(In reply to David Seifert from comment #2)
> Fixed with commit b701cdfd35cd58ad8ef587727e3f931475a27959.

Now fails spectools-2016.01.1 for me with the same error:

spectool_gtk_widget.h:199:12: warning: inline function ‘spectool_widget_find_chan_pt’ declared but never defined
 inline int spectool_widget_find_chan_pt(SpectoolWidget *wwidget, int x, int y);
            ^
x86_64-pc-linux-gnu-gcc spectool_container.o wispy_hw_gen1.o wispy_hw_24x.o wispy_hw_dbx.o ubertooth_hw_u1.o spectool_net_client.o spectool_gtk_hw_registry.o spectool_gtk_widget.o spectool_gtk_channel.o spectool_gtk_planar.o spectool_gtk_spectral.o spectool_gtk_topo.o spectool_gtk.o -o spectool_gtk -Wl,-O1 -Wl,--as-needed -lpthread -lm -lusb -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype
spectool_gtk_channel.o: In function `spectool_channel_draw':
spectool_gtk_channel.c:(.text+0xd4b): undefined reference to `hsv_to_rgb'
collect2: error: ld returned 1 exit status
Makefile:59: recipe for target 'spectool_gtk' failed
make: *** [spectool_gtk] Error 1
 * ERROR: net-wireless/spectools-2016.01.1::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-wireless/spectools-2016.01.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-wireless/spectools-2016.01.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-wireless/spectools-2016.01.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-wireless/spectools-2016.01.1/temp/environment'.
 * Working directory: '/var/tmp/portage/net-wireless/spectools-2016.01.1/work/spectools-2016-01-R1'
 * S: '/var/tmp/portage/net-wireless/spectools-2016.01.1/work/spectools-2016-01-R1'

>>> Failed to emerge net-wireless/spectools-2016.01.1, Log file:
Comment 4 Juergen Rose 2016-03-15 08:48:36 UTC
Created attachment 428278 [details]
spectools-2016.01.1/temp/build.log