bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

shared lib requires main ?!


From: salsaman
Subject: shared lib requires main ?!
Date: Sat, 1 Nov 2008 17:30:01 -0300

Hi,
I think found a bug in libtool: I am building a shared lib and it is giving an error that main is missing:

:~/lives/lives-plugins/plugins/playback/video$ ../../../../libtool --tag=CC   --mode=link gcc -g -shared -o lives2lives_stream.so lives2lives_stream-lives2lives_stream.o
libtool: link: gcc -g -o lives2lives_stream.so lives2lives_stream-lives2lives_stream.o
/usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../../lib/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status

Running the gcc command alone produces no errors and creates the output file as expected.

Further info:

      host-triplet:    x86_64-pc-linux-gnu
      shell:        /bin/bash
      compiler:        gcc
      compiler flags:        -Wall -g -O2
      linker:        /usr/bin/ld -m elf_x86_64 (gnu? yes)
      libtool:        (GNU libtool) 2.2.4 Debian-2.2.4-0ubuntu4
      automake:        automake (GNU automake) 1.10.1
      autoconf:        autoconf (GNU Autoconf) 2.61



Regards,
Gabriel
http://lives.sourceforge.net


reply via email to

[Prev in Thread] Current Thread [Next in Thread]