XBMC 12.2 installation problem - Oracle JDK installation

You have a problem with Salix? Post here and we'll do what we can to help.
rrttdd
Posts: 26
Joined: 28. Nov 2012, 18:49

XBMC 12.2 installation problem - Oracle JDK installation

Post by rrttdd »

Hi,
I try to install XBMC 12.2 on Salix Ratpoison 14.1, but I have the problem, that Sourcery stops the installation due to a missing library called "main in -lyajl".

My problem is that I have no clue where I can find this library and how to install it. Before that error, Sourcery complained about missing "cmake" and "boost C++" libraries. But this was not a problem because I could find these libs in the default Gslapt Salix repositories...

Coud it be possible that this library is a part of Python?
[spoiler]

Code: Select all

cp -f .libs/libmythtvcmyth-addon.so XBMC_MythTV_cmyth.pvr
strip -x XBMC_MythTV_cmyth.pvr
copying pvr-addons to xbmc/addons
rm -rf ../../../addons/pvr.mythtv.cmyth
cp -r -p -f /usr/src/slapt-src/multimedia/xbmc/xbmc-12.2/xbmc-pvr-addons-12.0-Frodo/addons/pvr.mythtv.cmyth/addon ../../../addons/pvr.mythtv.cmyth
cp -f -p XBMC_MythTV_cmyth.pvr ../../../addons/pvr.mythtv.cmyth
make[2]: Leaving directory `/usr/src/slapt-src/multimedia/xbmc/xbmc-12.2/xbmc-pvr-addons-12.0-Frodo/addons/pvr.mythtv.cmyth'
make[2]: Entering directory `/usr/src/slapt-src/multimedia/xbmc/xbmc-12.2/xbmc-pvr-addons-12.0-Frodo/addons'
make[2]: Für das Ziel »all-am« ist nichts zu tun.
make[2]: Leaving directory `/usr/src/slapt-src/multimedia/xbmc/xbmc-12.2/xbmc-pvr-addons-12.0-Frodo/addons'
make[1]: Leaving directory `/usr/src/slapt-src/multimedia/xbmc/xbmc-12.2/xbmc-pvr-addons-12.0-Frodo/addons'
make[1]: Entering directory `/usr/src/slapt-src/multimedia/xbmc/xbmc-12.2/xbmc-pvr-addons-12.0-Frodo'
make[1]: Für das Ziel »all-am« ist nichts zu tun.
make[1]: Leaving directory `/usr/src/slapt-src/multimedia/xbmc/xbmc-12.2/xbmc-pvr-addons-12.0-Frodo'
checking for a BSD-compatible install... /bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-slackware-linux-gnu
checking host system type... x86_64-slackware-linux-gnu
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... none
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... none
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/x86_64-slackware-linux/bin/ld
checking if the linker (/usr/x86_64-slackware-linux/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/x86_64-slackware-linux/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) none
checking how to run the C++ preprocessor... g++ -E
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ld used by g++... /usr/x86_64-slackware-linux/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for gawk... (cached) gawk
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for working alloca.h... yes
checking for alloca... yes
checking for uid_t in sys/types.h... yes
checking for unistd.h... (cached) yes
checking for working chown... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking whether closedir returns void... no
checking for error_at_line... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking whether gcc needs -traditional... no
checking whether lstat correctly handles trailing slash... yes
checking whether lstat accepts an empty string... no
checking whether lstat correctly handles trailing slash... (cached) yes
checking for working memcmp... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for sys/param.h... yes
checking for utime.h... yes
checking for alarm... yes
checking for working mktime... yes
checking for getpagesize... yes
checking for working mmap... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking return type of signal handlers... void
checking whether stat accepts an empty string... no
checking for working strcoll... yes
checking for strftime... yes
checking for working strtod... yes
checking whether utime accepts a null argument... yes
checking for vprintf... yes
checking for _doprnt... no
checking for atexit... yes
checking for dup2... yes
checking for fdatasync... yes
checking for floor... no
checking for fs_stat_dev... no
checking for ftime... yes
checking for ftruncate... yes
checking for getcwd... yes
checking for gethostbyaddr... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for getpagesize... (cached) yes
checking for getpass... yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for lchown... yes
checking for localeconv... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for modf... yes
checking for munmap... yes
checking for pow... no
checking for rmdir... yes
checking for select... yes
checking for setenv... yes
checking for setlocale... yes
checking for socket... yes
checking for sqrt... no
checking for strcasecmp... yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strpbrk... yes
checking for strrchr... yes
checking for strspn... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
checking for sysinfo... yes
checking for tzset... yes
checking for utime... yes
checking size of int... 4
checking size of size_t... 8
checking for __sync_add_and_fetch(temp, 1)... yes
checking for __sync_sub_and_fetch(temp, 1)... yes
checking for __sync_val_compare_and_swap(temp, 1, 1)... yes
checking sys/inotify.h usability... yes
checking sys/inotify.h presence... yes
checking for sys/inotify.h... yes
checking boost/shared_ptr.hpp usability... yes
checking boost/shared_ptr.hpp presence... yes
checking for boost/shared_ptr.hpp... yes
checking for python... /usr/bin/python
checking for a version of Python >= '2.1.0'... yes
checking for a version of Python >= 2.4... yes
checking for the distutils Python package... yes
checking for Python include path... -I/usr/include/python2.7
checking for Python library path... -L/usr/lib64 -lpython2.7
checking for Python site-packages path... /usr/lib64/python2.7/site-packages
checking python extra libraries...  -lpthread -ldl  -lutil
checking python extra linking flags... -Xlinker -export-dynamic
checking consistency of all components of python development environment... yes
configure: Using Python 2.7
checking for main in -lGL... yes
checking for main in -lGLEW... yes
checking for main in -lGLU... yes
checking for mysql_config... /usr/bin/mysql_config
checking ass/ass.h usability... yes
checking ass/ass.h presence... yes
checking for ass/ass.h... yes
checking mpeg2dec/mpeg2.h usability... yes
checking mpeg2dec/mpeg2.h presence... yes
checking for mpeg2dec/mpeg2.h... yes
checking for mpeg2dec/mpeg2convert.h... yes
checking mad.h usability... yes
checking mad.h presence... yes
checking for mad.h... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking samplerate.h usability... yes
checking samplerate.h presence... yes
checking for samplerate.h... yes
checking ogg/ogg.h usability... yes
checking ogg/ogg.h presence... yes
checking for ogg/ogg.h... yes
checking vorbis/vorbisfile.h usability... yes
checking vorbis/vorbisfile.h presence... yes
checking for vorbis/vorbisfile.h... yes
checking libmodplug/modplug.h usability... yes
checking libmodplug/modplug.h presence... yes
checking for libmodplug/modplug.h... yes
checking curl/curl.h usability... yes
checking curl/curl.h presence... yes
checking for curl/curl.h... yes
checking FLAC/stream_decoder.h usability... yes
checking FLAC/stream_decoder.h presence... yes
checking for FLAC/stream_decoder.h... yes
checking openssl/crypto.h usability... yes
checking openssl/crypto.h presence... yes
checking for openssl/crypto.h... yes
checking gcrypt.h usability... yes
checking gcrypt.h presence... yes
checking for gcrypt.h... yes
checking for main in -lgpg-error... yes
checking for gcry_control in -lgcrypt... yes
checking for main in -lbz2... yes
checking for main in -ljpeg... yes
checking for main in -ltiff... yes
checking for main in -lpthread... yes
checking for pthread_setname_np in -lpthread... yes
checking for main in -llzo2... yes
checking for main in -lz... yes
checking for main in -lcrypto... yes
checking for main in -lssl... yes
checking for main in -lmysqlclient... yes
checking for hci_devid in -lbluetooth... yes
checking for main in -lyajl... no
configure: error: Could not find a required library. Please see the README for your platform.
fakeroot -- sh xbmc.SlackBuild Gescheitert
[/spoiler]
Last edited by rrttdd on 18. Jan 2014, 23:49, edited 1 time in total.
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: XBMC 12.2 installation problem - "main in -lyajl" missin

