Kodi Community Forum

Full Version: configure script fails
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

i trying to compile XBMC. I'am a x86_64 linux platform (with AMD64 processor) and the configure script fails.

I have the following message :

checking for utime... yes
checking size of int... 0
checking size of size_t... configure: error: in `/home/nicolas/build/linuxport/XBMC':
configure: error: cannot compute sizeof (size_t)
See `config.log' for more details.

The config.log don't tell some information and i don't find information about this error on the forum.

Thank you for your help.
Chipster19
What distro? Something is broken in your environment.
Hi,

I have installed the new nvidia driver v 185.18.14 and now the configure script works fine.

Strange !!
No, not strange. I've seen this on my box as well. I suppose you're running fakeroot while configuring/make. fakeroot is known to have problems with libgl provided by nvidia. It seems that binaries linked against that lib segfault in a fakeroot environment. As for Arch Linux there's a workaround of compiling as root (NOT RUNNING!), but i don't know what distro you're on. Also i'm a bit surprised 185.18.14 fixes this for you...i also run that version and it is not fixed for me.

/Haggy

EDIT: Note that this fails on i686 as well (i heard)
sorry to bring this old thread back up, i'm getting this problem too on SVN revision 28276 except I'm on moblin 2.1 not building as root:

Quote:[moblin@moblinbox trunk]$ ./configure --prefix=/usr --disable-debug

config.log
Quote:#define HAVE_STRSPN 1
#define HAVE_STRSTR 1
#define HAVE_STRTOL 1
#define HAVE_STRTOUL 1
#define HAVE_SYSINFO 1
#define HAVE_TZSET 1
#define HAVE_UTIME 1
#define SIZEOF_INT 0

configure: exit 77

This is not an ION box so there is no nvidia glibc.

Any ideas?
lordmozilla Wrote:sorry to bring this old thread back up, i'm getting this problem too on SVN revision 28276 except I'm on moblin 2.1 not building as root:



config.log


This is not an ION box so there is no nvidia glibc.

Any ideas?

can you post the complete config.log (on pastebin)?
openelec.tv Wrote:can you post the complete config.log (on pastebin)?

of course.

http://pastebin.com/B3RJR5HR
dont know if this helps.

you have an problem with libmicrohttpd.so:

Code:
./conftest: error while loading shared libraries: libmicrohttpd.so.5: cannot open shared object file: No such file or directory

can you look if:

1. you have any libmicrohttpd.so.* files (in /usr/lib) and if you have this files:
2. do an ldd /usr/lib/libmicrohttpd.so.* and look if you find any dependencies with "not found" so you can see if any library is missed

if this not helps

1. try configure as root user (an ugly way)
2. try
Code:
ac_cv_sizeof_size_t=4 ./configure ......
(also ugly)
openelec.tv Wrote:dont know if this helps.

you have an problem with libmicrohttpd.so:

Code:
./conftest: error while loading shared libraries: libmicrohttpd.so.5: cannot open shared object file: No such file or directory

can you look if:

1. you have any libmicrohttpd.so.* files (in /usr/lib) and if you have this files:

Looks like the /usr/local location of libmicrohttpd was enough to pass the configure step but failed in this location... weird. I reinstalled it with ./configure --prefix=/usr and it configured fine. Thanks!

Does anyone know if the --disable-gl option still works?
lordmozilla Wrote:Does anyone know if the --disable-gl option still works?

i have not tested this, i think this can works, but why? without OpenGL the UI will be very slow (Softwarerendering) I dont know if this is usable for you.
I have only very limited openGL functionality on this box. I would like to know wether xbmc would run on it in software acceleration before having a look at seeing what is wrong with opengl acceleration.

Here is the error I get with --disable-opengl. Without it it compiles just fine. However I crash a little later after launch with an opengl error.

