Page 1 of 1

Error caused by bootstrap

Posted: 07 Aug 2008 04:06
by yKevin
Hello, everyone

I am compiling the vlc-0.8.6e source code recently, if I run the commands in this order, it'll be OK:

./configure --prefix=XXX --disable-XXX ... ...
make
make install

but if I run bootstrap first, it'll be wrong

./bootstrap
Error: /usr/bin/automake: unrecognized option '-Wall'
So I removed the option "Wall", and it works(the automake version is 1.6).
./configure --prefix=XXX --disable-XXX ... ...
No Error
make
Error: vlc-vlc.o: In function 'main':
vlc-vlc.o(.text+0x1f):vlc.c: undefined reference to `VLC_Version'
vlc-vlc.o(.text+0x4c):vlc.c: undefined reference to `rootwrap'
vlc-vlc.o(.text+0x51):vlc.c: undefined reference to `VLC_Create'
vlc-vlc.o(.text+0x6f):vlc.c: undefined reference to `VLC_Init'
vlc-vlc.o(.text+0x99):vlc.c: undefined reference to `VLC_AddIntf'
vlc-vlc.o(.text+0xa7):vlc.c: undefined reference to `VLC_CleanUp'
vlc-vlc.o(.text+0xb3):vlc.c: undefined reference to `VLC_Destroy'
vlc-vlc.o(.text+0xd9):vlc.c: undefined reference to `VLC_Destroy'

... ... ...
collect2: ld returned 1 exit status
make[2]: *** [vlc] Error 1
make[2]: Leaving directory `/src/vlc-0.8.6e'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/src/vlc-0.8.6e'
make: *** [all] Error 2

I thought the reason is it couldn't find the right library in the right place(actually, it is there). But I don't know how to solve it, so I need your help :D .
BTW, I changed nothing about the source code and config files.

Regards.

Re: Error caused by bootstrap

Posted: 07 Aug 2008 09:28
by yKevin
Any suggestions about the problem?
The error happens in the linking state when the vlc main program is being generated.
The library it needs is libvlc.a, and it is generated in ./src directory already.

Am I clear or something?
Any information is welcomed.

Thank you :D .
yKevin

Re: Error caused by bootstrap

Posted: 07 Aug 2008 09:31
by yKevin
I googled in the website, and find many questions like mine, but no answer.
So what's your opinion about this? Need your help.

Re: Error caused by bootstrap

Posted: 11 Aug 2008 12:20
by yKevin
Because the bootstrap will modify the Makefiles, and the reason of the problem is the linker can not find the right library.
So I modified the top level Makefile:
Search to this line: LINK=$(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS)...
I added the library needed here.
And at last, I fixed it.

Thank you all the same. :D