Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 205919 - media-gfx/splashutils-1.5.3.3 does not compile. error in ebuild
Summary: media-gfx/splashutils-1.5.3.3 does not compile. error in ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Michal Januszewski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-15 08:50 UTC by Robert Piasek (RETIRED)
Modified: 2008-01-15 15:50 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Piasek (RETIRED) gentoo-dev 2008-01-15 08:50:43 UTC
make -j4 -j1
/usr/bin/make --silent all-recursive
Making all in libs
  CONF    libjpeg.a
  MAKE    libjpeg.a
  CONF    libz.a
  MAKE    zlib.a
  CONF    libpng.a
  MAKE    libpng.a
  CONF    libfreetype.a
  MAKE    libfreetype.a
Making all in src
  CREATE  fbsplash.h
Making all in .
In file included from common.h:4,
                 from mng_callbacks.c:15:
../config.h:51:1: warning: "HAVE_STDLIB_H" redefined
In file included from /usr/include/jpeglib.h:28,
                 from /usr/include/libmng_types.h:197,
                 from /usr/include/libmng.h:386,
                 from mng_callbacks.c:12:
/usr/include/jconfig.h:12:1: warning: this is the location of the previous definition
In file included from common.h:4,
                 from mng_render.c:17:
../config.h:51:1: warning: "HAVE_STDLIB_H" redefined
In file included from /usr/include/jpeglib.h:28,
                 from /usr/include/libmng_types.h:197,
                 from /usr/include/libmng.h:386,
                 from mng_render.c:15:
/usr/include/jconfig.h:12:1: warning: this is the location of the previous definition
  CC      fbcondecor_helper-kernel.o
  CC      fbcondecor_helper-libfbsplash.o
  CC      fbcondecor_helper-libfbsplashrender.o
  CC      fbcondecor_helper-fbcon_decor.o
  CC      fbcondecor_helper-common.o
  CC      fbcondecor_helper-parse.o
  CC      fbcondecor_helper-list.o
  CC      fbcondecor_helper-render.o
  CC      fbcondecor_helper-image.o
  CC      fbcondecor_helper-effects.o
  CC      fbcondecor_helper-ttf.o
  LD      fbcondecor_helper
Making all in test
Making all in docs
Making all in misc
Making all in scripts
  CREATE  libfbsplash.pc
  CREATE  libfbsplashrender.pc
make -j4 LIB=lib64
cc -march=nocona -Os -pipe -g -Wall -I../core/objs -I../core -fPIC -c -o splash.o splash.c
splash.c:27:22: error: fbsplash.h: No such file or directory
splash.c:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
splash.c:141: error: expected ')' before '*' token
splash.c: In function 'splash_theme_hook':
splash.c:269: warning: implicit declaration of function 'fbsplash_profile'
splash.c:274: error: 'config' undeclared (first use in this function)
splash.c:274: error: (Each undeclared identifier is reported only once
splash.c:274: error: for each function it appears in.)
splash.c: In function 'splash_svc_state':
splash.c:296: warning: implicit declaration of function 'fbsplash_send'
splash.c: In function 'splash_init_res':
splash.c:323: warning: implicit declaration of function 'fbsplash_get_res'
splash.c:323: error: 'config' undeclared (first use in this function)
splash.c: In function 'splash_init':
splash.c:336: error: 'config' undeclared (first use in this function)
splash.c:336: error: 'FBSPL_VERB_QUIET' undeclared (first use in this function)
splash.c:337: warning: implicit declaration of function 'fbsplash_check_daemon'
splash.c:338: error: 'FBSPL_VERB_NORMAL' undeclared (first use in this function)
splash.c:349: error: 'FBSPLASH_CACHEDIR' undeclared (first use in this function)
splash.c:349: error: expected ')' before string constant
splash.c:369: error: expected ')' before string constant
splash.c: In function 'splash_svc_handle':
splash.c:410: error: 'config' undeclared (first use in this function)
splash.c:410: error: 'FBSPL_PROGRESS_MAX' undeclared (first use in this function)
splash.c: In function 'splash_svcs_start':
splash.c:431: error: 'FBSPLASH_CACHEDIR' undeclared (first use in this function)
splash.c:431: error: expected ')' before string constant
splash.c:431: error: too few arguments to function 'fopen'
splash.c:433: error: expected ')' before string constant
splash.c:433: warning: too few arguments for format
splash.c: In function 'splash_svcs_stop':
splash.c:492: error: 'FBSPLASH_CACHEDIR' undeclared (first use in this function)
splash.c:492: error: expected ')' before string constant
splash.c:492: error: too few arguments to function 'fopen'
splash.c:494: error: expected ')' before string constant
splash.c:494: warning: too few arguments for format
splash.c: In function 'splash_start':
splash.c:534: warning: implicit declaration of function 'fbsplash_cache_prep'
splash.c:549: warning: implicit declaration of function 'fbsplash_check_sanity'
splash.c:553: error: expected ')' before 'FBSPLASH_DAEMON'
splash.c:559: warning: too few arguments for format
splash.c:559: warning: too few arguments for format
splash.c:576: warning: implicit declaration of function 'fbsplash_set_evdev'
splash.c:577: error: 'config' undeclared (first use in this function)
splash.c: In function 'splash_stop':
splash.c:607: warning: implicit declaration of function 'fbsplash_is_silent'
splash.c:608: warning: implicit declaration of function 'fbsplash_set_verbose'
splash.c:613: warning: implicit declaration of function 'fbsplash_cache_cleanup'
splash.c: In function 'rc_plugin_hook':
splash.c:622: error: 'fbspl_type_t' undeclared (first use in this function)
splash.c:622: error: expected ';' before 'type'
splash.c:629: error: 'type' undeclared (first use in this function)
splash.c:629: error: 'fbspl_reboot' undeclared (first use in this function)
splash.c:631: error: 'fbspl_shutdown' undeclared (first use in this function)
splash.c:680: error: 'config' undeclared (first use in this function)
splash.c:681: warning: implicit declaration of function 'fbsplash_lib_init'
splash.c:682: warning: implicit declaration of function 'splash_config_gentoo'
splash.c:683: warning: implicit declaration of function 'fbsplash_parse_kcmdline'
splash.c:693: error: 'FBSPL_MODE_SILENT' undeclared (first use in this function)
splash.c:717: warning: implicit declaration of function 'fbsplash_lib_cleanup'
splash.c:726: error: 'FBSPL_VERB_QUIET' undeclared (first use in this function)
splash.c:728: error: 'FBSPL_VERB_NORMAL' undeclared (first use in this function)
splash.c:734: error: 'FBSPL_PROGRESS_MAX' undeclared (first use in this function)
splash.c:861: error: 'FBSPLASH_CACHEDIR' undeclared (first use in this function)
make: *** [splash.o] Error 1