Code:
make[1]: Entering directory `/home/moblin/trunk/xbmc/cores/VideoRenderers'
g++ -MD -c -O2 -g -march=core2 -mssse3 -mtune=atom -mfpmath=sse -O2 -O2 -g -march=core2 -mssse3 -mtune=atom -mfpmath=sse -O2 -g -D_DEBUG -Wall -O2 -g -march=core2 -mssse3 -mtune=atom -mfpmath=sse -O2 -g -D_DEBUG -Wall -D_LINUX -D_FILE_DEFINED -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DINSTALL_PATH="\"/usr/local/share/xbmc\"" -DHAS_SDL_2D -DHAS_SDL_JOYSTICK -D'SVN_REV="28275S"' -DHAVE_CONFIG_H  -I../../.. -I. -I.. -I../../ -I../../../ -I../../linux -I../../../guilib -I../../utils -I../dvdplayer -I../dvdplayer/Codecs/ffmpeg -I/home/moblin/trunk     -I/usr/include/fribidi     -I/usr/include/libpng12           -I/usr/include/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/freetype2         -I/usr/include/mysql -I/usr/include/alsa               -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I/usr/include/lzo LinuxRenderer.cpp -o LinuxRenderer.o
In file included from LinuxRenderer.cpp:27:
LinuxRenderer.h:13:34: error: ../ffmpeg/DllSwScale.h: No such file or directory
LinuxRenderer.h:14:34: error: ../ffmpeg/DllAvCodec.h: No such file or directory
In file included from LinuxRenderer.cpp:27:
LinuxRenderer.h:22: error: redefinition of 'struct YV12Image'
BaseRenderer.h:31: error: previous definition of 'struct YV12Image'
LinuxRenderer.h:32: error: invalid type in declaration before ';' token
LinuxRenderer.h:32: error: conflicting declaration 'typedef int YV12Image'
BaseRenderer.h:41: error: 'YV12Image' has a previous declaration as 'typedef struct YV12Image YV12Image'
LinuxRenderer.h:111: error: 'CBaseTexture' has not been declared
In file included from LinuxRenderer.cpp:27:
LinuxRenderer.h:175: error: 'DllSwScale' does not name a type
LinuxRenderer.h:176: error: 'DllAvCodec' does not name a type
LinuxRenderer.h:177: error: 'DllAvUtil' does not name a type
LinuxRenderer.cpp: In constructor 'CLinuxRenderer::CLinuxRenderer()':
LinuxRenderer.cpp:64: error: 'CLog' has not been declared
LinuxRenderer.cpp:64: error: 'LOGDEBUG' was not declared in this scope
LinuxRenderer.cpp: In member function 'void CLinuxRenderer::DeleteOSDTextures(int)':
LinuxRenderer.cpp:97: error: 'CSingleLock' was not declared in this scope
LinuxRenderer.cpp:97: error: expected ';' before 'lock'
LinuxRenderer.cpp:107: error: 'CLog' has not been declared
LinuxRenderer.cpp:107: error: 'LOGDEBUG' was not declared in this scope
LinuxRenderer.cpp: In member function 'virtual void CLinuxRenderer::DrawAlpha(int, int, int, int, unsigned char*, unsigned char*, int)':
LinuxRenderer.cpp:138: error: 'CLog' has not been declared
LinuxRenderer.cpp:138: error: 'LOGINFO' was not declared in this scope
LinuxRenderer.cpp:159: error: 'g_settings' was not declared in this scope
LinuxRenderer.cpp:180: error: 'm_fSourceFrameRatio' was not declared in this scope
LinuxRenderer.cpp:182: error: 'g_settings' was not declared in this scope
LinuxRenderer.cpp:196: error: 'g_settings' was not declared in this scope
LinuxRenderer.cpp:205: error: 'CSingleLock' was not declared in this scope
LinuxRenderer.cpp:205: error: expected ';' before 'lock'
LinuxRenderer.cpp:218: error: 'CLog' has not been declared
LinuxRenderer.cpp:218: error: 'LOGERROR' was not declared in this scope
LinuxRenderer.cpp:224: error: 'CLog' has not been declared
LinuxRenderer.cpp:224: error: 'LOGDEBUG' was not declared in this scope
LinuxRenderer.cpp: In member function 'void CLinuxRenderer::RenderOSD()':
LinuxRenderer.cpp:260: error: 'CSingleLock' was not declared in this scope
LinuxRenderer.cpp:260: error: expected ';' before 'lock'
LinuxRenderer.cpp:279: error: 'class CGraphicContext' has no member named 'BlitToScreen'
LinuxRenderer.cpp: In member function 'virtual bool CLinuxRenderer::Configure(unsigned int, unsigned int, unsigned int, unsigned int, float, unsigned int)':
LinuxRenderer.cpp:315: error: 'CLog' has not been declared
LinuxRenderer.cpp:315: error: 'LOGDEBUG' was not declared in this scope
LinuxRenderer.cpp:323: error: 'g_settings' was not declared in this scope
LinuxRenderer.cpp:398: error: 'CLog' has not been declared
LinuxRenderer.cpp: In member function 'virtual int CLinuxRenderer::GetImage(YV12Image*, int, bool)':
LinuxRenderer.cpp:408: error: 'CSingleLock' was not declared in this scope
LinuxRenderer.cpp:408: error: expected ';' before 'lock'
LinuxRenderer.cpp:411: error: 'CLog' has not been declared
LinuxRenderer.cpp:411: error: 'LOGDEBUG' was not declared in this scope
LinuxRenderer.cpp:416: error: 'CLog' has not been declared
LinuxRenderer.cpp:416: error: 'LOGDEBUG' was not declared in this scope
LinuxRenderer.cpp:421: error: 'CLog' has not been declared
LinuxRenderer.cpp:421: error: 'LOGERROR' was not declared in this scope
LinuxRenderer.cpp: In member function 'virtual void CLinuxRenderer::ReleaseImage(int, bool)':
LinuxRenderer.cpp:446: error: 'CSingleLock' was not declared in this scope
LinuxRenderer.cpp:446: error: expected ';' before 'lock'
LinuxRenderer.cpp:463: error: 'm_dllSwScale' was not declared in this scope
LinuxRenderer.cpp:463: error: 'PIX_FMT_YUV420P' was not declared in this scope
LinuxRenderer.cpp:463: error: 'PIX_FMT_BGRA' was not declared in this scope
LinuxRenderer.cpp:463: error: 'SWS_BILINEAR' was not declared in this scope
LinuxRenderer.cpp: In member function 'virtual void CLinuxRenderer::Update(bool)':
LinuxRenderer.cpp:492: error: 'CSingleLock' was not declared in this scope
LinuxRenderer.cpp:492: error: expected ';' before 'lock'
LinuxRenderer.cpp: In member function 'void CLinuxRenderer::RenderUpdate(bool, DWORD, DWORD)':
LinuxRenderer.cpp:500: error: 'CSingleLock' was not declared in this scope
LinuxRenderer.cpp:500: error: expected ';' before 'lock'
LinuxRenderer.cpp: In member function 'virtual unsigned int CLinuxRenderer::PreInit()':
LinuxRenderer.cpp:574: error: 'CSingleLock' was not declared in this scope
LinuxRenderer.cpp:574: error: expected ';' before 'lock'
LinuxRenderer.cpp:577: error: 'PAL_4x3' was not declared in this scope
LinuxRenderer.cpp:589: error: 'g_advancedSettings' was not declared in this scope
LinuxRenderer.cpp:591: error: 'm_dllAvUtil' was not declared in this scope
LinuxRenderer.cpp:591: error: 'm_dllAvCodec' was not declared in this scope
LinuxRenderer.cpp:591: error: 'm_dllSwScale' was not declared in this scope
LinuxRenderer.cpp:592: error: 'CLog' has not been declared
LinuxRenderer.cpp:592: error: 'LOGERROR' was not declared in this scope
LinuxRenderer.cpp:595: error: 'm_dllSwScale' was not declared in this scope
LinuxRenderer.cpp:595: error: 'SWS_CPU_CAPS_MMX2' was not declared in this scope
LinuxRenderer.cpp: In member function 'virtual void CLinuxRenderer::UnInit()':
LinuxRenderer.cpp:605: error: 'CSingleLock' was not declared in this scope
LinuxRenderer.cpp:605: error: expected ';' before 'lock'
LinuxRenderer.cpp: In member function 'void CLinuxRenderer::RenderLowMem(DWORD)':
LinuxRenderer.cpp:650: error: 'CSingleLock' was not declared in this scope
LinuxRenderer.cpp:650: error: expected ';' before 'lock'
LinuxRenderer.cpp:674: error: 'class CGraphicContext' has no member named 'BlitToScreen'
LinuxRenderer.cpp: At global scope:
LinuxRenderer.cpp:679: error: prototype for 'void CLinuxRenderer::CreateThumbnail(CBaseTexture*, unsigned int, unsigned int)' does not match any in class 'CLinuxRenderer'
LinuxRenderer.h:111: error: candidate is: void CLinuxRenderer::CreateThumbnail(int*, unsigned int, unsigned int)
make[1]: *** [LinuxRenderer.o] Error 1
make[1]: Leaving directory `/home/moblin/trunk/xbmc/cores/VideoRenderers'
make: *** [xbmc/cores/VideoRenderers/VideoRenderer.a] Error 2
lordmozilla Wrote:I have only very limited openGL functionality on this box. I would like to know wether xbmc would run on it in software acceleration before having a look at seeing what is wrong with opengl acceleration.

Here is the error I get with --disable-opengl. Without it it compiles just fine. However I crash a little later after launch with an opengl error.

Code:
LinuxRenderer.h:13:34: error: ../ffmpeg/DllSwScale.h: No such file or directory
LinuxRenderer.h:14:34: error: ../ffmpeg/DllAvCodec.h: No such file or directory

it seems this is broken, not know if there other issues. can you try if this issue is solved if you change in:

xbmc/cores/VideoRenderers/LinuxRenderer.h

the line 13 and 14 from

Code:
#include "../ffmpeg/DllSwScale.h"
#include "../ffmpeg/DllAvCodec.h"

to

Code:
#include ".../dvdplayer/Codecs/DllSwScale.h"
#include ".../dvdplayer/Codecs/DllAvCodec.h"
openelec.tv Wrote:
Code:
#include ".../dvdplayer/Codecs/DllSwScale.h"
#include ".../dvdplayer/Codecs/DllAvCodec.h"

sorry with 2 points not three:

Code:
#include "../dvdplayer/Codecs/DllSwScale.h"
#include "../dvdplayer/Codecs/DllAvCodec.h"