Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62956 - ircii ebuild build attempt: conflicting types for `sys_errlist'
Summary: ircii ebuild build attempt: conflicting types for `sys_errlist'
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Packages in net-irc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-05 16:47 UTC by Jukka Santala
Modified: 2004-09-06 05:10 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jukka Santala 2004-09-05 16:47:39 UTC
Old sys_errlist conflicting definitions in header-files. sys_errlist definition exists in irc_std.h but was later defined in system header tree (stdio.h->bits/sys_errlist.h) as well.

irc_std.h:
#if !defined(SYS_ERRLIST_DECLARED) && !defined(_Windows)
extern  char    *sys_errlist[];
extern  int     sys_nerr;
#endif

configure.in:
dnl
dnl check for sys_errlist declaration
dnl

AC_MSG_CHECKING(for sys_errlist declaration)
AC_TRY_RUN([
#include <sys/types.h>
#include <stdio.h>
#include <errno.h>
main()
{
  char *s = sys_errlist[0];
  exit(0);
}
],
  AC_MSG_RESULT(yes)
  AC_DEFINE(SYS_ERRLIST_DECLARED),
  AC_MSG_RESULT(no), :)

Not exactly sure how configure ends up thinking sys_errlist isn't defined; since sys_errlist.h makes a distinction between BSD and GNU source, it's possible this is somehow different for the configure test and the actual compile.

Reproducible: Always
Steps to Reproduce:
1. emerge ircii

Actual Results:  
The build finishes configure phase, including:
checking for sys_errlist declaration... no
...after which it breaks with:

well there we are, you now might want to look in config.h and
see if there is anything you might want to tune, else you can
just run a make here.. good luck!

gcc -I. -I/var/tmp/portage/ircii-20030709-r2/work/ircii-20030709/include -O2
-march=athlon-xp -pipe -DHAVE_CONFIG_H -c
/var/tmp/portage/ircii-20030709-r2/work/ircii-20030709/source/alias.c
gcc -I. -I/var/tmp/portage/ircii-20030709-r2/work/ircii-20030709/include -O2
-march=athlon-xp -pipe -DHAVE_CONFIG_H -c
/var/tmp/portage/ircii-20030709-r2/work/ircii-20030709/source/crypt.c
In file included from
/var/tmp/portage/ircii-20030709-r2/work/ircii-20030709/include/irc.h:145,
                 from
/var/tmp/portage/ircii-20030709-r2/work/ircii-20030709/source/alias.c:35:
/var/tmp/portage/ircii-20030709-r2/work/ircii-20030709/include/irc_std.h:195:
error: conflicting types for `sys_errlist'
/usr/include/bits/sys_errlist.h:28: error: previous declaration of `sys_errlist'

In file included from
/var/tmp/portage/ircii-20030709-r2/work/ircii-20030709/include/irc.h:145,
                 from
/var/tmp/portage/ircii-20030709-r2/work/ircii-20030709/source/crypt.c:35:
/var/tmp/portage/ircii-20030709-r2/work/ircii-20030709/include/irc_std.h:195:
error: conflicting types for `sys_errlist'
/usr/include/bits/sys_errlist.h:28: error: previous declaration of `sys_errlist'

make: *** [alias.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [crypt.o] Error 1

!!! ERROR: net-irc/ircii-20030709-r2 failed.
!!! Function src_compile, Line 23, Exitcode 2
!!! make failed


Portage 2.0.50-r10 (default-x86-1.4, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.4.22-
gentoo-r2-1)
=================================================================
System uname: 2.4.22-gentoo-r2-1 i686 AMD Athlon(tm) XP 2700+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://212.219.56.131/sites/www.ibiblio.org/gentoo/
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
http://212.219.247.20/sites/www.ibiblio.org/gentoo/
http://212.219.247.21/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm arts avi berkdb crypt cups encode esd foomaticdb gdbm gif gnome gpm
gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif mpeg mysql ncurses
nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl
slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
Comment 1 Jukka Santala 2004-09-06 05:10:01 UTC
After further testing I traced this into a problem with missing /lib/libtermcap.so.2 symbolic link, that was re-created by ldconfig. This is bug #58567; marking this as invalid.