Hello Kuldip, Just a suggestion: You should probably link your gcc generated code with libgcc.a where __umoddi3, and other 64 bits operation functions are defined, so that we don't need a relocation for them with our libc version.
Hope this help. William. Kuldipsingh Pabla wrote: > Thanx Chris. Let me try with this alias if someone can help me with my > problems. > > Thanx, > -Kuldip > > -------- Original Message -------- > Subject: Re: Help with Linker > Date: Mon, 06 Feb 2006 10:06:37 -0800 > From: Chris Quenelle <Chris.Quenelle at Sun.COM> > Reply-To: Chris.Quenelle at Sun.COM > To: Kuldipsingh.Pabla at Sun.COM > References: <43DEBA49.3050509 at Sun.Com> > > > You might try asking your question on this internal and external alias: > > tools-linking at opensolaris.org > > --chris > > > Kuldipsingh Pabla wrote: > >> Hi All, >> >> I am trying to build and install VLC, an open source media streaming >> client. I am using gnu compilers (I would like to use Studio but thats >> a different set of issues) to compile the code. It seems to be unable >> to resolve tons of symbols. I will appreciate your help in resolving >> this issue. I have the following env set up and the errors: >> >> dhcp-usca21-191-84:~/ws/gcc/vlc-0.8.4a > echo $LD_LIBRARY_PATH >> ./lib:/usr/sfw/lib:/usr/X11R6/lib:/usr/X11/lib:/lib:/usr/openwin/lib:/usr/dt/lib:/usr/local/lib >> >> >> dhcp-usca21-191-84:~/ws/gcc/vlc-0.8.4a > echo $PATH >> /usr/xpg4/bin:/usr/sfw/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/ccs/bin:/usr/dt/bin:/usr/X11R6/bin:/opt/SUNWspro/bin:/usr/openwin/bin:/usr/java/bin:/usr/dist/share/forte_dev_i386,v6.2/SUNWspro/bin:/usr/dist/local/exe:/usr/dist/exe:/usr/dist/share/forte_dev,v6.2/SUNWspro/bin:/export/home/kuldeep/bin:/usr/ccs/bin:/opt/ant/bin >> >> >> dhcp-usca21-191-84:~/ws/gcc/vlc-0.8.4a > >> >> >> >> >> >> >> __umoddi3 0x15ab >> /export/home/kuldeep/ws/gcc/ffmpeg-20051126/libavcodec/libavcodec.a(mpeg12.o) >> >> >> __umoddi3 0x1607 >> /export/home/kuldeep/ws/gcc/ffmpeg-20051126/libavcodec/libavcodec.a(mpeg12.o) >> >> >> __umoddi3 0x1678 >> /export/home/kuldeep/ws/gcc/ffmpeg-20051126/libavcodec/libavcodec.a(mpeg12.o) >> >> >> __umoddi3 0x16ba >> /export/home/kuldeep/ws/gcc/ffmpeg-20051126/libavcodec/libavcodec.a(mpeg12.o) >> >> >> ld: fatal: relocations remain against allocatable but non-writable >> sections >> collect2: ld returned 1 exit status >> gmake[3]: *** [libvlcplugin.so] Error 1 >> gmake[3]: Leaving directory >> `/export/home/kuldeep/ws/gcc/vlc-0.8.4a/mozilla' >> gmake[2]: *** [all] Error 2 >> gmake[2]: Leaving directory >> `/export/home/kuldeep/ws/gcc/vlc-0.8.4a/mozilla' >> gmake[1]: *** [all-recursive] Error 1 >> gmake[1]: Leaving directory `/export/home/kuldeep/ws/gcc/vlc-0.8.4a' >> gmake: *** [all] Error 2 >> >> Thanx, >> >> -Kuldip > >
