Compiling VLC on Ubuntu 8.10

24 views
Skip to first unread message

Dan Walmsley

unread,
Jan 7, 2009, 7:32:32 AM1/7/09
to Neuros
Hi all,

No matter how I try, I can't get VLC for OSD2.0 to compile on Ubuntu
8.10 (Intrepid).

Specifically, I get this (where $BUILDDIR is my OSD2.0 checked-out
repo) while compiling libaccess_file_plugin:

==SNIP==
$BUILDDIR/toolchains/mvista-3.4.3/bin/../target/usr/lib/crt1.o(.text
+0x30): In function `_start':
../sysdeps/arm/elf/start.S:99: undefined reference to `main'
collect2: ld returned 1 exit status
make[5]: *** [libaccess_file_plugin.so] Error 1
make[5]: Leaving directory `/home/mia/build/osd/vlc/vlc-build-davinci/
modules/access'
==/SNIP==

Any ideas? Seems to be a libtool version problem, but I couldn't find
a way to fix it. Adding -c to the gcc command in all my makefiles (in
order to prevent them being compiled to executables, and b0rking on
the merry search for main()) alleviated this problem but then cause a
whole bunch of other issues because stuff wasn't being linked
properly, or something.

As you can probably tell, I'm not much of a C hacker (yet). I just
really want VLC working so I can prove to her that the black box on
the lounge room floor can really do something! ;-)

Thanks,
Dan

jpsaman

unread,
Jan 16, 2009, 3:57:33 AM1/16/09
to Neuros
Hi Dan,

Did you load the neuros environment in your shell?
In bash you do:
$> source neuros-env
before you begin building the neuros software and vlc. Then
type make at toplevel of neuros directory.

On Jan 7, 1:32 pm, Dan Walmsley <goldsou...@gmail.com> wrote:
> Hi all,
>
> No matter how I try, I can't get VLC for OSD2.0 to compile on Ubuntu
> 8.10 (Intrepid).
>
> Specifically, I get this (where $BUILDDIR is my OSD2.0 checked-out
> repo) while compiling libaccess_file_plugin:
>
> ==SNIP==
> $BUILDDIR/toolchains/mvista-3.4.3/bin/../target/usr/lib/crt1.o(.text
> +0x30): In function `_start':
> ../sysdeps/arm/elf/start.S:99: undefined reference to `main'
> collect2: ld returned 1 exit status
> make[5]: *** [libaccess_file_plugin.so] Error 1
> make[5]: Leaving directory `/home/mia/build/osd/vlc/vlc-build-davinci/
> modules/access'
> ==/SNIP==

Something is trying to link libaccess_file_plugin into an executable,
while it should be linked as library. Could you capture all the output
of vlc building and sent it to me? (me = jpsaman dot videolan dot org)

dan

unread,
Jan 16, 2009, 7:39:03 AM1/16/09
to neu...@googlegroups.com
On Fri, Jan 16, 2009 at 7:57 PM, jpsaman <jps...@gmail.com> wrote:
 $> source neuros-env
before you begin building the neuros software and vlc. Then
type make at toplevel of neuros directory.

Yeah, I certainly did do that. Very little happens if you don't (as I found out repeatedly when I forgot to ;-) )
 
