[Splashy-devel] Static vs dynamic linking

Eric Moret eric.moret at gmail.com
Thu Jan 18 01:18:05 CET 2007


> The next release won't. So maybe your problems will go away
> automatically.

I retrieve splashy/trunk from svn, removed all static libraries local to my
system and rebuilt splashy. Below are the errors I am getting. I did the
same rebuild with static libs and I did not have those errors. Is there
anything I should be doing differently for splashy to use dynamic libraries
or is this a known issue in svn current?

gcc -g -O2 -Wall -Werror -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -o splashy
-all_load -Wl,-udirectfb_fbdev -Wl,-udirectfbwm_default
-Wl,-uIDirectFBFont_Default -Wl,-uIDirectFBFont_FT2
-Wl,-uIDirectFBImageProvider_GIF -Wl,-uIDirectFBImageProvider_PNG
-Wl,-uIDirectFBImageProvider_JPEG -Wl,-udirectfb_keyboard
-Wl,-udirectfb_ati128 -Wl,-udirectfb_cyber5k -Wl,-udirectfb_i810
-Wl,-udirectfb_i830 -Wl,-udirectfb_mach64 -Wl,-udirectfb_neomagic
-Wl,-udirectfb_nsc -Wl,-udirectfb_radeon -Wl,-udirectfb_savage
-Wl,-udirectfb_sis315 -Wl,-udirectfb_tdfx splashy-splashy_main.o
splashy-splashy_functions.o splashy-xml_parser.o splashy-xml_config.o
splashy-splashy_video.o splashy-common_functions.o  -lgcc_s -lpthread -lm
-lc /lib/libglib-2.0.a  
splashy-splashy_functions.o: In function `keyevent_loop':
/homes/emoret/rpmbuild/BUILD/splashy-0.2.2/src/splashy_functions.c:1032:
undefined reference to `DirectFBErrorFatal'
splashy-splashy_functions.o: In function `_splashy_child':
/homes/emoret/rpmbuild/BUILD/splashy-0.2.2/src/splashy_functions.c:1263:
undefined reference to `DirectFBErrorFatal'
/homes/emoret/rpmbuild/BUILD/splashy-0.2.2/src/splashy_functions.c:1257:
undefined reference to `DirectFBErrorFatal'
splashy-splashy_video.o: In function `video_start_splash':
/homes/emoret/rpmbuild/BUILD/splashy-0.2.2/src/splashy_video.c:713:
undefined reference to `DirectFBInit'
/homes/emoret/rpmbuild/BUILD/splashy-0.2.2/src/splashy_video.c:714:
undefined reference to `DirectFBSetOption'
/homes/emoret/rpmbuild/BUILD/splashy-0.2.2/src/splashy_video.c:715:
undefined reference to `DirectFBSetOption'
/homes/emoret/rpmbuild/BUILD/splashy-0.2.2/src/splashy_video.c:716:
undefined reference to `DirectFBSetOption'
/homes/emoret/rpmbuild/BUILD/splashy-0.2.2/src/splashy_video.c:717:
undefined reference to `DirectFBSetOption'
/homes/emoret/rpmbuild/BUILD/splashy-0.2.2/src/splashy_video.c:719:
undefined reference to `DirectFBSetOption'
/homes/emoret/rpmbuild/BUILD/splashy-0.2.2/src/splashy_video.c:725:
undefined reference to `DirectFBCreate'
/homes/emoret/rpmbuild/BUILD/splashy-0.2.2/src/splashy_video.c:740:
undefined reference to `DirectFBErrorFatal'
/homes/emoret/rpmbuild/BUILD/splashy-0.2.2/src/splashy_video.c:725:
undefined reference to `DirectFBErrorFatal'
/homes/emoret/rpmbuild/BUILD/splashy-0.2.2/src/splashy_video.c:713:
undefined reference to `DirectFBErrorFatal'
/homes/emoret/rpmbuild/BUILD/splashy-0.2.2/src/splashy_video.c:754:
undefined reference to `DirectFBErrorFatal'
/homes/emoret/rpmbuild/BUILD/splashy-0.2.2/src/splashy_video.c:742:
undefined reference to `DirectFBErrorFatal'
splashy-splashy_video.o:/homes/emoret/rpmbuild/BUILD/splashy-0.2.2/src/splas
hy_video.c:784: more undefined references to `DirectFBErrorFatal' follow
collect2: ld returned 1 exit status
make[2]: *** [splashy] Error 1
make[2]: Leaving directory `/homes/emoret/rpmbuild/BUILD/splashy-0.2.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/homes/emoret/rpmbuild/BUILD/splashy-0.2.2'
make: *** [all] Error 2




More information about the Splashy-devel mailing list