Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143737 - media-gfx/splashutils-1.3-r2 fails to emerge
Summary: media-gfx/splashutils-1.3-r2 fails to emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High normal
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
: 154252 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-08-12 20:45 UTC by tommoyer
Modified: 2007-01-28 15:48 UTC (History)
9 users (show)

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


Attachments
ppc-sigaction-klibc-undef.patch (ppc-sigaction-klibc-undef.patch,385 bytes, patch)
2006-08-20 12:05 UTC, Ed Catmur
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tommoyer 2006-08-12 20:45:21 UTC
Here is my emerge --info and a log of all the messages from emerge splashutils.

Gentoo Base System version 1.12.1

Portage 2.1-r2 (default-linux/ppc/ppc32/2006.1/G4, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r5 ppc)

=================================================================

System uname: 2.6.17-gentoo-r5 ppc 7447A, altivec supported

app-admin/eselect-compiler: [Not Present]

dev-lang/python:     2.4.3-r1

dev-python/pycrypto: 2.0.1-r5

dev-util/ccache:     [Not Present]

dev-util/confcache:  [Not Present]

sys-apps/sandbox:    1.2.17

sys-devel/autoconf:  2.13, 2.59-r7

sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2

sys-devel/binutils:  2.16.1-r3

sys-devel/gcc-config: 1.3.13-r3

sys-devel/libtool:   1.5.22

virtual/os-headers:  2.6.11-r4

ACCEPT_KEYWORDS="ppc ~ppc"

AUTOCLEAN="yes"

CBUILD="powerpc-unknown-linux-gnu"

CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"

CHOST="powerpc-unknown-linux-gnu"

CONFIG_PROTECT="/etc /usr/share/X11/xkb"

CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"

CXXFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"

DISTDIR="/usr/portage/distfiles"

FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"

GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"

LINGUAS="en en_US"

MAKEOPTS="-j2"

PKGDIR="/usr/portage/packages"

PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"

PORTAGE_TMPDIR="/var/tmp"

PORTDIR="/usr/portage"

SYNC="rsync://rsync.gentoo.org/gentoo-portage"

USE="ppc X Xaw3d aim alsa altivec apm bash-completion berkdb bitmap-fonts bzip2 cdparanoia cdr cli crypt cups dbus dga directfb dlloader dri dvd emboss encode fam fbcon ffmpeg firefox flash foomaticdb fortran ftp gdbm gif gimpprint glut gpm gstreamer gtk gtk2 gtkhtml hal ieee1394 imagemagick ipv6 isdnlog jabber java javascript jikes jpeg ldap libg++ libwww mad mikmod mime mng mono motif mp3 mpeg msn ncurses nls nptl nptlonly nsplugin offensive ogg oggvorbis opengl oss pam pcre pdf pdflib perl php png ppds python qt qt3 qt4 quicktime readline reflection ruby samba sdl session spell spl ssl svg symlink tcpd theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb vcd vorbis wifi xine xinetd xml xmms xorg xosd xpm xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_ps2mouse kernel_linux linguas_en linguas_en_US userland_GNU video_cards_ati video_cards_radeon video_cards_fbdev"

Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY



Calculating dependencies  ... done!

>>> Emerging (1 of 1) media-gfx/splashutils-1.3-r2 to /

>>> checking ebuild checksums ;-)

>>> checking auxfile checksums ;-)

>>> checking miscfile checksums ;-)

>>> checking splashutils-lite-1.3.tar.bz2 ;-)

>>> checking splashutils-gentoo-0.5.2.tar.bz2 ;-)

>>> checking miscsplashutils-0.1.5.tar.bz2 ;-)

>>> checking libpng-1.2.8.tar.bz2 ;-)

>>> checking jpegsrc.v6b.tar.gz ;-)

>>> checking freetype-2.1.9.tar.bz2 ;-)

>>> checking zlib-1.2.3.tar.bz2 ;-)

>>> Unpacking source...

>>> Unpacking splashutils-lite-1.3.tar.bz2 to /var/tmp/portage/splashutils-1.3-r2/work

>>> Unpacking splashutils-gentoo-0.5.2.tar.bz2 to /var/tmp/portage/splashutils-1.3-r2/work

