Attempting to build tuxpaint 0.9.13-r1 fails with the following error: Reproducible: Always Steps to Reproduce: 1. merge deps for tuxpaint 2. attempt to merge tuxpaint 3. Actual Results: >>> Source unpacked. ...Compiling Tux Paint from source... src/tuxpaint.c:169:2: #error "---------------------------------------------------" src/tuxpaint.c:170:2: #error "If you installed SDL_image from a package, be sure" src/tuxpaint.c:171:2: #error "to get the development package, as well!" src/tuxpaint.c:172:2: #error "(e.g., 'libsdl-image1.2-devel.rpm')" src/tuxpaint.c:173:2: #error "---------------------------------------------------" src/tuxpaint.c:178:2: #error "---------------------------------------------------" src/tuxpaint.c:179:2: #error "If you installed SDL_ttf from a package, be sure" src/tuxpaint.c:180:2: #error "to get the development package, as well!" src/tuxpaint.c:181:2: #error "(e.g., 'libsdl-ttf1.2-devel.rpm')" src/tuxpaint.c:182:2: #error "---------------------------------------------------" src/tuxpaint.c:188:2: #error "---------------------------------------------------" src/tuxpaint.c:189:2: #error "If you installed SDL_mixer from a package, be sure" src/tuxpaint.c:190:2: #error "to get the development package, as well!" src/tuxpaint.c:191:2: #error "(e.g., 'libsdl-mixer1.2-devel.rpm')" src/tuxpaint.c:192:2: #error "---------------------------------------------------" make: *** [obj/tuxpaint.o] Error 1 Expected Results: Successful build. Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20050125-r0, 2.6.10-gentoo-r7 i686) ================================================================= System uname: 2.6.10-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 3.06GHz Gentoo Base System version 1.6.9 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Feb 17 2005, 20:51:50)] distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /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/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.mirrors.pair.com/ http://mirror.clarkson.edu/pub/distributions/gentoo/" LDFLAGS="-Wl,-z,now" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X a52 aac aalib adns alsa aotuv apm arts artswrappersuid audiofile avi bash-completion berkdb bitmap-fonts bzip2 c++ caps cdparanoia cdr cle266 crypt cups curl divx4linux djbfft dmalloc dpms dts dv dvb dvd dvdread dxr3 ecc edl emboss encode esd f77 fam fame flac font-server foomaticdb fpx gcj gdbm gif gimp gnokii gnome gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml idea ieee1394 imagemagick imlib ipv6 jack jai java javascript jce jimi jms jmx jpeg jpeg2k junit kde kdeenablefinal lcms libcaca libclamav libg++ libwww live lzo mad matroska mikmod mjpeg mmap mmx mmx2 mng motif mozcalendar mozdevelop mozilla moznocompose moznoirc moznomail mozp3p mozxmlterm mpeg multicall mythtv nas ncurses network nptl nvidia offensive oggvorbis openalopengl oss pam pda pdflib perl pic png povray pvm python qt quicktime readline real rtc sambasblive scanner sdl silc slang slp sms sndfile spell sse sse2 ssl svg svga svgz tcltk tcpd tetex tga theora threads tiff truetype truetype-fonts type1-fonts userlocales v4l v4l2 vidix wifiwmf xanim xface xine xinerama xml xml2 xmms xprint xrandr xscreensaver xv xvid xvmc zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL
I had a similar failure with the following message: src/tuxpaint.c:178:2: #error "---------------------------------------------------" src/tuxpaint.c:179:2: #error "If you installed SDL_ttf from a package, be sure" src/tuxpaint.c:180:2: #error "to get the development package, as well!" src/tuxpaint.c:181:2: #error "(e.g., 'libsdl-ttf1.2-devel.rpm')" src/tuxpaint.c:182:2: #error "---------------------------------------------------" this error is due to a mismatch between a name defined in SDL_ttf.h and the name used in tuxpaint.c I solved it by adding the following two lines to the ebuild file tuxpaint-0.9.13-r1.ebuild: sed -e 's/_SDLttf_h/_SDL_TTF_H/' src/tuxpaint.c >/tmp/tuxpaint.c mv /tmp/tuxpaint.c src/tuxpaint.c I inserted them in the src_unpack() function just before the line: # Sanitize the hack that is its Makefile
That removes the ttf error, but the other two still remain. Can you recomend a way to remove those?
Created attachment 52564 [details] Proposed ebuild that solves this problems.
I made an ebuild that appears to solve this problems. Please try it. :-) Thanks.
The revised ebuild removed the TTF error, but the error for SDL_image and SDL_mixer remain. src/tuxpaint.c:169:2: #error "---------------------------------------------------" src/tuxpaint.c:170:2: #error "If you installed SDL_image from a package, be sure" src/tuxpaint.c:171:2: #error "to get the development package, as well!" src/tuxpaint.c:172:2: #error "(e.g., 'libsdl-image1.2-devel.rpm')" src/tuxpaint.c:173:2: #error "---------------------------------------------------" src/tuxpaint.c:188:2: #error "---------------------------------------------------" src/tuxpaint.c:189:2: #error "If you installed SDL_mixer from a package, be sure" src/tuxpaint.c:190:2: #error "to get the development package, as well!" src/tuxpaint.c:191:2: #error "(e.g., 'libsdl-mixer1.2-devel.rpm')" src/tuxpaint.c:192:2: #error "---------------------------------------------------" src/tuxpaint.c:169:2: #error "---------------------------------------------------" src/tuxpaint.c:170:2: #error "If you installed SDL_image from a package, be sure" src/tuxpaint.c:171:2: #error "to get the development package, as well!" src/tuxpaint.c:172:2: #error "(e.g., 'libsdl-image1.2-devel.rpm')" src/tuxpaint.c:173:2: #error "---------------------------------------------------" src/tuxpaint.c:188:2: #error "---------------------------------------------------" src/tuxpaint.c:189:2: #error "If you installed SDL_mixer from a package, be sure" src/tuxpaint.c:190:2: #error "to get the development package, as well!" src/tuxpaint.c:191:2: #error "(e.g., 'libsdl-mixer1.2-devel.rpm')" src/tuxpaint.c:192:2: #error "---------------------------------------------------" Kevin
Please, do a ls /usr/include/SDL/ and paste here the content, please. Also, please, provide the versions of SDL-image and mixer. Thanks.
The attached ebuild fixed my problems just fine. Thank you, Francisco.
The results of ls /usr/include/SDL/ are: SDL.h SDL_active.h SDL_audio.h SDL_byteorder.h SDL_cdrom.h SDL_copying.h SDL_cpuinfo.h SDL_endian.h SDL_error.h SDL_events.h SDL_getenv.h SDL_image.h SDL_joystick.h SDL_keyboard.h SDL_keysym.h SDL_loadso.h SDL_main.h SDL_mixer.h SDL_mouse.h SDL_mutex.h SDL_name.h SDL_opengl.h SDL_quit.h SDL_rwops.h SDL_syswm.h SDL_thread.h SDL_timer.h SDL_ttf.h SDL_types.h SDL_version.h SDL_video.h begin_code.h close_code.h Version of SDL-mixer media-libs/sdl-mixer (1.2.5-r1 ) Version of SDL-image media-libs/sdl-image (1.2.3-r1 ) Let me know if there is any other info that might be helpful in tracking this down. Kevin
Created attachment 52950 [details] New ebuild that appears to work. Sorry, in the previous ebuild I'd forgot not to modify files in older SDL, so this creates unexistant problems in stable archs. Please, try this ebuild and confirm if it solves the problems and/or continues compiling. Thanks.
The new ebuild works like a charm. Thanks, Kevin
Created attachment 53959 [details, diff] Diff against current ebuild in portage for developer reference.
Created attachment 53960 [details] Tuxpaint ebuild that compiles correctly. Yes, yes, I know it's not needed -r2 ;), but I think this way is easier for users until this ebuild enters portage.
Hello, Sorry for the late reply, I didn't notice this bug before, as it was incorrectly assigned. I have committed a new patch that should resolve this. Thanks for the report and all your help. Francisco: Please remember to always select the correct content-type for your attachments (e.g. text/plain for ebuilds) so Bugzilla handles them better. Thank you.