I can't seem to emerge app-games/prboom-2.2.3 - it can't seem to find various functions: gcc -DHAVE_CONFIG_H -I. -I. -I.. -mcpu=i686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c p_ceilng.c686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c v_video.ci686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c doomdef.ci686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c p_doors.ci686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c p_enemy.ci686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c r_bsp.c gl_struct.h:41: warning: `enum patch_translation_e' declared inside parameter list gl_struct.h:41: warning: its scope is only this definition or declaration, which is probably not what you want. gl_struct.h:41: warning: parameter has incomplete type gl_struct.h:42: warning: `enum patch_translation_e' declared inside parameter list gl_struct.h:42: warning: parameter has incomplete type gcc -DHAVE_CONFIG_H -I. -I. -I.. -mcpu=i686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c version.ci686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c doomstat.c686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c p_floor.ci686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c r_data.c=i686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c w_wad.cu=i686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c p_genlin.c686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c dstrings.c686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c p_inter.ci686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c wi_stuff.c686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c r_draw.c=i686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c f_finale.c686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c p_lights.c686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c z_bmalloc.c86 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c p_map.cu=i686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c r_main.c=i686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c f_wipe.c=i686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c z_zone.c=i686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c p_maputl.c686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c r_plane.ci686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c d_client.c686 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c i_udp_sdl.c86 -O3 -pipe -Wall -Winline -Wwrite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -c d_server.crite-strings -ffast-math -O2 -fomit-frame-pointer -mcpu=i686 -march=i686 -I../src -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -L/usr/X11R6/lib -o prboom mmus2mid.o am_map.o g_game.o p_mobj.o r_segs.o hu_lib.o lprintf.o p_plats.o r_sky.o d_deh.o hu_stuff.o m_argv.o p_pspr.o m_bbox.o p_saveg.o r_things.o d_items.o m_cheat.o p_setup.o s_sound.o d_main.o p_sight.o sounds.o m_menu.o p_spec.o info.o st_lib.o m_misc.o p_switch.o p_telept.o st_stuff.o m_random.o p_tick.o i_main.o tables.o p_user.o p_ceilng.o v_video. o doomdef.o p_doors.o p_enemy.o r_bsp.o version.o doomstat.o p_floor.o r_data.o w_wad.o p_genlin.o dstrings.o p_inter.o wi_stuff.o r_draw.o f_finale.o p_lights.o z_bmalloc.o p_map.o r_main.o f_wipe.o z_zone.o p_maputl.o r_plane.o d_client.o i_udp_sdl.o SDL/libsdldoom.a -lsmpeg -lSDL_mixer -lSDL_net -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lGL -lGLU -lm ld_DrawNumPatch' am_map.o(.text+0x1fd1): In function `AM_Drawer': : undefined reference to `gld_FillBlock' am_map.o(.text+0x204d): In function `AM_Drawer': : undefined reference to `gld_DrawLine' am_map.o(.text+0x2082): In function `AM_Drawer': : undefined reference to `gld_DrawLine' r_segs.o(.text+0x8f4): In function `R_StoreWallRange': : undefined reference to `gld_AddWall' hu_lib.o(.text+0x1db): In function `HUlib_drawTextLine': : undefined reference to `gld_DrawNumPatch' hu_lib.o(.text+0x242): In function `HUlib_drawTextLine': : undefined reference to `gld_DrawNumPatch' hu_lib.o(.text+0x75e): In function `HUlib_drawMBg': : undefined reference to `gld_DrawNumPatch' hu_lib.o(.text+0x792): In function `HUlib_drawMBg': : undefined reference to `gld_DrawNumPatch' hu_lib.o(.text+0x7b1): In function `HUlib_drawMBg': : undefined reference to `gld_DrawNumPatch' hu_lib.o(.text+0x806): more undefined references to `gld_DrawNumPatch' follow r_things.o(.text+0xa94): In function `R_ProjectSprite': : undefined reference to `gld_AddSprite' r_things.o(.text+0xd25): In function `R_DrawPSprite': : undefined reference to `gld_DrawWeapon' p_setup.o(.text+0x23e9): In function `P_SetupLevel': : undefined reference to `gld_CleanMemory' p_setup.o(.text+0x267d): In function `P_SetupLevel': : undefined reference to `gld_PreprocessLevel' d_main.o(.text+0x355): In function `D_Display': : undefined reference to `gld_DrawNumPatch' d_main.o(.text+0x4b5): In function `D_PageDrawer': : undefined reference to `gld_DrawNumPatch' d_main.o(.text+0x2057): In function `D_DoomMainSetup': : undefined reference to `gld_InitCommandLine' m_menu.o(.text+0x98): In function `M_DrawMainMenu': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x137): In function `M_DrawReadThis1': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x18d): In function `M_DrawReadThis2': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x1b8): In function `M_DrawEpisode': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x258): In function `M_DrawNewGame': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x27c): more undefined references to `gld_DrawNumPatch' follow m_menu.o(.text+0x1332): In function `M_DrawSetting': : undefined reference to `gld_DrawPatchFromMem' m_menu.o(.text+0x1365): In function `M_DrawSetting': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x14e0): In function `M_DrawSetting': : undefined reference to `gld_FillBlock' m_menu.o(.text+0x164c): In function `M_DrawDefVerify': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x1886): In function `M_DrawKeybnd': : undefined reference to `gld_DrawBackground' m_menu.o(.text+0x18a7): In function `M_DrawKeybnd': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x1996): In function `M_DrawWeapons': : undefined reference to `gld_DrawBackground' m_menu.o(.text+0x19b7): In function `M_DrawWeapons': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x1aa6): In function `M_DrawStatusHUD': : undefined reference to `gld_DrawBackground' m_menu.o(.text+0x1ac7): In function `M_DrawStatusHUD': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x1be3): In function `M_DrawColPal': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x1c22): In function `M_DrawColPal': : undefined reference to `gld_DrawPatchFromMem' m_menu.o(.text+0x1c4a): In function `M_DrawAutoMap': : undefined reference to `gld_DrawBackground' m_menu.o(.text+0x1c6b): In function `M_DrawAutoMap': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x1d6e): In function `M_DrawEnemy': : undefined reference to `gld_DrawBackground' m_menu.o(.text+0x1d8f): In function `M_DrawEnemy': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x1ebe): In function `M_DrawGeneral': : undefined reference to `gld_DrawBackground' m_menu.o(.text+0x1edf): In function `M_DrawGeneral': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x1fce): In function `M_DrawCompat': : undefined reference to `gld_DrawBackground' m_menu.o(.text+0x1fef): In function `M_DrawCompat': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x20de): In function `M_DrawMessages': : undefined reference to `gld_DrawBackground' m_menu.o(.text+0x20ff): In function `M_DrawMessages': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x21ee): In function `M_DrawChatStrings': : undefined reference to `gld_DrawBackground' m_menu.o(.text+0x220f): In function `M_DrawChatStrings': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x25b7): In function `M_DrawExtHelp': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x29c0): In function `M_DrawMenuString': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x2a46): In function `M_DrawHelp': : undefined reference to `gld_DrawBackground' m_menu.o(.text+0x2a86): In function `M_DrawCredits': : undefined reference to `gld_DrawBackground' m_menu.o(.text+0x2aa7): In function `M_DrawCredits': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x42e4): In function `M_Drawer': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x4333): In function `M_Drawer': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x4448): In function `M_DrawThermo': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x4480): In function `M_DrawThermo': : undefined reference to `gld_DrawNumPatch' m_menu.o(.text+0x44b0): more undefined references to `gld_DrawNumPatch' follow m_misc.o(.text+0x80a): In function `M_DoScreenShot': : undefined reference to `gld_ReadScreen' m_misc.o(.data+0xd44): undefined reference to `gl_nearclip' m_misc.o(.data+0xd70): undefined reference to `gl_farclip' m_misc.o(.data+0xdf8): undefined reference to `gl_tex_filter_string' m_misc.o(.data+0xe24): undefined reference to `gl_tex_format_string' m_misc.o(.data+0xe4c): undefined reference to `gl_drawskys' m_misc.o(.data+0xe78): undefined reference to `gl_sortsprites' m_misc.o(.data+0xea4): undefined reference to `gl_use_paletted_texture' m_misc.o(.data+0xed0): undefined reference to `gl_use_shared_texture_palette' st_stuff.o(.text+0x2c): In function `ST_refreshBackground': : undefined reference to `gld_DrawNumPatch' st_stuff.o(.text+0x6f): In function `ST_refreshBackground': : undefined reference to `gld_DrawNumPatch' v_video.o(.text+0x118): In function `V_SetPalette': : undefined reference to `gld_SetPalette' r_bsp.o(.text+0x722): In function `R_AddLine': : undefined reference to `gld_AddWall' r_bsp.o(.text+0xbfa): In function `R_Subsector': : undefined reference to `gld_AddPlane' wi_stuff.o(.text+0xa3): In function `WI_slamBackground': : undefined reference to `gld_DrawNumPatch' wi_stuff.o(.text+0x10b): In function `WI_drawLF': : undefined reference to `gld_DrawNumPatch' wi_stuff.o(.text+0x163): In function `WI_drawLF': : undefined reference to `gld_DrawNumPatch' wi_stuff.o(.text+0x1d0): In function `WI_drawEL': : undefined reference to `gld_DrawNumPatch' wi_stuff.o(.text+0x220): In function `WI_drawEL': : undefined reference to `gld_DrawNumPatch' wi_stuff.o(.text+0x33d): more undefined references to `gld_DrawNumPatch' follow wi_stuff.o(.text+0x5c2): In function `WI_drawAnimatedBack': : undefined reference to `gld_DrawPatchFromMem' wi_stuff.o(.text+0x68b): In function `WI_drawNum': : undefined reference to `gld_DrawPatchFromMem' wi_stuff.o(.text+0x6bf): In function `WI_drawNum': : undefined reference to `gld_DrawNumPatch' wi_stuff.o(.text+0x701): In function `WI_drawPercent': : undefined reference to `gld_DrawNumPatch' wi_stuff.o(.text+0x7c1): In function `WI_drawTime': : undefined reference to `gld_DrawNumPatch' wi_stuff.o(.text+0x7fd): In function `WI_drawTime': : undefined reference to `gld_DrawNumPatch' wi_stuff.o(.text+0x88d): In function `WI_drawTimeStats': : undefined reference to `gld_DrawNumPatch' wi_stuff.o(.text+0x8c7): more undefined references to `gld_DrawNumPatch' follow r_draw.o(.text+0x68e): In function `R_FillBackScreen': : undefined reference to `gld_DrawBackground' r_draw.o(.text+0x6cb): In function `R_FillBackScreen': : undefined reference to `gld_DrawNumPatch' r_draw.o(.text+0x715): In function `R_FillBackScreen': : undefined reference to `gld_DrawNumPatch' r_draw.o(.text+0x75c): In function `R_FillBackScreen': : undefined reference to `gld_DrawNumPatch' r_draw.o(.text+0x7a6): In function `R_FillBackScreen': : undefined reference to `gld_DrawNumPatch' r_draw.o(.text+0x7e3): In function `R_FillBackScreen': : undefined reference to `gld_DrawNumPatch' r_draw.o(.text+0x818): more undefined references to `gld_DrawNumPatch' follow f_finale.o(.text+0x4c1): In function `F_TextWrite': : undefined reference to `gld_DrawBackground' f_finale.o(.text+0x591): In function `F_TextWrite': : undefined reference to `gld_DrawNumPatch' f_finale.o(.text+0xbe8): In function `F_CastPrint': : undefined reference to `gld_DrawNumPatch' f_finale.o(.text+0xc2a): In function `F_CastDrawer': : undefined reference to `gld_DrawNumPatch' f_finale.o(.text+0xca3): In function `F_CastDrawer': : undefined reference to `gld_DrawNumPatch' f_finale.o(.text+0xd40): In function `F_BunnyScroll': : undefined reference to `gld_DrawNumPatch' f_finale.o(.text+0xd65): more undefined references to `gld_DrawNumPatch' follow r_main.o(.text+0xcb6): In function `R_RenderPlayerView': : undefined reference to `gld_InitDrawScene' r_main.o(.text+0xcbb): In function `R_RenderPlayerView': : undefined reference to `gld_StartDrawScene' r_main.o(.text+0xcea): In function `R_RenderPlayerView': : undefined reference to `gld_DrawScene' r_main.o(.text+0xcef): In function `R_RenderPlayerView': : undefined reference to `gld_EndDrawScene' SDL/libsdldoom.a(i_video.o)(.text+0x3dd): In function `I_FinishUpdate': : undefined reference to `gld_Finish' SDL/libsdldoom.a(i_video.o)(.text+0x8ac): In function `I_UpdateVideoMode': : undefined reference to `gld_Init' collect2: ld returned 1 exit status make[3]: *** [prboom] Error 1 make[3]: Leaving directory `/var/tmp/portage/prboom-2.2.3/work/prboom-2.2.3/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/prboom-2.2.3/work/prboom-2.2.3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/prboom-2.2.3/work/prboom-2.2.3' make: *** [all-recursive-am] Error 2 !!! ERROR: app-games/prboom-2.2.3 failed. !!! Function src_compile, Line 34, Exitcode 2 !!! (no error message) Calculating dependencies ...done! >>> emerge (1 of 1) app-games/prboom-2.2.3 to / >>> md5 src_uri ;-) prboom-2.2.3.tar.gz >>> md5 src_uri ;-) doom1.wad.gz Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.49-r3 (default-1.0, gcc-2.95.3, glibc-2.2.5-r8, 2.4.22) ============================================================== === System uname: 2.4.22 i686 Transmeta(tm) Crusoe(tm) Processor TM5800 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=i686 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=i686 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache autoaddcvs digest sandbox strict" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio. org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 apm avi crypt cups encode libg++ mmx mpeg ncurses pdflib quicktime spell truetype xml2 xmms xv aalib berkdb esd gdbm gif gnome-libs gpm gtk imlib java libwww motif oggvorbis pam python readline sdl snmp ssl svga tcpd -3dnow alsa apache2 -arts bonobo cdr curses dga dvd emacs ethereal evo fbcon gnome gtk2 gtkhtml guile jpeg -kde lcms -lirc -mikmod -moznoxft mysql nas -nls odbc -opengl oss pcmcia pda perl pic plotutils png pnp -qt -qtmt samba skey -slang smooth tcltk tetex tiff trusted usb vim-with-x xml X X509 zlib"
alrighty, i fixed it in cvs ... basically the configure script would enable GL_DOOM (the C define to add GL functions) regardless of whether you said --enable-gl or --disable-gl ... the only difference is that --disable-gl wouldnt add the opengl libraries at link time :) i added a patch to remove GL_DOOM if user has -opengl