>>> Unpacking miscsplashutils-0.1.5.tar.bz2 to /var/tmp/portage/splashutils-1.3-r2/work

>>> Unpacking libpng-1.2.8.tar.bz2 to /var/tmp/portage/splashutils-1.3-r2/work

>>> Unpacking jpegsrc.v6b.tar.gz to /var/tmp/portage/splashutils-1.3-r2/work

>>> Unpacking freetype-2.1.9.tar.bz2 to /var/tmp/portage/splashutils-1.3-r2/work

>>> Unpacking zlib-1.2.3.tar.bz2 to /var/tmp/portage/splashutils-1.3-r2/work

>>> Source unpacked.

>>> Compiling source in /var/tmp/portage/splashutils-1.3-r2/work/splashutils-1.3 ...

cc -O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe fbres.c -o fbres

cc -O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe usleep.c -o usleep

strip usleep

strip fbres

make[1]: Entering directory `/var/tmp/portage/splashutils-1.3-r2/work/miscsplashutils-0.1.5/fbtruetype'

gcc -O2 -Wall -I/usr/include/freetype2   -c -o fbtruetype.o fbtruetype.c

gcc -O2 -Wall -I/usr/include/freetype2   -c -o messages.o messages.c

fbtruetype.c:39: warning: pointer targets in initialization differ in signedness

fbtruetype.c: In function 'main':

fbtruetype.c:105: warning: pointer targets in assignment differ in signedness

fbtruetype.c:143: warning: pointer targets in passing argument 2 of 'rendertext' differ in signedness

gcc -O2 -Wall -I/usr/include/freetype2   -c -o console.o console.c

gcc -O2 -Wall -I/usr/include/freetype2   -c -o ttf.o ttf.c

gcc -O2 -Wall -I/usr/include/freetype2   -c -o luxisri.o luxisri.c

ttf.c: In function 'rendertext':

ttf.c:799: warning: pointer targets in assignment differ in signedness

gcc -O2 -Wall -I/usr/include/freetype2 -L/usr/lib -static -o fbtruetype.static -L/usr/lib fbtruetype.o messages.o console.o ttf.o luxisri.o /usr/lib/libfreetype.a /usr/lib/libz.a -lm

gcc -O2 -Wall -I/usr/include/freetype2 -L/usr/lib -o fbtruetype -L/usr/lib fbtruetype.o messages.o console.o ttf.o luxisri.o -lfreetype -lm

strip -s fbtruetype fbtruetype.static

make[1]: Leaving directory `/var/tmp/portage/splashutils-1.3-r2/work/miscsplashutils-0.1.5/fbtruetype'

make[1]: Entering directory `/var/tmp/portage/splashutils-1.3-r2/work/miscsplashutils-0.1.5/kbd'

cc -O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe   -c -o fgconsole.o fgconsole.c

cc -O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe   -c -o getfd.o getfd.c

cc -O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe  fgconsole.o getfd.o -o fgconsole

make[1]: Leaving directory `/var/tmp/portage/splashutils-1.3-r2/work/miscsplashutils-0.1.5/kbd'

config.h successfully created.

You can run `make` now.

  CONF    libjpeg

  MAKE    libjpeg

In file included from /usr/lib/klibc/include/arch/ppc/klibc/archsignal.h:11,

                 from /usr/lib/klibc/include/signal.h:14,

                 from /usr/lib/klibc/include/sys/select.h:11,

                 from /usr/lib/klibc/include/unistd.h:12,

                 from /usr/lib/klibc/include/stdio.h:11,

                 from /var/tmp/portage/splashutils-1.3-r2/work/splashutils-1.3/libs/jpeg-6b/jinclude.h:46,

                 from /var/tmp/portage/splashutils-1.3-r2/work/splashutils-1.3/libs/jpeg-6b/jcapimin.c:20:

/usr/include/asm/signal.h:169: error: field 'sa' has incomplete type

make[1]: *** [jcapimin.o] Error 1

make: *** [jpeglib] Error 2



!!! ERROR: media-gfx/splashutils-1.3-r2 failed.

Call stack:

  ebuild.sh, line 1539:   Called dyn_compile

  ebuild.sh, line 939:   Called src_compile

  splashutils-1.3-r2.ebuild, line 128:   Called die



