Debian Etch - compiling XBMC?
#16
Yeah and same error when I use ./build.sh NOUPDATE

Code:
...
xbmc/lib/libGoAhead/libGoAheadD-i486-linux.a(sock.o): dans la fonction « socketFree »:
src/sock.c:673: référence indéfinie vers « __stack_chk_fail »
xbmc/lib/libGoAhead/libGoAheadD-i486-linux.a(sockGen.o):src/sockGen.c:309: encore plus de références indéfinies suivent vers « __stack_chk_fail »
collect2: ld returned 1 exit status
make[1]: *** [XboxMediaCenter] Erreur 1
make[1]: quittant le répertoire « /install/XBMC/sources »
make: *** [all] Erreur 2
make: quittant le répertoire « /install/XBMC/sources »
Generating Changelog.txt
Backing up old ./BUILD to ./BUILD.bak.
  Removing old ./BUILD.bak first.
Creating ./BUILD.
Copying xbmc-xrandr

FAILED! Exiting. (1)
zou@PC-Zou:/install/XBMC/sources$

Sad
Reply
#17
Try "./configure CFLAGS=-fno-stack-protector" for both.
Reply
#18
Hi,
I'm using debian sid and xbmc is compiling fine.
I can remember some issues with libmms(-dev) some time ago, maybe you can just download and install it from testing or unstable repository, if dependencies allow.

regards
f
freaksworth is not connected to or in any other way affiliated with XBMC, Team XBMC, or the XBMC Foundation.
Reply
#19
Big errors erise when I use "make CFLAGS=-fno-stack-protector" after "./configure CFLAGS=-fno-stack-protector"

Code:
...
g++ -c -fno-stack-protector -D_LINUX -D_FILE_DEFINED -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -DHAS_SDL_JOYSTICK -DHAS_XRANDR -DHAS_MMS -DHAS_PCRE -D'SVN_REV="12743"' -I. -Ilinux -Icores -I../guilib -Iutils -Ilib/libUPnP/Platinum/ThirdParty/Neptune/Source/Core -Ilib/libUPnP/Platinum/Source/Core -Ilib/libUPnP/Platinum/Source/Devices/MediaServer -Ilib/libUPnP/Platinum/ThirdParty/Neptune/Source/System/Posix -Ilib/libUPnP/Platinum/Source/Devices/MediaConnect -Ilib/libUPnP/Platinum/Source/Devices/MediaRenderer Application.cpp -o Application.o
In file included from linux/LinuxFileSystem.h:12,
                 from Application.cpp:228:
linux/HalManager.h:28:23: error: dbus/dbus.h: Aucun fichier ou répertoire de ce type
linux/HalManager.h:29:20: error: libhal.h: Aucun fichier ou répertoire de ce type
linux/HalManager.h:101: error: ISO C++ forbids declaration of ‘DBusConnection’ with no type
linux/HalManager.h:101: error: expected ‘;’ before ‘*’ token
linux/HalManager.h:102: error: ISO C++ forbids declaration of ‘LibHalContext’ with no type
linux/HalManager.h:102: error: expected ‘;’ before ‘*’ token
linux/HalManager.h:103: error: ‘DBusError’ does not name a type
linux/HalManager.h:110: error: ISO C++ forbids declaration of ‘LibHalContext’ with no type
linux/HalManager.h:110: error: expected ‘;’ before ‘*’ token
linux/HalManager.h:119: error: ‘LibHalContext’ has not been declared
linux/HalManager.h:120: error: ‘LibHalContext’ has not been declared
linux/HalManager.h:121: error: ‘LibHalContext’ has not been declared
linux/HalManager.h:122: error: ‘LibHalContext’ has not been declared
linux/HalManager.h:122: error: ‘dbus_bool_t’ has not been declared
linux/HalManager.h:122: error: ‘dbus_bool_t’ has not been declared
linux/HalManager.h:123: error: ‘LibHalContext’ has not been declared
linux/HalManager.h:124: error: ‘LibHalContext’ has not been declared
make[1]: *** [Application.o] Erreur 1
make[1]: quittant le répertoire « /install/XBMC/sources/xbmc »
make: *** [xbmc] Erreur 2
zou@PC-Zou:/install/XBMC/sources$
Reply
#20
Looks like you don't have hal-dev and dbus-dev installed.

Please post english translations to the gcc errors. This is an english only forum.
Reply
#21
You need libhal-storage-dev aswell
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#22
I was going to try running xbmc on my debian etch box. Running xbmc as my xsession so there is not desktop running in the background.

I know it is not supported, I just need a suggestion. I have the list of dependency packaged from the readme. The package names are listed for installing on fiesty, gutsy, and hardy. Which list should I try to apt from? Any tips would also be appreciated.
Reply
#23
All lists are basically the same. The only difference should be versions in the name (but hopefully not versions with API differences). Install everything you see in the list and see what happens. There's also a list on the first page of this thread of the packages someone else tried.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#24
We *should* be checking for all of the dependencies with configure. So in the event that anything is missed, it shouldn't be to terrible to hunt down the proper package.
Reply
#25
If it's possible to do this check, I agree fully
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#26
I said *should* cause last I checked we DID do all of the checks. Completely possible that I missed something.
Reply
#27
Hi everybody,

I'm newbie in this forum, I 'm trying to compile xbmc from sources in Debian Etch, compilation goes well but linkage problems with undefined reference....

Anybody knows what to do?

Thanks, and sorry for my English.

uname -a:
Linux sendatel 2.6.24-etchnhalf.1-686 #1 SMP Mon Jul 21 11:17:43 UTC 2008 i686 GNU/Linux

make output:



