Page MenuHome GnuPG

symcryptrun.c:566: warning: implicit declaration of function ‘login_tty’
Closed, ResolvedPublic

Description

When installing the app-crypt/gnupg-2.0.17 package on my Gentoo system, I
received the following notification:

  • QA Notice: Package has poor programming practices which may compile
  • fine but exhibit random runtime failures.
  • symcryptrun.c:566: warning: implicit declaration of function ‘login_tty’
  • Please do not file a Gentoo bug and instead report the above QA
  • issues directly to the upstream developers of this software.
  • Homepage: http://www.gnupg.org/
  • ERROR: app-crypt/gnupg-2.0.17 failed:
  • install aborted due to poor programming practices shown above

Looking through the build output, here is the error in context:

i686-pc-linux-gnu-gcc -I/home/dan/.gentoo/usr/include
-I/home/dan/.gentoo/usr/include -O2 -pipe -Wall -Wno-pointer-sign
-Wpointer-arith -Wl,-O1 -o gpgkey2ssh gpgkey2ssh-gpgkey2ssh.o
../common/libcommon.a ../jnlib/libjnlib.a ../gl/libgnu.a
-L/home/dan/.gentoo/usr/lib -lgcrypt -lgpg-error -L/home/dan/.gentoo/usr/lib
-lgpg-error
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../gl -I../intl -I../common
-DLOCALEDIR=\"/home/dan/.gentoo/usr/share/locale\"
-DGNUPG_BINDIR="\"/home/dan/.gentoo/usr/bin\""
-DGNUPG_LIBEXECDIR="\"/home/dan/.gentoo/usr/libexec\""
-DGNUPG_LIBDIR="\"/home/dan/.gentoo/usr/lib/gnupg\""
-DGNUPG_DATADIR="\"/home/dan/.gentoo/usr/share/g
nupg\"" -DGNUPG_SYSCONFDIR="\"/home/dan/.gentoo/etc/gnupg\""
-I/home/dan/.gentoo/usr/include -I/home/dan/.gentoo/usr/include
-I/home/dan/.gentoo/usr/include -O2 -pipe -Wall -Wno-pointer-sign
-Wpointer-arith -MT symcryptrun.o -MD -MP -MF .deps/symcryptrun.Tpo -c -o
symcryptrun.o symcryptrun.c
symcryptrun.c: In function ‘confucius_process’:
symcryptrun.c:566: warning: implicit declaration of function ‘login_tty’
symcryptrun.c:710: warning: ignoring return value of ‘write’, declared with
attribute warn_unused_result
symcryptrun.c:711: warning: ignoring return value of ‘write’, declared with
attribute warn_unused_result
mv -f .deps/symcryptrun.Tpo .deps/symcryptrun.Po

Full build log is attached.

Details

Version
2.0.17

Event Timeline

werner claimed this task.

I've now switched from gcc4.3 to gcc4.4, and this warning is no longer emitted.

fredden closed this task as Resolved.
fredden removed a project: Not A Bug.