Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via infra@gentoo.org or IRC

Bug 438060

Summary: net-misc/remmina-1.0.0_p20121004 fails to build with gold: undefined reference to 'avahi_simple_poll_iterate'
Product: Gentoo Linux Reporter: Alexandre Rostovtsev (RETIRED) <tetromino>
Component: Current packagesAssignee: Mike Gilbert <floppym>
Status: RESOLVED FIXED    
Severity: normal CC: tristan
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/FreeRDP/Remmina/issues/120
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 269315    
Attachments: build.log + emerge --info

Description Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-10-12 05:55:15 UTC
Created attachment 326350 [details]
build.log + emerge --info

# binutils-config --linker ld.gold
 * Setting default linker to ld.gold for x86_64-pc-linux-gnu-2.22.90 ...  [ ok ]
# emerge -1 remmina
[...]
CMakeFiles/remmina.dir/src/remmina_avahi.c.o:remmina_avahi.c:function remmina_avahi_iterate: error: undefined reference to 'avahi_simple_poll_iterate'
CMakeFiles/remmina.dir/src/remmina_avahi.c.o:remmina_avahi.c:function remmina_avahi_browse_callback: error: undefined reference to 'avahi_service_browser_get_client'
CMakeFiles/remmina.dir/src/remmina_avahi.c.o:remmina_avahi.c:function remmina_avahi_browse_callback: error: undefined reference to 'avahi_client_errno'
CMakeFiles/remmina.dir/src/remmina_avahi.c.o:remmina_avahi.c:function remmina_avahi_browse_callback: error: undefined reference to 'avahi_strerror'
CMakeFiles/remmina.dir/src/remmina_avahi.c.o:remmina_avahi.c:function remmina_avahi_browse_callback: error: undefined reference to 'avahi_service_resolver_new'
CMakeFiles/remmina.dir/src/remmina_avahi.c.o:remmina_avahi.c:function remmina_avahi_browse_callback: error: undefined reference to 'avahi_client_errno'
CMakeFiles/remmina.dir/src/remmina_avahi.c.o:remmina_avahi.c:function remmina_avahi_browse_callback: error: undefined reference to 'avahi_strerror'
CMakeFiles/remmina.dir/src/remmina_avahi.c.o:remmina_avahi.c:function remmina_avahi_resolve_callback: error: undefined reference to 'avahi_service_resolver_get_client'
CMakeFiles/remmina.dir/src/remmina_avahi.c.o:remmina_avahi.c:function remmina_avahi_resolve_callback: error: undefined reference to 'avahi_client_errno'
CMakeFiles/remmina.dir/src/remmina_avahi.c.o:remmina_avahi.c:function remmina_avahi_resolve_callback: error: undefined reference to 'avahi_strerror'
CMakeFiles/remmina.dir/src/remmina_avahi.c.o:remmina_avahi.c:function remmina_avahi_client_callback: error: undefined reference to 'avahi_client_errno'
CMakeFiles/remmina.dir/src/remmina_avahi.c.o:remmina_avahi.c:function remmina_avahi_client_callback: error: undefined reference to 'avahi_strerror'
CMakeFiles/remmina.dir/src/remmina_avahi.c.o:remmina_avahi.c:function remmina_avahi_start: error: undefined reference to 'avahi_simple_poll_new'
CMakeFiles/remmina.dir/src/remmina_avahi.c.o:remmina_avahi.c:function remmina_avahi_start: error: undefined reference to 'avahi_simple_poll_get'
CMakeFiles/remmina.dir/src/remmina_avahi.c.o:remmina_avahi.c:function remmina_avahi_start: error: undefined reference to 'avahi_client_new'
CMakeFiles/remmina.dir/src/remmina_avahi.c.o:remmina_avahi.c:function remmina_avahi_start: error: undefined reference to 'avahi_service_browser_new'
CMakeFiles/remmina.dir/src/remmina_avahi.c.o:remmina_avahi.c:function remmina_avahi_stop: error: undefined reference to 'avahi_service_browser_free'
CMakeFiles/remmina.dir/src/remmina_avahi.c.o:remmina_avahi.c:function remmina_avahi_stop: error: undefined reference to 'avahi_client_free'
CMakeFiles/remmina.dir/src/remmina_avahi.c.o:remmina_avahi.c:function remmina_avahi_stop: error: undefined reference to 'avahi_simple_poll_free'
CMakeFiles/remmina.dir/src/remmina_avahi.c.o:remmina_avahi.c:function remmina_avahi_resolve_callback: error: undefined reference to 'avahi_service_resolver_free'
collect2: error: ld returned 1 exit status
make[2]: *** [remmina/remmina] Error 1


When using ld.bfd as the linker, remmina builds successfully.
Comment 1 Mike Gilbert gentoo-dev 2012-10-12 16:03:17 UTC
I created an issue upstream.
Comment 2 Mike Gilbert gentoo-dev 2012-10-12 22:18:32 UTC
  12 Oct 2012; Mike Gilbert <floppym@gentoo.org>
  +files/remmina-1.0.0_p20121004-avahi.patch, remmina-1.0.0_p20121004.ebuild:
  Fix avahi underlinking, bug 438060 by tetromino.