make[1]: se sale del directorio `/home/user/xbmc/XBMC/xbmc/visualizations'
g++ -g -D_DEBUG -Wall -o xbmc.bin -lhal-storage -ldbus-1 -lcurl -lpcre -lXrandr -lXmu -lXt -lenca -lfaac -ljpeg -ljasper -lpng12 -lresolv -lrt -lasound -lmysqlclient -lsqlite3 -llzo -lfribidi -lbz2 -lfontconfig -lfreetype -ldl -lSDL_mixer -lSDL_image -lSDL -lvorbis -logg -ltre -lmad -lXinerama -lGLU -lGLEW -lGL guilib/*.o guilib/common/*.o guilib/tinyXML/*.o xbmc/*.o xbmc/cdrip/*.o xbmc/cores/*.o xbmc/cores/DllLoader/*.o xbmc/cores/DllLoader/exports/*.o xbmc/cores/DllLoader/exports/util/*.o xbmc/cores/dvdplayer/DVDPlayer.a xbmc/cores/paplayer/*.o xbmc/cores/VideoRenderers/*.o xbmc/cores/VideoRenderers/VideoShaders/*.o xbmc/FileSystem/*.o xbmc/FileSystem/MusicDatabaseDirectory/*.o xbmc/FileSystem/VideoDatabaseDirectory/*.o xbmc/lib/libcdio/libcdio-i486-linux.a xbmc/lib/libcmyth/*.o xbmc/lib/libGoAhead/libGoAhead-i486-linux.a xbmc/lib/libPython/*.o xbmc/lib/libPython/xbmcmodule/*.o xbmc/lib/libRTMP/*.o xbmc/lib/libRTV/librtv-i486-linux.a xbmc/lib/libscrobbler/*.o xbmc/lib/libshout/libshout-i486-linux.a xbmc/lib/libsmb/libsmbclient-i486-linux.a xbmc/lib/libUPnP/libupnp-i486-linux.a xbmc/lib/libXBMS/libxbms-i486-linux.a xbmc/lib/libXDAAP/libxdaap-i486-linux.a xbmc/lib/sqLite/*.o xbmc/lib/UnrarXLib/*.o xbmc/linux/*.o xbmc/screensavers/*.o xbmc/settings/*.o xbmc/utils/*.o xbmc/visualizations/*.o xbmc/xbox/*.o -rdynamic
xbmc/lib/libcdio/libcdio-i486-linux.a(cdtext.o): In function `cdtext_data_init':
/home/topfs/libcdio-0.80/lib/driver/cdtext.c:253: referencia a `__stack_chk_fail' sin definir
xbmc/lib/libcdio/libcdio-i486-linux.a(device.o): In function `cdio_have_atapi':
/home/topfs/libcdio-0.80/lib/driver/device.c:843: referencia a `__stack_chk_fail' sin definir
xbmc/lib/libcdio/libcdio-i486-linux.a(device.o): In function `cdio_get_devices_with_cap_ret':
/home/topfs/libcdio-0.80/lib/driver/device.c:651: referencia a `__stack_chk_fail' sin definir
xbmc/lib/libcdio/libcdio-i486-linux.a(gnu_linux.o): In function `run_mmc_cmd_linux':
/home/topfs/libcdio-0.80/lib/driver/gnu_linux.c:1256: referencia a `__stack_chk_fail' sin definir
xbmc/lib/libcdio/libcdio-i486-linux.a(gnu_linux.o): In function `_read_mode2_sector_linux':
/home/topfs/libcdio-0.80/lib/driver/gnu_linux.c:1104: referencia a `__stack_chk_fail' sin definir
xbmc/lib/libcdio/libcdio-i486-linux.a(gnu_linux.o):/home/topfs/libcdio-0.80/lib/driver/gnu_linux.c:502: más referencias a `__stack_chk_fail' sin definir a continuación
xbmc/lib/sqLite/sqlitedataset.o: In function `dbiplus::SqliteDataset::query(char const*)':
/home/user/xbmc/XBMC/xbmc/lib/sqLite/sqlitedataset.cpp:439: referencia a `sqlite3_prepare_v2' sin definir
collect2: ld returned 1 exit status
make: *** [xbmc.bin] Error 1
Reply
#28
You need to compile everything with -fno-stack-protector. A quick google would have turned this up.
Reply
#29
Star 
allthekiller: I'm afraid it's not so easy for me...

which Makefile should I modify?
*"CFLAGS=-fno-stack-protector" in root directory Makefile doesn't work...

*this do not work either. (root directory Makefile)
xbmc.bin: compile $(wildcard $(OBJS) $(LIBS))
g++ -fno-stack-protector $(DEBUG_FLAGS) -o xbmc.bin $(OBJS) $(LIBS) -rdynamic

xbmc-xrandr: xbmc-xrandr.c
gcc -fno-stack-protector -g -o xbmc-xrandr xbmc-xrandr.c -lXrandr -lXrender -lX11

*and when we will solve things about stack-protector we have to deal with sqlite3_prepare_v2 (google says something about older versions in etch...)
xbmc/lib/sqLite/sqlitedataset.o: In function `dbiplus::SqliteDataset::query(char const*)':
/home/user/xbmc/XBMC/xbmc/lib/sqLite/sqlitedataset.cpp:439: referencia a `sqlite3_prepare_v2' sin definir

*I haven't got it yet. No progress at all.
Reply
#30
Hmm, everything = libcdio. So in configure.in add CFLAGS=-fnostack-protector to the line where libcdio is configured, then run autoconf and finally reconfigure and build. As far as the sql stuff goes you're going to have to figure out when that function was added/removed and build a proper version of the library. If you can't handle this stuff on you're own, I'm going to have to suggest that you switch to a better supported distro.
Reply

Logout Mark Read Team Forum Stats Members Help
Debian Etch - compiling XBMC?0