Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 92918 - net-irc/irssi fails to build with gcc-4
Summary: net-irc/irssi fails to build with gcc-4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All All
: High normal
Assignee: Packages in net-irc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-17 07:07 UTC by Aaron Walker (RETIRED)
Modified: 2005-05-17 08:58 UTC (History)
0 users

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


Attachments
irssi-0.8.10_rc5-gcc4.patch (irssi-0.8.10_rc5-gcc4.patch,635 bytes, patch)
2005-05-17 07:07 UTC, Aaron Walker (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Walker (RETIRED) gentoo-dev 2005-05-17 07:07:12 UTC
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src/core -I../../src/fe-common/core -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DSCRIPTDIR=\"/usr/share/irssi/scripts\" -DPERL_USE_LIB=\"/usr/lib/perl5/5.8.6/i686-linux\" -DPERL_STATIC_LIBS=0 -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.8.6/i686-linux/CORE -O2 -march=athlon-xp -pipe -Wall -c perl-core.c  -fPIC -DPIC -o .libs/perl-core.o
In file included from module.h:19,
                 from perl-core.c:22:
../../src/common.h:66:4: error: #error uoff_t size not set
In file included from perl-core.c:26:
../../src/core/misc.h:79: error: syntax error before 'str_to_uofft'
../../src/core/misc.h:79: warning: type defaults to 'int' in declaration of 'str_to_uofft'
../../src/core/misc.h:79: warning: data definition has no type or storage class
perl-core.c: In function 'perl_script_eval':
perl-core.c:254: error: 'sv_undef' undeclared (first use in this function)
perl-core.c:254: error: (Each undeclared identifier is reported only once
perl-core.c:254: error: for each function it appears in.)
make[3]: *** [perl-core.lo] Error 1
make[3]: Leaving directory `/buildroot/portage/irssi-0.8.10_rc5-r1/work/irssi-0.8.10-rc5/src/perl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/buildroot/portage/irssi-0.8.10_rc5-r1/work/irssi-0.8.10-rc5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/buildroot/portage/irssi-0.8.10_rc5-r1/work/irssi-0.8.10-rc5'
make: *** [all-recursive-am] Error 2

A patch is attached.
Comment 1 Aaron Walker (RETIRED) gentoo-dev 2005-05-17 07:07:51 UTC
Created attachment 59120 [details, diff]
irssi-0.8.10_rc5-gcc4.patch
Comment 2 Sven Wegener gentoo-dev 2005-05-17 08:58:56 UTC
I comited a different fix from upstream svn:

Index: src/common.h
===================================================================
--- src/common.h        (revision 3725)
+++ src/common.h        (revision 3726)
@@ -14,7 +14,7 @@
 #define DEFAULT_SERVER_ADD_PORT 6667

 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "../config.h"
 #endif

 #include <stdio.h>