Post by gapan »

It seems that yajl is available in sourcery. So install it first and try again.
Image
Image
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: XBMC 12.2 installation problem - "main in -lyajl" missin

Post by mimosa »

Try installing yajl from Sourcery, or on the command line:

Code: Select all

# slapt-src -i yajl
rrttdd
Posts: 26
Joined: 28. Nov 2012, 18:49

Re: XBMC 12.2 installation problem - "main in -lyajl" missin

Post by rrttdd »

Thank you!

so "main in -lyajl" means that the yajl lib is missing...interesting. :)

Now I have the problem that xbmc seems to require an original oracle JDK... The OpenJDK/JRE packages are not accepted...

Unforunately, the Sourcery download is broken...
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: XBMC 12.2 installation problem - "main in -lyajl" missin

Post by mimosa »

I think you can get the tarball direct from Oracle and run the slackbuild with it.
rrttdd
Posts: 26
Joined: 28. Nov 2012, 18:49

Re: XBMC 12.2 installation problem - "main in -lyajl" missin

Post by rrttdd »

Hm, it seems I'm too stupid for slackbuilding...


-1. I downloaded the tarball from oracle
-2. I downloaded jdk.SlackBuild from http://slackbuilds.org/repository/14.1/development/jdk/
-3. I put these files into one folder
-4. Edited jdk.SlackBuild and adapted it to jdk7u51
-5. chmod +x jdk.SlackBuild
-6. jdk.SlackBuild script seems to work, but seems to require admin privileges

