| |
| |
| |
|
Comments:
<0> hi, I'm having this compiler error, can you give me a hint? I think it's some package thing :/ <0> http://rafb.net/p/8plWGn43.html <1> is there any guides to cross compilation <1> im talking linux elf ? <-> win32 pe ? <1> not differnt archs <2> hi, http://pastebin.ca/335231 <2> i can't get to properly link my app <2> i have the symbols defined in libvmkuser.so (which i specify with -lvmkuser), but it doesnt seem to find it <2> anyone know what else I can try? <3> you seem to be showing explicit paths all through. strange. <2> what do you mean?
<3> the only other thing that comes to mind could be... <2> oh like why i'm linking to /myroot? <2> i'm crosscompiling <3> the order in which you perform the linking perhaps. but I'm not certain <2> i thought so too.. i tried moving -lvmkuser around <3> anyone awake to help T` out ? <2> i dont think anyone hangs out here <2> atleast never really heard anyone speak here.. heh <3> used to be... <3> things change. <3> good luck. <2> do you know why it complains in libSTAF.so? <2> could it be something to do with how libSTAF.so is made? <3> undefined reference to `VmkuserIcon(int*)' <3> coeff vs. elf, or what? <3> coff <2> i think its elf.. i dont know <2> lemme see <3> I've run into that issue a few times :) <3> /myroot/sources/staf-3.20/rel/mvis/staf/retail/lib/libSTAF.so: undefined reference to `VmkuserPerf(char const*, char* const*, char* const*, int, int*, unsigned, int, int*)' <3> are you certain those routines are exported (or whatever) <2> ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped <2> sec.. <3> http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html <2> nm libvmkuser.so.0.0 <2> 00001224 T VmkuserPerf <2> i see that.. <2> so its there in libvmkuser.so <3> what does that have to do with "libSTAF.so" ? <2> and if i change the -lvmkuser to like -lblahvmkuser it complains about not able to find that lib <3> where the error comes from <2> oh.. i thought libSTAF.so will get the symbol from libvmkuser.so? <2> i mean.. in libSTAF.so, it is like: <3> evidently not <2> <addr> U VmkuserPerf <2> so you think its the way libSTAF.so was built? <3> that might be a link to something _else_ that file loads! <2> because the error we see now, is when its linking the final binary STAF <3> Why not attempt to include 'libvmkuser.so.0.0' or whatever has the actual routines, and see what happens? <3> if you haven't tried it yet perhaps? <2> you mean in the cmdline right? along with STAF.o ? <3> although, I'm just brainstorming with you now <3> yeah, I guess. try to help it find these symbols from what contains them <2> hehe well thats better than nothing :)
<2> yea i did that.. and (re-did it just now).. exact same error <3> what is this project exactly? <3> any where you can go to find source similar to what you're doing, and study it <2> its STAF framework.. http://staf.sourceforge.net/index.php <2> its used for testing.. QA <3> I see faq, documentation, and this problem isn't listed <3> ? <2> but i'm trying to make it use some of my shared library's calls <2> nop.. this is a custom change by me.. so unlikely that they will list it <3> just a sec <2> heh <3> it creates a static or shared object when done? <3> if you're linking from .so, would you not be creating .so ? <3> .so might have an ***ociated .a <3> all that was in http://www.network-theory.co.uk/docs/gccintro/gccintro_25.html <2> the library i'm linking to libvmkuser.so only has .so.. no .a <3> I still think your answer is still in that tutorial, somewhere <3> are you creating a Static or Shared file when done? <2> yea, but the intro is very limited.. i already tried including the files on the cmdline in various places <3> are you creating a Static or Shared file when done? <3> or don't you know <2> shared file <2> STAF is a executable which uses many shared libs <3> gcc -Wl,--export-dynamic -Wall -O1 -shared -fPIC <2> glibc, libSTAF.so, etc.. <3> how many of those options I just listed are you using <2> -shared i'm not for STAF because thats wrong ofcourse.. -fPIC wont apply for non-shared libs <2> same for export-dynamic <2> lemme see if thats used for libSTAF.so <2> btw.. do you know if there is any prob with c++ apps linking with .so ? <2> it should work seemlessly right? <3> oh dear me <3> A C-app and a C++ needs some consideration, yes <4> I've run into a bit of a mystery. <4> Compiling ffmpeg on fbsd on an amd64 machine. -O causes an internal compiler error. <4> Checking the man page for gcc it says -O1 enables "-fdefer-pop -fmerge-constants -fthread-jumps -floop-optimize -fif-conversion -fif-conversion2 -fdelayed-branch -fguess-branch-probability -fcprop-registers -fomit-frame-pointer" <4> If I do the compile with all of those options instead of -O1 it compiles fine. <2> RadSurfer, like? <2> UberDuper, its possible there is some compatibility issue with amd64 optimization <2> reduce the optimization <4> So I'm ***uming there additional optimizations being enabled that the man page isn't listing. <3> I think I've exhausted my knowledge on the subj T`, but good luck. <4> So is there any difinitive way to find out what -O1 is actually doing? <4> It makes no sense that -O1 doesn't work but -fdefer-pop -fmerge-constants -fthread-jumps -floop-optimize -fif-conversion -fif-conversion2 -fdelayed-branch -fguess-branch-probability -fcprop-registers -fomit-frame-pointer <4> does <2> UberDuper, hmm <2> UberDuper, it might be be a bug in the manual <2> RadSurfer, sorta know why this is happening, but no solution yet <2> UberDuper, do you know how .so files's symbols have <symbol>@@GLIBC2.2.4 etc..? <4> Nope. <4> I'ma noob. <2> heh ok.. <2> xushi_, hi.. do youj know anything about linking with shared libs?
Return to
#gcc or Go to some related
logs:
logitech mx514 apt-get distro-update #linuxhelp xmule permission denied __ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm gnome segv2 simcop what is? debian corrupted aim dpkg-deb chuck decriese #perl
|
|