Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45309 - Porting: dev-libs/hdf-4.2.0-r2 fails
Summary: Porting: dev-libs/hdf-4.2.0-r2 fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-21 12:33 UTC by David Holm (RETIRED)
Modified: 2004-09-25 04:31 UTC (History)
1 user (show)

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


Attachments
hdf.log.bz2 (hdf.log.bz2,11.04 KB, application/octet-stream)
2004-03-21 12:34 UTC, David Holm (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Holm (RETIRED) gentoo-dev 2004-03-21 12:33:24 UTC
hdf fails to compile, it dumps a ton of errors. See attached log.
Comment 1 David Holm (RETIRED) gentoo-dev 2004-03-21 12:34:30 UTC
Created attachment 27749 [details]
hdf.log.bz2

Portage 2.0.50-r130 (default-ppc-2004.0, gcc-3.2.3, glibc-2.3.3_pre20040207-r0,
2.4.24-ppc-dev-r2)
=================================================================
System uname: 2.4.24-ppc-dev-r2 ppc 7457, altivec supported
Gentoo Base System version 1.4.3.13p1
distcc 2.13 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -mpowerpc-gfxopt"
CHOST="powerpc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/lib/jboss /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -mpowerpc-gfxopt"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache cvs sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.pudas.net/gentoo ftp://mirror.pudas.net/gentoo
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://212.219.247.19/sites/www.ibiblio.org/gentoo/
http://212.219.247.10/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3ds X X509 Xaw3d aalib acl alsa altivec arts asterisk berkdb bindist
bonobo canna cap cdr composite crypt cscope cups curl dga dnd doc dv dvd editor
encode esd expat faad fbcon fbdev ffmpeg fftw flac flash fluidsynth foomaticdb
freetds freetype gd gd-external gdbm ggi gif ginac glut gnome gnome-libs
gnomedb gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile idea imagemagick imlib
imlib2 jabber jack jack-caps java javascript jikes joystick jpeg junit kde
ladcca lcms leim libdsk libg libwww mad matroska mcal md5sum mikmod mitshm mmap
mng mono motif mozaccess mozcalendar mozilla mozinterfaceinfo mozp3p mozsvg
mozxmlterm mpeg mpeg4 mpi mule mysql ncurses net nls objc odbc offensive
oggvorbis openal opengl openssh oss pam pcre pdflib perl pg-hier pg-vacuumdelay
php physfs pic plotutils png portaudio postgres ppc python qt quicktime radeon
readline regexp rogue ruby samba sdk sdl server sheep skey slang slp socks5 sox
speex spell sqlite ssl stencil-buffer t1lib tcltk tcpd tetex theora tiff tools
transcode truetype type1 usb videos wmf wxwin wxwindows xatrix xface xfs xine
xinerama xml xml2 xmms xosd xv xvid zeo zlib video_cards_radeon"
Comment 2 Patrick Kursawe (RETIRED) gentoo-dev 2004-03-23 23:49:34 UTC
Nice that you tried to compile it. Perhaps the ppc devs can help you there or set a -ppc keyword for this ebuild. Please note that hdf is not ppc keyworded.
Comment 3 Patrick Kursawe (RETIRED) gentoo-dev 2004-03-23 23:51:18 UTC
Hm, perhaps quite a silly advice to a ppc developer... sorry. Ok, David. What do you expect the sci guys to do with this bug?
Comment 4 David Holm (RETIRED) gentoo-dev 2004-03-24 14:32:06 UTC
:)
I was hoping one of you guys would be familiar enough with the code to maybe know how to fix it. (BTW, I masked the keyword on ppc since I wanted to commit some other working apps that had optional hdf support)
Comment 5 Patrick Kursawe (RETIRED) gentoo-dev 2004-03-25 00:08:17 UTC
Ok, had a look where it fails, and it reads

#ifndef GOT_MACHINE
No machine type has been defined.  Your Makefile needs to have someing like
-DSUN or -DUNICOS in order for the HDF internal structures to be defined
correctly.

That's your hdfi.h:1388: syntax error before "machine"

Looks like you'll have to patch this file to let it get an idea what a linux ppc system is like.
Comment 6 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-08-19 14:21:39 UTC
Adding 'porting' to the topic
Comment 7 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-09-25 04:31:45 UTC
Passing -DSUN in the cflags on ppc makes the application use the correct endianness. Apparently nothing but the SUN macro is defined. Updating the ebuild.