so --> 7. su (logging in as super user)

-8. jdk.SlackBuild
Command not found

chmod +x jdk.SlackBuild
(nothing appears - seems to be ok)

jdk.SlackBuild
Command not found

....

Somehow I'm unable to call the jdk.SlackBuild script when I log in as superuser. :?: :?:
User avatar
aurlaent
Donor
Posts: 106
Joined: 1. Feb 2012, 19:46
Location: Sydney, Australia

Re: XBMC 12.2 installation problem - Oracle JDK installation

Post by aurlaent »

Try it either with the full path or as

Code: Select all

./jdk.SlackBuild
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: XBMC 12.2 installation problem - Oracle JDK installation

Post by mimosa »

That's because for the non-privileged user, items in the current directory are in the $PATH (places to look for executable files) but *not* for root. There may well be a good reason for this, but it's far from obvious :D
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: XBMC 12.2 installation problem - Oracle JDK installation

Post by gapan »

mimosa wrote:There may well be a good reason for this, but it's far from obvious :D
Security. When being root, you don't want to give precedence to executables in the current directory unless you really mean to.
Image
Image
rrttdd
Posts: 26
Joined: 28. Nov 2012, 18:49

Re: XBMC 12.2 installation problem - Oracle JDK installation

Post by rrttdd »

Thank you.

Now I've found out the following:

-Open JDK should also work and be compatible enough for xbmc.
-The main problem seems to be the following:

The xbmc script does a simple check if java can be called. But when in Glsapt, I'm in superuser mode, and in this mode OpenJDK is not in the PATH variable!

As far as I've understood so far, for ordinary users all scripts in /etc/profile.d are called when logging on. In this directory, there is also the openjdk.sh which does the $PATH modifications neccessary for OpenJDK. At the moment I'm failing in setting the correct JDK path for the superuser:

Code: Select all

su

chmod +x /etc/profile.d/openjdk.sh

/etc/profile.d/openjdk.sh

echo $JAVA_HOME
/usr/lib64/java

echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:usr/sbin:/bin:/usr/bin

java
command not found
I think that's the main problem, I need some Java path additions in $PATH..
[/code]
Post Reply