commands.cc: In function `void cmdrc(const char *, const char *, const char *)': commands.cc:2147: implicit declaration of function `int asprintf(...)' make[1]: *** [commands.o] Error 1 This error is due to a diff file introduced in net-misc/netkit-telnetd-0.17-r4 with the filename netkit-telnet_0.17-26.diff.gz Seems the diff breaks it so either remove or fix it :) Reproducible: Always Steps to Reproduce: 1. emerge netkit-telnetd 2. 3. Actual Results: Did not compile Expected Results: Compiled
Other error: 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 (cd telnet && make) make[1]: Entering directory `/var/tmp/portage/netkit-telnetd-0.17-r4/work/netkit-telnet-0.17/telnet' Makefile:3: ../MCONFIG: No such file or directory make[1]: *** No rule to make target `../MCONFIG'. Stop. make[1]: Leaving directory `/var/tmp/portage/netkit-telnetd-0.17-r4/work/netkit-telnet-0.17/telnet' make: *** [telnet.build] Error 2
Checking for snprintf declaration... ok Checking for snprintf implementation... ok Generating MCONFIG... (cd telnet && make) make[1]: Entering directory `/space/portage-tmp/portage/netkit-telnetd-0.17-r4/work/netkit-telnet-0.17/telnet' g++ -V3.3.4 -march=i686 -Os -pipe -fforce-addr -fomit-frame-pointer -Wformat=2 -O2 -O2 -fno-rtti -fno-exceptions -Wall -Wno-trigraphs -DUSE_TERMIO -DKLUDGELINEMODE commands.cc -c No errors here. You also failed to post the output of 'emerge info' as the bug reporting guidelines tell you todo.
ignore my last report, the newbie who was running his first gentoo made a comment after CXXFLAGS in his make.conf, but forgot a " on the end of "$CFLAGS"... solved (took a bit long to figure out on a PI-200)
grep asprintf /usr/include/*.h /usr/include/stdio.h:extern int asprintf (char **__restrict __ptr,
I reported this in the security update bug... http://bugs.gentoo.org/show_bug.cgi?id=64632#c29 I only see this on a gcc-2.95 system, and that system compiles netkit-telnetd-0.17-r3 fine.
Created attachment 43101 [details, diff] netkit-telnetd-0.17-cflags-gnu_source.patch Updated netkit-telnetd-0.17-cflags-gnu_source.patch fixes compile on gcc-2.95
sorry for the delay. I just updated the patch in CVS