> make[5]: *** [libaccess_file_plugin.so] Error 1
> make[5]: Leaving directory `/home/mia/build/osd/vlc/vlc-build-davinci/
> modules/access'
> ==/SNIP==

Something is trying to link libaccess_file_plugin into an executable,
while it should be linked as library. Could you capture all the output
of vlc building and sent it to me? (me = jpsaman dot videolan dot org)


Will do shortly when I'm at home and sober :-D

I think maybe it's a configure problem, combined with a newer version of GCC whose args have changed slightly...

D

bminten

unread,
Jan 27, 2009, 11:25:04 AM1/27/09
to Neuros
I'm in the same boat. Crweb suggested trying older versions of
autoconf. I've now tried 1.7, 1.9, and 1.10 with the same results. I
haven't modified the source except to uncomment AC_PROG_CXX in vlc/
extras/contrib/src/faad2/configure.in. I'm on Ubuntu 8.10, as well.

I'd be happy so send along the output from "make vlc", as well, if
it's still needed. Would it be most helpful to start from a "sparse"
source tree having never run "make vlc", or is capturing another run
sufficient?

Here's a bit more context:

==SNIP==
make[5]: Leaving directory `/home/bminten/code/OSD2/vlc/vlc-build-
davinci/src'
make[4]: Leaving directory `/home/bminten/code/OSD2/vlc/vlc-build-
davinci/src'
make[3]: Leaving directory `/home/bminten/code/OSD2/vlc/vlc-build-
davinci/src'
Making all in
modules
make[3]: Entering directory `/home/bminten/code/OSD2/vlc/vlc-build-
davinci/
modules'
Making all in
access
make[4]: Entering directory `/home/bminten/code/OSD2/vlc/vlc-build-
davinci/modules/
access'
make[5]: Entering directory `/home/bminten/code/OSD2/vlc/vlc-build-
davinci/modules/
access'
if arm-linux-gcc -DHAVE_CONFIG_H -I. -I/home/bminten/code/OSD2/vlc/
modules/access -I../.. -I/home/bminten/code/OSD2/vlc/extras/contrib/
include -DSYS_LINUX -I/home/bminten/code/OSD2/vlc/include
`top_builddir="../.." ../../vlc-config --cflags plugin access_file` -
Wsign-compare -Wall -Os -march=armv5te -I/home/bminten/code/OSD2/linux-
davinci-2.6/include -I/home/bminten/code/OSD2/toolchains/default/
target/usr/include -msoft-float -mlittle-endian -I/home/bminten/code/
OSD2/vlc/extras/contrib/include -pipe -MT libaccess_file_plugin_a-
file.o -MD -MP -MF ".deps/libaccess_file_plugin_a-file.Tpo" -c -o
libaccess_file_plugin_a-file.o `test -f 'file.c' || echo '/home/
bminten/code/OSD2/vlc/modules/access/'`file.c; \
then mv -f ".deps/libaccess_file_plugin_a-file.Tpo" ".deps/
libaccess_file_plugin_a-file.Po"; else rm -f ".deps/
libaccess_file_plugin_a-file.Tpo"; exit 1;
fi
/home/bminten/code/OSD2/vlc/modules/access/file.c: In function
`_OpenFile':
/home/bminten/code/OSD2/vlc/modules/access/file.c:642: warning: label
`opencont' defined but not
used
rm -f
libaccess_file_plugin.a
arm-linux-ar cru libaccess_file_plugin.a libaccess_file_plugin_a-
file.o
arm-linux-ranlib
libaccess_file_plugin.a
/bin/bash ../../libtool --tag=CC --mode=link arm-linux-gcc -Wsign-
compare -Wall -Os -march=armv5te -I/home/bminten/code/OSD2/linux-
davinci-2.6/include -I/home/bminten/code/OSD2/toolchains/default/
target/usr/include -msoft-float -mlittle-endian -I/home/bminten/code/
OSD2/vlc/extras/contrib/include -pipe -Wl,-z,defs -Wl,-z,defs -L/home/
bminten/code/OSD2/vlc/extras/contrib/lib -o libaccess_file_plugin.so
libaccess_file_plugin.a -g -shared -lpthread -fpic -fPIC -u
vlc_entry__0_8_7neuros
libtool: link: arm-linux-gcc -Wsign-compare -Wall -Os -march=armv5te -
I/home/bminten/code/OSD2/linux-davinci-2.6/include -I/home/bminten/
code/OSD2/toolchains/default/target/usr/include -msoft-float -mlittle-
endian -I/home/bminten/code/OSD2/vlc/extras/contrib/include -pipe -Wl,-
z -Wl,defs -Wl,-z -Wl,defs -o libaccess_file_plugin.so -g -fpic -fPIC -
u vlc_entry__0_8_7neuros -L/home/bminten/code/OSD2/vlc/extras/contrib/
lib libaccess_file_plugin.a -lpthread
/home/bminten/code/OSD2/toolchains/mvista-3.4.3/bin/../lib/gcc/armv5tl-
montavista-linuxeabi/3.4.3/../../../../armv5tl-montavista-linuxeabi/
bin/ld: libaccess_file_plugin.a(libaccess_file_plugin_a-file.o):
warning: duplicate section `.note.gnu.arm.ident' has different
contents

/home/bminten/code/OSD2/toolchains/mvista-3.4.3/bin/../target/usr/lib/
crt1.o(.text+0x30): In function `_start':
../sysdeps/arm/elf/start.S:99: undefined reference to `main'
collect2: ld returned 1 exit status
make[5]: *** [libaccess_file_plugin.so] Error 1
make[5]: Leaving directory `/home/bminten/code/OSD2/vlc/vlc-build-
davinci/modules/access'
make[4]: *** [all-modules] Error 1
make[4]: Leaving directory `/home/bminten/code/OSD2/vlc/vlc-build-
davinci/modules/access'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/bminten/code/OSD2/vlc/vlc-build-
davinci/modules'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/bminten/code/OSD2/vlc/vlc-build-
davinci'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/bminten/code/OSD2/vlc/vlc-build-
davinci'
make: *** [vlc] Error 2
bminten@fs:~/code/OSD2$
==SNIP==

jpsaman

unread,
Jan 28, 2009, 2:18:43 AM1/28/09
to Neuros
Could you tell me your autoconf, automake and libtool versions?

Mine are:

autoconf 2.61
automake 1.10
libtool 1.5.24 (1.1220.2.456 2007/06/24 02:25:32)

bminten

unread,
Jan 28, 2009, 10:54:52 AM1/28/09
to Neuros
That particular run was using:
autoconf 2.61
automake 1.7.9

libtool --version gives:
ltmain.sh (GNU libtool) 2.2.4

I've also tried automake 1.9.6 and 1.10.1.

To swap between versions, I've just been changing the links in /etc/
alternatives for automake and aclocal and downloading+building from
scratch.

Brian

jpsaman

unread,
Feb 3, 2009, 10:02:00 AM2/3/09
to Neuros
Goto the neuros/vlc directory and type there: rm -fr vlc-build-
davinci/
Then type: make distclean

Goto neuros main directory (cd ../) and type: make vlc

Capture the output of the vlc build and sent it to me if it fails.
If it succeeds, then please mention so in this thread.

Gtz
Jean-Paul Saman.

On Jan 28, 4:54 pm, bminten <brian.min...@gmail.com> wrote:
> That particular run was using:
> autoconf 2.61
> automake 1.7.9
>
> libtool --version gives:
> ltmain.sh (GNU libtool) 2.2.4
>
> I've also tried automake 1.9.6 and 1.10.1.
>
> To swap between versions, I've just been changing the links in /etc/
> alternatives for automake and aclocal and downloading+building from
> scratch.
>
> Brian
>
> On Jan 28, 1:18 am, jpsaman <jpsa...@gmail.com> wrote:
>
> > Could you tell me your autoconf, automake and libtool versions?
>
> > Mine are:
>
> > autoconf 2.61
> > automake 1.10
> > libtool 1.5.24 (1.1220.2.456 2007/06/24 02:25:32)
>
> > On Jan 27, 5:25 pm, bminten <brian.min...@gmail.com> wrote:
>
> > > I'm in the same boat. Crweb suggested trying older versions of
> > > autoconf. I've now tried 1.7, 1.9, and 1.10 with the same results. I
> > > haven't modified the source except to uncomment AC_PROG_CXX invlc/
> > > extras/contrib/src/faad2/configure.in. I'm on Ubuntu 8.10, as well.
>
> > > I'd be happy so send along the output from "makevlc", as well, if
> > > it's still needed. Would it be most helpful to start from a "sparse"
> > > source tree having never run "makevlc", or is capturing another run

Daniel Holth

unread,
Feb 6, 2009, 3:24:31 PM2/6/09
to Neuros
I had the same problem: no matter how I tried, I could not get vlc to
compile on Ubuntu 8.10. Fortunately I finally found a way to do it:

- Install virtualbox-osd
- Install ubuntu 8.04 into the new vm
- Follow the wiki instructions inside the virtual machine

It took a long time to compile, but it did compile.

I wonder if this is related to the weird bug where the neuros build
depends on installing the system's -dev packages of several libraries?
Or is it a different version of automake/gcc/libtool? Or something
totally different? I certainly do not have time to find out.

Dan W.: show her the way!

bminten

unread,
Feb 9, 2009, 1:45:16 PM2/9/09
to Neuros
Bad news. I'd been experimenting in the mean time, and my source tree
was in such a state that I wanted to start fresh. I got hung up on the
"make all install" step. Unfortunately, it would seem that ntfs-3g.org
no longer offers ntfs-3g-1.5012.tgz. So, not sure it belongs in this
thread, but I fear the scripts are now broken for everyone.

I think I have a tarball of the source tree where I'd stopped just pre
"make vlc" (so that I could keep trying from a common starting point
without having to download everything), but I don't actually remember
what versions of autotools I was working with at the time. So,
hopefully I can keep working on the vlc problem from there, but I
thought the ntfs driver problem was worth throwing out there sooner
rather than later.

Brian

==SNIP==
########################################
INSTALL ntfs-3g utilities ...
########################################
--2009-02-09 11:07:41-- http://www.ntfs-3g.org/ntfs-3g-1.5012.tgz
Resolving www.ntfs-3g.org... 91.189.209.156
Connecting to www.ntfs-3g.org|91.189.209.156|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2009-02-09 11:07:42 ERROR 404: Not Found.

make[2]: *** [all] Error 1
make[1]: *** [all] Error 2
make: *** [external-components] Error 2
==SNIP==

Ugo Riboni

unread,
Feb 9, 2009, 3:12:06 PM2/9/09
to neu...@googlegroups.com
> Bad news. I'd been experimenting in the mean time, and my source tree
> was in such a state that I wanted to start fresh. I got hung up on the
> "make all install" step. Unfortunately, it would seem that ntfs-3g.org
> no longer offers ntfs-3g-1.5012.tgz. So, not sure it belongs in this
> thread, but I fear the scripts are now broken for everyone.

I committed a patch a few minutes ago that use the newest version of
NTFS-3G (as suggested by another user last week, Marcelo Guades)
It should now work and not break anymore.

Thanks for reporting this problem too.
--
nero

Reply all
Reply to author
Forward
0 new messages