!!! failed to build splashutils

!!! If you need support, post the topmost build error, and the call stack if relevant.

The issue that it is complaining about for libjpeg doesn't appear when I compile and make libjpeg.a by hand (i.e. ./configure, make libjpeg.a, etc)
Comment 1 Michal Januszewski (RETIRED) gentoo-dev 2006-08-13 02:05:07 UTC
It doesn't appear when you do things by hand, becasue then it's using glibc and not klibc. Could you please let us know which version of klibc you're using? If possible, you might also want to upgrade to linux-headers-2.6.16 and check if this fixes anything.
Comment 2 tommoyer 2006-08-13 02:15:26 UTC
dev-libs/klibc-1.4.13
Upgrading to linux-headers-2.6.16 and retrying will update status when this is done.
Comment 3 tommoyer 2006-08-13 02:33:23 UTC
After upgrading linux-headers to 2.6.16, the same error still occurs.  Is there anything I should recompile based on the new headers that might affect this emerge procedure?
Comment 4 Neil Bothwick 2006-08-13 15:35:21 UTC
I get the same error with dev-libs/klibc-1.4.13 and  sys-kernel/linux-headers-2.6.16

Portage 2.1.1_pre5 (default-linux/ppc/ppc32/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r5 ppc)
=================================================================
System uname: 2.6.17-gentoo-r5 ppc 7447A, altivec supported
Gentoo Base System version 1.12.4
Last Sync: Sun, 13 Aug 2006 13:50:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: [Not Present]
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mtune=G4 -mcpu=G4 -maltivec -mabi=altivec -fno-strict-aliasing -fomit-frame-pointer"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /etc/env.d /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/init.d /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -mtune=G4 -mcpu=G4 -maltivec -mabi=altivec -fno-strict-aliasing -fomit-frame-pointer"
DISTDIR="/mnt/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="autoconfig buildpkg ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.digimed.co.uk/ http://pandemonium.tiscali.de/pub/gentoo/"
LANG="en_GB"
LINGUAS="en_GB"
MAKEOPTS="-j2"
PKGDIR="/mnt/portage/packages/krikkit"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/mnt/scratch"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/mnt/portage/local /mnt/portage/layman/sunrise"
SYNC="rsync://desiato/gentoo"
USE="ppc X alsa altivec apm audiofile berkdb bitmap-fonts bluetooth bzip2 cddb cdr cli crypt cups curl dbus dlloader dri dv dvb dvb_cards_usb-wt220u dvd elibc_glibc emboss encode exif ffmpeg flac foomaticdb gdbm gif gimpprint gphoto2 gpm gtk gtk2 hal ieee1394 imagemagick imlib input_devices_keyboard input_devices_mouse isdnlog java jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kernel_linux libg++ libwww linguas_en_GB mad mng mono motif mp3 mpeg musicbrainz mysql ncurses nptl nptlonly offensive ogg oggvorbis opengl pcre pdf pdflib png ppds pppd python qt3 qt4 quicktime readline reflection scanner sdl session slp speex spell spl ssl svg tcltk tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales v4l vhosts video_cards_ati video_cards_vesa vorbis wifi xml xml2 xorg xscreensaver xv xvid zlib"
Unset:  CTARGET, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 5 Ed Catmur 2006-08-20 08:42:48 UTC
Simplistic diagnosis:

/usr/lib/klibc/include/signal.h is wrapped in #ifndef _SIGNAL_H/#define _SIGNAL_H/#endif /* _SIGNAL_H */.
Thus when /usr/lib/klibc/include/arch/ppc/klibc/archsignal.h includes /usr/include/asm/signal.h +135:

#ifndef _SIGNAL_H
struct sigaction {
        __sighandler_t sa_handler;
        unsigned long sa_flags;
        __sigrestore_t sa_restorer;
        sigset_t sa_mask;               /* mask last for extensibility */
};
#endif

struct k_sigaction {
        struct sigaction sa;
};

_SIGNAL_H is already defined so struct sigaction is not defined.

This does not happen on x86 because /usr/lib/klibc/include/arch/i386/klibc/archsignal.h defines struct sigaction.

