[vlc-devel] Re: linking error

Kuldipsingh Pabla Kuldipsingh.Pabla at Sun.COM
Thu Nov 9 22:13:18 CET 2006


Try removing "-shared" and it should work

-Kuldip

may nothing wrote On 11/09/06 09:05,:

>Hi,
>I try to compile vlc snapshot om a sparc 60 running Solaris10 with gcc4.1.1 and gnu ld
>
>Here is the error output. Can somebody please help me !!!!!!!!
>
>/bin/bash ../../../libtool --tag=CXX --mode=link g++     -o libscreen_plugin.la  `top_builddir="../../.." ../../../vlc-config --libs plugin screen` -rpath '/opt/vlc/lib/vlc/access' -avoid-version -module -shrext .so -export-symbol-regex ^vlc_entry__0_8_6c$ -no-undefined libscreen_plugin_la-screen.lo libscreen_plugin_la-x11.lo  ../../../src/libvlc.la
>libtool: link: warning: `/opt/gcc/lib/gcc/sparc-sun-solaris2.10/4.1.1/../../..//libstdc++.la' seems to be moved
>g++ -shared -nostdlib /opt/gcc/lib/gcc/sparc-sun-solaris2.10/4.1.1/crti.o /usr/ccs/lib/values-Xa.o /opt/gcc/lib/gcc/sparc-sun-solaris2.10/4.1.1/crtbegin.o .libs/libscreen_plugin_la-screen.o .libs/libscreen_plugin_la-x11.o  -Wl,--rpath -Wl,/space/vlc-0.9.0-svn/src/.libs -Wl,--rpath -Wl,/opt/gcc/lib -Wl,--rpath -Wl,/opt/vlc/lib -Wl,--rpath -Wl,/opt/gcc/lib -Wl,--rpath -Wl,/usr/openwin/lib -L/opt/vlc/lib -lpthread -L/usr/openwin/lib -lSM -lICE -lX11 -lXext ../../../src/.libs/libvlc.so -L/usr/local/lib -L/opt/gcc/lib/gcc/sparc-sun-solaris2.10/4.1.1/../../../ -L/space/gcc-4.1.1/sparc-sun-solaris2.10/libstdc++-v3/src -L/space/gcc-4.1.1/sparc-sun-solaris2.10/libstdc++-v3/src/.libs -L/space/gcc-4.1.1/host-sparc-sun-solaris2.10/gcc -L/opt/gcc/lib/gcc/sparc-sun-solaris2.10/4.1.1 -L/usr/ccs/lib -L/opt/gcc/lib/gcc/sparc-sun-solaris2.10/4.1.1/../../.. /opt/gcc/lib/libstdc++.so -lm -lgcc_s /opt/gcc/lib/gcc/sparc-sun-solaris2.10/4.1.1/crtend.o /opt/gcc/lib/gcc/sparc-sun-solaris2.10/4.1.1/crtn.o  -Wl,-z -Wl,defs -Wl,-soname -Wl,libscreen_plugin.so -o .libs/libscreen_plugin.so
>.libs/libscreen_plugin_la-screen.o: In function `vlc_entry__0_8_6c':
>/space/vlc-0.9.0-svn/modules/access/screen/screen.c:64: undefined reference to `realloc'
>/space/vlc-0.9.0-svn/modules/access/screen/screen.c:64: undefined reference to `memset'
>/space/vlc-0.9.0-svn/modules/access/screen/screen.c:65: undefined reference to `memset'
>/space/vlc-0.9.0-svn/modules/access/screen/screen.c:67: undefined reference to `memset'
>/space/vlc-0.9.0-svn/modules/access/screen/screen.c:69: undefined reference to `memset'
>/space/vlc-0.9.0-svn/modules/access/screen/screen.c:79: undefined reference to `memcpy'
>/space/vlc-0.9.0-svn/modules/access/screen/screen.c:79: undefined reference to `free'
>/space/vlc-0.9.0-svn/modules/access/screen/screen.c:79: undefined reference to `free'
>/space/vlc-0.9.0-svn/modules/access/screen/screen.c:79: undefined reference to `free'
>/space/vlc-0.9.0-svn/modules/access/screen/screen.c:79: undefined reference to `free'
>/space/vlc-0.9.0-svn/modules/access/screen/screen.c:79: undefined reference to `free'
>.libs/libscreen_plugin_la-screen.o:/space/vlc-0.9.0-svn/modules/access/screen/screen.c:79: more undefined references to `free' follow
>.libs/libscreen_plugin_la-screen.o: In function `Open':
>/space/vlc-0.9.0-svn/modules/access/screen/screen.c:99: undefined reference to `malloc'
>/space/vlc-0.9.0-svn/modules/access/screen/screen.c:100: undefined reference to `memset'
>/space/vlc-0.9.0-svn/modules/access/screen/screen.c:113: undefined reference to `free'
>.libs/libscreen_plugin_la-x11.o: In function `screen_Capture':
>/space/vlc-0.9.0-svn/modules/access/screen/x11.c:124: undefined reference to `.umul'
>/space/vlc-0.9.0-svn/modules/access/screen/x11.c:133: undefined reference to `memcpy'
>.libs/libscreen_plugin_la-x11.o: In function `es_format_Init':
>../../../include/vlc_es.h:207: undefined reference to `memset'
>../../../include/vlc_es.h:208: undefined reference to `memset'
>collect2: ld returned 1 exit status
>gmake[6]: *** [libscreen_plugin.la] Error 1
>gmake[6]: Leaving directory `/space/vlc-0.9.0-svn/modules/access/screen'
>gmake[5]: *** [all-modules] Error 1
>gmake[5]: Leaving directory `/space/vlc-0.9.0-svn/modules/access/screen'
>gmake[4]: *** [all-recursive] Error 1
>gmake[4]: Leaving directory `/space/vlc-0.9.0-svn/modules/access'
>gmake[3]: *** [all] Error 2
>gmake[3]: Leaving directory `/space/vlc-0.9.0-svn/modules/access'
>gmake[2]: *** [all-recursive] Error 1
>gmake[2]: Leaving directory `/space/vlc-0.9.0-svn/modules'
>gmake[1]: *** [all-recursive] Error 1
>gmake[1]: Leaving directory `/space/vlc-0.9.0-svn'
>gmake: *** [all] Error 2
>-bash-3.00#
>
>
>
>
>
>
>
>--
>This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
>To unsubscribe, please read http://developers.videolan.org/lists.html
>
>  
>

-- 
Kuldip Singh Pabla
Peer-2-Peer Networking
External: 408.276.6118 Internal: x16118



-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list