Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12605 - Building perl binding for abiword-1.0.4_pre1-r2 fails
Summary: Building perl binding for abiword-1.0.4_pre1-r2 fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: foser (RETIRED)
URL:
Whiteboard:
Keywords:
: 13134 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-12-23 01:58 UTC by Patrik Kullman
Modified: 2003-03-03 18:28 UTC (History)
4 users (show)

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


Attachments
perl-5.8.0-sockatmark-should-__THROW.patch (perl-5.8.0-sockatmark-should-__THROW.patch,401 bytes, patch)
2002-12-28 05:41 UTC, Martin Schlemmer (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrik Kullman 2002-12-23 01:58:29 UTC
make[4]: Entering directory
`/var/tmp/portage/abiword-1.0.4_pre1-r2/work/abiword-1.0.4_pre1/abi            
       
/src/af/util/xp'
source='ut_PerlBindings.cpp' object='ut_PerlBindings.o' libtool=no \
depfile='.deps/ut_PerlBindings.Po' tmpdepfile='.deps/ut_PerlBindings.TPo' \
depmode=gcc3 /bin/sh ../../../../ac-helpers/depcomp \
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DP                    
ACKAGE_BUGREPORT=\"\" -DPACKAGE=\"AbiSuite\" -DVERSION=\"1.0.4\"
-DSTDC_HEADERS=1 -DHAVE_SYS_TY                    
PES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRING                    
S_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1
-DHAVE_LIMITS_H=                    
1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_MALLOC_H=1
-DHAVE_LIBXML2=1 -                    
DHAVE_PSICONV=1 -DHAVE_WV=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DRETSIGTYPE=void
-DHAVE_RE_COMP=                    
1 -DHAVE_REGCOMP=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1  -I. -I.
-I'../../../../src/af/util/xp'  -I'                    
../../../../src/af/ev/xp' -I'../../../../src/af/ev/xp'
-I'../../../../src/af/gr/xp' -I'../../..                    
/../src/af/xap/xp' -I'../../../../src/af/util/unix'
-I'../../../../src/af/ev/unix' -I'../../../                    
../src/af/gr/unix' -I'../../../../src/af/xap/unix'
-I'../../../../src/af/xap/unix/gnome' -I'../                    
../../../src/af/ev/unix/gnome' -I'../../../../src/other/spell/xp'
-I'../../../../src/other/frib                    
idi/xp'      -march=athlon-tbird -O2 -pipe -Wall -pedantic -ansi -D_POSIX_SOURCE
-D_BSD_SOURCE                     
-pipe -DNDEBUG -I/usr/include/libxml2 -DABI_OPT_PERL  -DPERL5
-fno-strict-aliasing -D_LARGEFILE                    
_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/lib/perl5/5.8.0/i686-linux/CORE  -Ubool
-DBIDI_ENABLED -                    
I/var/tmp/portage/abiword-1.0.4_pre1-r2/work/abiword-1.0.4_pre1/psiconv/
-I/var/tmp/portage/abi                    
word-1.0.4_pre1-r2/work/abiword-1.0.4_pre1/wv  -DHAVE_LIBJPEG 
-I/usr/include/gnome-1.0 -DNEED_                    
GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/                    
usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/gdk-pixbuf-1.0
-I/usr/include/freetype                    
2 -I/usr/include/gnome-xml -I/usr/include -I/usr/include/orbit-1.0
-I/usr/include/libglade-1.0                     
-I/usr/include/gnome-vfs-1.0 -I/usr/lib/gnome-vfs-1.0/include
-I/usr/include/gconf/1 -D_REENTRA                    
NT -DHAVE_GNOME=1 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/include/gtk-1.2 -I/usr                    
/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
-DSUPPORTS_UT_IDLE=1   -DABI_BUI                    
LD_VERSION=\"1.0.4\" -c -o ut_PerlBindings.o `test -f ut_PerlBindings.cpp ||
echo './'`ut_PerlB                    
indings.cpp
In file included from ut_PerlBindings.h:6,
                 from ut_PerlBindings.cpp:7:
ut_Script.h:78: warning: `class UT_ScriptLibrary' only defines private 
   constructors and has no friends
In file included from ut_PerlBindings.cpp:42:
/usr/lib/perl5/5.8.0/i686-linux/CORE/perl.h:720: declaration of `int 
   sockatmark(int)' throws different exceptions
/usr/include/sys/socket.h:204: than previous declaration `int sockatmark(int) 
   throw ()'
In file included from ut_PerlBindings.cpp:42:
/usr/lib/perl5/5.8.0/i686-linux/CORE/perl.h:3841:24: warning: ISO C does not
permit named varia                    
dic macros
ut_PerlBindings.cpp: In function `void xs_init(PerlInterpreter*)':
ut_PerlBindings.cpp:74: warning: invalid conversion from `void 
   (*)(PerlInterpreter*, CV*)' to `void (*)(CV*)'
ut_PerlBindings.cpp:129:74: warning: ISO C99 requires rest arguments to be used
ut_PerlBindings.cpp: In constructor `UT_PerlBindings::UT_PerlBindings()':
ut_PerlBindings.cpp:132: warning: invalid conversion from `void 
   (*)(PerlInterpreter*)' to `void (*)()'
ut_PerlBindings.cpp: In member function `bool UT_PerlBindings::evalFile(const 
   UT_String&)':
ut_PerlBindings.cpp:237: warning: ISO C++ forbids braced-groups within 
   expressions
ut_PerlBindings.cpp:253: warning: ISO C++ forbids braced-groups within 
   expressions
ut_PerlBindings.cpp:218: warning: unused variable `PerlInterpreter*my_perl'
ut_PerlBindings.cpp: In member function `bool 
   UT_PerlBindings::runCallback(const char*)':
ut_PerlBindings.cpp:291: warning: ISO C++ forbids braced-groups within 
   expressions
ut_PerlBindings.cpp:285: warning: unused variable `PerlInterpreter*my_perl'
make[4]: *** [ut_PerlBindings.o] Error 1
make[4]: Leaving directory
`/var/tmp/portage/abiword-1.0.4_pre1-r2/work/abiword-1.0.4_pre1/abi/           
        
src/af/util/xp'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/var/tmp/portage/abiword-1.0.4_pre1-r2/work/abiword-1.0.4_pre1/abi/           
        
src/af/util'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/abiword-1.0.4_pre1-r2/work/abiword-1.0.4_pre1/abi/           
        
src/af'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/abiword-1.0.4_pre1-r2/work/abiword-1.0.4_pre1/abi/           
        
src'
make: *** [all-recursive] Error 1

!!! ERROR: app-office/abiword-1.0.4_pre1-r2 failed.
!!! Function src_compile, Line 57, Exitcode 2
!!! (no error message)
Comment 1 oktay altunergil 2002-12-24 11:55:42 UTC
I'm getting the same on gentoo 1.4_rc, kernel 2.4.19-gentoo-r10 (pentium 4)
I can provide more details if needed.
Comment 2 Philip Walls (RETIRED) gentoo-dev 2002-12-26 11:46:18 UTC
I have also run into this problem, however, it seems to work if you:

USE="-perl" emerge abiword

Might be a problem with Perl 5.8.0 recently put into ~x86
CCing this to Azarah
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-28 05:33:32 UTC
Ok, the problem is that perl-5.8.0 defines sockatmark() (where 5.6 have not),
but it does not define it as (like both gcc-2.2.5 and gcc-2.3.1) does:

  int sockatmark(int) __THROW;

but rather as:

  int sockatmark(int);



Editing /usr/lib/perl5/5.8.0/i686-linux/CORE/perl.h (or where ever for your
arch) and changing it to have __THROW, fixes the problem.

I do not know if the may or may not break other things.

Anyhow, added Michael to CC, as he is the perl guy ...
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-28 05:41:59 UTC
Created attachment 6800 [details, diff]
perl-5.8.0-sockatmark-should-__THROW.patch

Here is the patch for perl-5.8.0 (any revision).
Comment 5 Sami Näätänen 2003-01-02 12:44:50 UTC
Found out that it doesn't compile with perl 5.6.1-r10 either.
Different reason though.

i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"AbiSuite\" -DVERSION=\"1.0.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_TIME_H=1
-DHAVE_UNISTD_H=1 -DHAVE_MALLOC_H=1 -DHAVE_LIBXML2=1 -DHAVE_PSICONV=1
-DHAVE_WV=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DRETSIGTYPE=void -DHAVE_RE_COMP=1
-DHAVE_REGCOMP=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1  -I. -I.
-I'../../../../src/af/util/xp'  -I'../../../../src/af/ev/xp'
-I'../../../../src/af/ev/xp' -I'../../../../src/af/gr/xp'
-I'../../../../src/af/xap/xp' -I'../../../../src/af/util/unix'
-I'../../../../src/af/ev/unix' -I'../../../../src/af/gr/unix'
-I'../../../../src/af/xap/unix' -I'../../../../src/other/spell/xp'
-I'../../../../src/other/fribidi/xp'      -march=i686 -O2 -pipe
-fomit-frame-pointer -Wall -pedantic -ansi -D_POSIX_SOURCE -D_BSD_SOURCE -pipe
-DNDEBUG -I/usr/include/libxml2 -DABI_OPT_PERL  -fno-strict-aliasing
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-I/usr/lib/perl5/5.6.1/i686-linux/CORE  -Ubool -DNOT_PERL_5_8 -DBIDI_ENABLED
-I/var/tmp/portage/abiword-1.0.4_pre1-r2/work/abiword-1.0.4_pre1/psiconv/
-I/var/tmp/portage/abiword-1.0.4_pre1-r2/work/abiword-1.0.4_pre1/wv 
-DHAVE_LIBJPEG  -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -DSUPPORTS_UT_IDLE=1   -DABI_BUILD_VERSION=\"1.0.4\" -c -o
ut_PerlBindings.o `test -f ut_PerlBindings.cpp || echo './'`ut_PerlBindings.cpp
In file included from /usr/lib/perl5/5.6.1/i686-linux/CORE/perl.h:3340,
                 from ut_PerlBindings.cpp:42:
/usr/include/sys/ipc.h:25: warning: #warning "Files using this header must be
compiled with _SVID_SOURCE or _XOPEN_SOURCE"
In file included from ut_PerlBindings.h:6,
                 from ut_PerlBindings.cpp:7:
ut_Script.h:119: warning: `class UT_ScriptLibrary' only defines private
constructors and has no friends
ut_PerlBindings.cpp: In function `void xs_init()':
ut_PerlBindings.cpp:74: passing `void (*)(PerlInterpreter *, CV *)' as argument
2 of `Perl_newXS(char *, void (*)(CV *), char *)'
ut_PerlBindings.cpp: In method `bool UT_PerlBindings::evalFile(const UT_String &)':
ut_PerlBindings.cpp:237: warning: ANSI C++ forbids braced-groups within expressions
ut_PerlBindings.cpp:253: warning: ANSI C++ forbids braced-groups within expressions
ut_PerlBindings.cpp: In method `bool UT_PerlBindings::runCallback(const char *)':
ut_PerlBindings.cpp:291: warning: ANSI C++ forbids braced-groups within expressions

emerge info

Portage 2.0.46-r4 (default-1.0, gcc-2.95.3, glibc-2.2.5-r7)
=================================================================
System uname: 2.4.19-gentoo-r10 i686 Pentium III (Coppermine)
USE="x86 gnome-libs oggvorbis -3dfx -3dnow -aalib -acl -acpi -afs -alsa apache2
apm -arts -atlas avi -berkdb -bonobo -canna cdr -cjk crypt cups -dga directfb
doc dvd encode esd -evo fbcon flash -freewn -gb gd gdbm ggi -ggz gif -gnome
gphoto2 gpm gps gtk -gtk2 -gtkhtml -guile -icc -icc-pgo imap imlib innodb ipv6
java -jikes jpeg junit -kde -kerberos -lcms -ldap leim libg++ -libgda libwww
-matrox maildir -mbox mikmod mmx -motif mozilla mpeg mule mysql -nas ncurses nls
-nocardbus oav -oci8 -odbc opengl oss pam -pcmcia -pda pdflib perl pic plotutils
png -pnp -postgres python qt qtmt quicktime readline -ruby samba -sasl scanner
sdl -slang slp -snmp -socks5 -spell sse ssl -static -svga -tcltk tcpd tetex tiff
truetype -trusted -voodoo3 -wavelan wmf X -xface xml xml2 xmms xv -zeo zlib"
ARCH="x86"
COMPILER=""
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86 ~x86"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config
/usr/kde/3/share/config:/usr/share/config"
CONFIG_PROTECT_MASK="/etc/init.d /etc/gconf /etc/env.d"
MAKEOPTS="-j2"
JDK_HOME="/opt/sun-jdk-1.4.1.01"
JAVA_HOME="/opt/sun-jdk-1.4.1.01"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-02 16:04:54 UTC
Actually its pretty broken.  1) it dont even intall all the required components. 2) If you hack it to, it still dont work (missing symbols at runtime ..)  I personally think we should just disable it.  Looks anyhow like dead code ... no updates in months.  Btw, have to use links, so sorry for no '\n' :/
Comment 7 Guy 2003-01-03 18:51:07 UTC
*** Bug 13134 has been marked as a duplicate of this bug. ***
Comment 8 Guy 2003-01-03 18:57:24 UTC
I did a search for 'abiword' before I entered bug # 13134. Zarro bugs were
found.  :-(

FWIW, I do have a semi working copy of abiword-1.0.4_pre1 on my systems. They
were emerged from abiword-1.0.4_pre1-r1.ebuild.

In this case, abiword seq-faults when I close it down. Otherwise it seems
partially functional.

Az, perhaps ebuild -r1 should be put back in portage?
Comment 9 foser (RETIRED) gentoo-dev 2003-01-03 19:29:53 UTC
hmm according to my abi contact there's a fix... ill see if i can grab it.. i
released the new perl enabled revision btw mainly to get this sort of bugreports
since the old threads died.

The crash on exit thing is another reproducable problem for some ppl and another
bug, so don't discuss it here (not that i or anyone i know of has a clue about it).
Comment 10 Guy 2003-01-03 20:36:13 UTC
I hate to ask a silly question and I really don't want to offend anybody, but
why is abiword-1.0.4-pre1 not masked? Shouldn't abiword-1.0.4-pre1 be available
only if "~arch" flag is set? I ask because 1.0.3 is the latest stable release
according to both these sites: 
http://www.abisource.com/download/statics.phtml#snapshot &
http://sourceforge.net/projects/abiword/

I assume that abiword 1.0.4 will probably be the last release using gtk1.2 (?).
As far as I can tell, abiword 1.1.2 is the version of interest from a bleeding
edge perspective anyway as this is the version using gtk2.

I'm thinking of this in the same perspective as KDE. IE - KDE 3.0.5a be the
lastest _stable_ release while 3.1_rc5 is permenantly masked since it's a
development release. If abiword were to be treated in the same manner as kde, I
would imagine that version 1.0.3 would be the version to normally emerge and
that versions 1.0.4-pre1 and 1.1.2 would be masked or available only to people
with ~arch set.

If I'm totally off base here, someone ... please slap me silly. ;-)
Comment 11 Guy 2003-01-03 20:54:21 UTC
I promise to write down 100 times: Include 'emerge info'. Include 'emerge info' ...

----------------------------------------------------------------------------------------------------
Portage 2.0.46-r4 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r3)
=================================================================
System uname: 2.4.20 i686 AMD Athlon(TM) XP1900+
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg gnome libg++ mikmod mmx
mpeg ncurses nls pdflib png qtmt quicktime spell truetype xml2 xmms xv zlib
gtkhtml alsa gdbm berkdb slang readline arts bonobo svga tcltk java guile mysql
X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt kde motif
opengl mozilla cdr athena"
ARCH="x86"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config
/usr/kde/3.1/share/config:/usr/kde/3/share/config:/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
MAKEOPTS="-j1"
JDK_HOME="/opt/blackdown-jdk-1.4.1_beta"
JAVA_HOME="/opt/blackdown-jdk-1.4.1_beta"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
Comment 12 foser (RETIRED) gentoo-dev 2003-01-04 05:47:13 UTC
No, i think there will be more releases for gtk1, as long as there are bugfixes.
1.0.4_pre1 is a release especially done for Gentoo, to fix some problems. It is
perfectly stable (in abiword terms) and really is what 1.0.4 shouldve been if
the real release guy wouldn't be so slow ;)
Comment 13 Guy 2003-01-04 06:00:06 UTC
hehe - thanks for clarifying. 

I'm especially interested in abiword because I'm getting into setting up antique
systems for worthy causes. Abiword is on my short list for appropriate
applications on such systems.

For now, I'll just do the explicit ebuild of version 1.0.3 on such systems.

And in the meantime, I'll continue to follow this and test the resulting ebuilds
as you guys come out with them. ;)

{durned developers - everything just takes longer) :D

If I can help in any other way, let me know.
Comment 14 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-05 11:20:46 UTC
Ill add a -r3, which actually have perl bindings that do install, but will
disable it, as like I said ... its broken anyhow :/
Comment 15 foser (RETIRED) gentoo-dev 2003-01-05 11:47:02 UTC
It isn't completely broken, it works for a lot of ppl (like me).

Oh and Guy, 1.0.4_pre1 can be considered as stable (even more probably) then
1.0.3. Install the marked stable one, that one has no perl problems (it is
disabled ;)).
Comment 16 Guy 2003-01-06 07:26:56 UTC
foser - heh - Just brought (tried to bring up) another machine up to date via
"emerge -u world". Um ... it stopped too on abiword. :(

It's another data point. Is there any info from that machine you'ld like me to
post here? It's a celeron 466 based system.
Comment 17 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-07 12:40:41 UTC
Foser: define 'not completely broken'.  I was talking solely about the perl
       bindings ....

The rest of 1.0.4_pre1 seems fine here =)  If you can get the perl bindings to
work, let me know how ...
Comment 18 foser (RETIRED) gentoo-dev 2003-01-07 12:50:47 UTC
Az : It doesn happen to everyone. eg. i can build it fine with perl on.
Comment 19 foser (RETIRED) gentoo-dev 2003-01-31 13:12:18 UTC
how about abiword-1.0.4 people ? any improvement ?
Comment 20 Guy 2003-01-31 19:06:04 UTC
All is fine with me. :-)

Comment 21 foser (RETIRED) gentoo-dev 2003-03-03 18:28:11 UTC
closing, i assume 1.0.4 fixed these problems.