!!! ERROR in media-gfx/splashutils-1.5.3.3:
!!! In src_compile at line 3303
!!! failed to build the splash plugin

!!! Call stack:
!!!    * src_compile (/var/tmp/paludis/media-gfx/splashutils-1.5.3.3/temp/loadsaveenv:3303)
!!!    * ebuild_f_compile (/usr/libexec/paludis/0/src_compile.bash:51)
!!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:479)
!!!    * main (/usr/libexec/paludis/ebuild.bash:497)

diefunc: making ebuild PID 11705 exit with error
die trap: exiting with error.

Install error:
  * In program paludis -i splashutils:
  * When performing install action from command line:
  * When executing install task:
  * When installing 'media-gfx/splashutils-1.5.3.3:0::gentoo':
  * Install error: Install failed for 'media-gfx/splashutils-1.5.3.3:0::gentoo'



Resume command: paludis --log-level qa --install --add-to-world-spec '( media-gfx/splashutils )' --dl-deps-default discard '=media-gfx/splashutils-1.5.3.3:0::gentoo'



Reproducible: Always

Steps to Reproduce:
1.emerge splashutils
2.
3.




if you have the line:

cc -march=nocona -Os -pipe -g -Wall -I../core/objs -I../core -fPIC -c -o splash.o splash.c

to 

cc -march=nocona -Os -pipe -g -Wall -I../core/objs -I../core/src -fPIC -c -o splash.o splash.c

it compile just fine
+
Comment 1 Robert Piasek (RETIRED) gentoo-dev 2008-01-15 08:55:52 UTC
correcting the ebuild by changing the line:

        ln -sf "${S}" "${WORKDIR}/core"

to

        ln -sf "${S}/src" "${WORKDIR}/core"

makes it compile

Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-01-15 09:11:35 UTC
Erm... compiles just fine here.
Comment 3 Robert Piasek (RETIRED) gentoo-dev 2008-01-15 09:21:18 UTC
(In reply to comment #2)
> Erm... compiles just fine here.
> 

Jakub can you confirm it's including -I../core/objs -I../core on your pc?
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2008-01-15 11:34:55 UTC
[ebuild   R   ] media-gfx/splashutils-1.5.3.3  USE="fbcondecor gpm -hardened mng png truetype" 0 kB 

<snip>
  CREATE  libfbsplash.pc
  CREATE  libfbsplashrender.pc
cc -march=athlon-xp -O2 -pipe -fomit-frame-pointer -fforce-addr -g -Wall -I../core/objs -I../core -fPIC -c -o splash.o splash.c
cc -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,--hash-style=gnu -L../core/objs/.libs -L../core/.libs -fPIC -shared -Wl,-soname,splash.so splash.o -o splash.so -leinfo -lrc -lfbsplash
>>> Source compiled.
>>> Test phase [not enabled]: media-gfx/splashutils-1.5.3.3
</snip>
Comment 5 Michal Januszewski (RETIRED) gentoo-dev 2008-01-15 15:50:41 UTC
Fixed in CVS. Thanks!