Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 446968

Summary: net-misc/netkit-telnetd-0.17-r10 - Use native gcc instead of CC (cross compile issue)
Product: Gentoo Linux Reporter: Bertrand Jacquin <bertrand>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=132867
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: net-misc:netkit-telnetd-0.17-r10:20121212-100136.log
netkit-telnetd-0.17-r10-use-tc-export-CC-CXX.diff

Description Bertrand Jacquin 2012-12-12 10:18:12 UTC
When trying to build =net-misc/netkit-telnetd-0.17-r10 with crossdev for i586-pc-linux-gnu, if fail with the following error :

>>> Compiling source in /var/tmp/i586-pc-linux-gnu/portage/net-misc/netkit-telnetd-0.17-r10/work/netkit-telnet-0.17 ...
Directories: /usr/bin /usr/sbin /usr/man 
Looking for a C compiler... gcc
Checking if gcc accepts gcc warnings... yes
Looking for a C++ compiler... g++
Checking if g++ accepts gcc warnings... yes
Checking if gcc accepts -O2... yes
Checking if g++ accepts -O2... yes
Checking if g++ accepts -fno-rtti... yes
Checking if g++ accepts -fno-exceptions... yes
Checking for BSD signal semantics... no
This package needs BSD signal semantics to run.
sed: can't read MCONFIG: No such file or directory
 * ERROR: net-misc/netkit-telnetd-0.17-r10 failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile

Full build log is attached.

The main thing is that ./configure fail check on 'Checking for BSD signal semantics' and no MCONFIG is created. This check fail as CC=gcc is used and determined by ./configure itself, it should use CC from portage.

Here is a fix that is linked to incomplete #132867

Reproducible: Always
Comment 1 Bertrand Jacquin 2012-12-12 10:19:43 UTC
Created attachment 332110 [details]
net-misc:netkit-telnetd-0.17-r10:20121212-100136.log
Comment 2 Bertrand Jacquin 2012-12-12 10:21:01 UTC
Created attachment 332112 [details, diff]
netkit-telnetd-0.17-r10-use-tc-export-CC-CXX.diff

patch on ebuild netkit-telnetd-0.17-r10
Comment 3 Pacho Ramos gentoo-dev 2013-10-13 14:11:33 UTC
+  13 Oct 2013; Pacho Ramos <pacho@gentoo.org> netkit-telnetd-0.17-r10.ebuild:
+  Fix cross compile issue (#446968)
+