hdf fails to compile, it dumps a ton of errors. See attached log.
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"
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.
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?
:) 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)
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.
Adding 'porting' to the topic
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.