Suggestions:
1. /usr/lib/klibc/include/arch/ppc/klibc/archsignal.h to define struct sigaction
2. /usr/lib/klibc/include/arch/ppc/klibc/archsignal.h to undef _SIGNAL_H around #include <asm/signal.h>
3. klibc to provide its own <asm/signal.h>

Gurus?
Comment 6 Ed Catmur 2006-08-20 12:05:21 UTC
Created attachment 94715 [details, diff]
ppc-sigaction-klibc-undef.patch

Patch implementing (2).
Comment 7 tommoyer 2006-09-16 04:28:15 UTC
Has there been a resolution to this yet?
Comment 8 tommoyer 2006-09-16 04:28:42 UTC
Has there been a resolution to this yet?
Comment 9 Neil Bothwick 2006-09-16 05:59:31 UTC
(In reply to comment #8)
> Has there been a resolution to this yet?

The patch in Comment 6, applied to klibc, worked for me.


Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-11-06 07:59:14 UTC
*** Bug 154252 has been marked as a duplicate of this bug. ***
Comment 11 Joe Jezak (RETIRED) gentoo-dev 2006-11-12 22:15:20 UTC
Works here too.  Can we add this please?

Added azarah since he's listed as the maintainer in metadata.xml.
Comment 12 Farid 2007-01-14 00:39:05 UTC
Isn't it time to add this patch into a new ebuild of klibc?
Comment 13 Farid 2007-01-14 00:48:54 UTC
I just noticed that this bug is for ppc. I have a similar thing with amd64. Is it the same bug, or should I file a new report?

You can run `make` now.
  CONF    libjpeg
  MAKE    libjpeg
  CONF    freetype2
  MAKE    freetype2
  CONF    zlib
  MAKE    zlib
  CONF    libpng
  MAKE    libpng
  CC      objs/kernel/kernel.o
  CC      objs/kernel/dev.o
  CC      objs/kernel/parse.o
  CC      objs/kernel/render.o
  CC      objs/kernel/image.o
  CC      objs/kernel/cmd.o
  CC      objs/kernel/common.o
  CC      objs/kernel/list.o
  CC      objs/kernel/effects.o
  CC      objs/kernel/ttf.o
  LD      objs/splash_helper
  CC      objs/splash.o
In file included from /usr/lib64/klibc/include/linux/fb.h:5,
                 from splash.h:37,
                 from splash.c:26:
/usr/include/linux/i2c.h:66: error: array type has incomplete element type
/usr/include/linux/i2c.h:82: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘i2c_smbus_xfer’
/usr/include/linux/i2c.h:90: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘i2c_smbus_write_quick’
/usr/include/linux/i2c.h:91: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘i2c_smbus_read_byte’
/usr/include/linux/i2c.h:92: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘i2c_smbus_write_byte’
/usr/include/linux/i2c.h:93: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘i2c_smbus_read_byte_data’
/usr/include/linux/i2c.h:94: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘i2c_smbus_write_byte_data’
/usr/include/linux/i2c.h:96: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘i2c_smbus_read_word_data’
/usr/include/linux/i2c.h:97: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘i2c_smbus_write_word_data’
/usr/include/linux/i2c.h:100: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘i2c_smbus_write_block_data’
/usr/include/linux/i2c.h:103: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘i2c_smbus_read_i2c_block_data’
/usr/include/linux/i2c.h:387: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘i2c_get_functionality’
/usr/include/linux/i2c.h:390: error: expected declaration specifiers or ‘...’ before ‘u32’
make: *** [objs/splash.o] Error 1

!!! ERROR: media-gfx/splashutils-1.3-r2 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  splashutils-1.3-r2.ebuild, line 129:   Called die

!!! failed to build splashutils
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 14 Ed Catmur 2007-01-14 01:15:15 UTC
Nah, that looks like a types.h bug.
Comment 15 Farid 2007-01-15 22:45:17 UTC
Ahh, I fixed it by upgrading linux-headers.
I won't bother this bug anymore :-)
Comment 16 Joe Jezak (RETIRED) gentoo-dev 2007-01-28 15:48:03 UTC
This is working in both ~ppc and ppc now.