Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68679 - net-misc/netkit-telnetd-0.17-r4 - implicit declaration of function `int asprintf(...)
Summary: net-misc/netkit-telnetd-0.17-r4 - implicit declaration of function `int aspri...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: solar (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-24 01:07 UTC by Olle Hällnäs
Modified: 2005-03-14 19:49 UTC (History)
1 user (show)

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


Attachments
netkit-telnetd-0.17-cflags-gnu_source.patch (netkit-telnetd-0.17-cflags-gnu_source.patch,830 bytes, patch)
2004-11-01 13:11 UTC, Matt Taylor
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olle Hällnäs 2004-10-24 01:07:11 UTC
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
Comment 1 Stefan de Konink 2004-10-24 05:34:38 UTC
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
Comment 2 solar (RETIRED) gentoo-dev 2004-10-24 07:03:24 UTC
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.
Comment 3 Stefan de Konink 2004-10-24 09:12:52 UTC
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)
Comment 4 solar (RETIRED) gentoo-dev 2004-10-25 11:18:56 UTC
grep asprintf /usr/include/*.h
/usr/include/stdio.h:extern int asprintf (char **__restrict __ptr,
Comment 5 Matt Taylor 2004-11-01 12:43:09 UTC
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.
Comment 6 Matt Taylor 2004-11-01 13:11:55 UTC
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
Comment 7 solar (RETIRED) gentoo-dev 2005-03-14 19:49:14 UTC
sorry for the delay. I just updated the patch in CVS