Search the web
Sign In
New User? Sign Up
metamod · Metamod Half-Life Utility Mod
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
MetaMod and libstdc++.so   Message List  
Reply | Forward Message #720 of 723 |
Re: [metamod] MetaMod and libstdc++.so


> LoadLibrary failed on ./cstrike/dlls/mymodule.so: Undefined symbol:
> "__gxx_personality_v0"

Yes, uhm, this might be since newer gcc/glibc combinations. I'm not sure
but I think this wasn't a problem with older versions. So you might have
to link with g++.

> And one other thing I recognized: MetaMod does not have the dependency
> "libgcc_s.so.1". Which library is that? Is this the C-Standard Library?

No, the Standard C library, glibc, is /lib/libc.so.6
See http://gcc.gnu.org/onlinedocs/gccint/Libgcc.html for libgcc.

> And how can I link the libstdc++.a statically (I mean the link
> parameters for linking).

Just link it in explicitly. This is from the Admin Mod link line (only
part of it):

g++ -Wall -o admin_MM_i386.so objMM/dll.o objMM/AmFSNode.o
objMM/amlibc.o objMM/amxconvert_l.o /usr/lib/libstdc++-libc6.2-2.a.3
-ldl -lcrypt -lm -L../../commonlib -lamcommon -shared -nodefaultlibs
-lc -lgcc

This is a bit hacky, though. Agreed. But it worked for us. The
distributed Makefile would link against libstdc++.so, of course. Only
the locally linked and then distributed binary is linked statically
against stdc++.

Regards,
Florian



Fri Jan 2, 2009 3:06 pm

zschocke@...
Send Email Send Email

Forward
Message #720 of 723 |
Expand Messages Author Sort by Date

Hello everyone, I have a question about linux and metamod. MetaMod does not need to use libstdc++.so (metamod_i386.so executable)? Is that right? I have made...
dieterpeter42
Offline Send Email
Jan 1, 2009
5:45 pm

On Thu, Jan 1, 2009 at 2:41 PM, dieterpeter42 <dieterpeter42@...> wrote: Hi! ... Metamod does not need the Standard C++ library since we use no ...
Florian Zschocke
zschocke@...
Send Email
Jan 1, 2009
10:14 pm

... Hey thanks for your reply. When I use gcc instead of g++ I get the following error from HLDS: LoadLibrary failed on ./cstrike/dlls/mymodule.so: Undefined...
dieterpeter42
Offline Send Email
Jan 2, 2009
3:45 pm

... Yes, uhm, this might be since newer gcc/glibc combinations. I'm not sure but I think this wasn't a problem with older versions. So you might have to link...
Florian Zschocke
zschocke@...
Send Email
Jan 2, 2009
4:07 pm

You shouldn't link to libstdc++*.a directly. One way to get around C++ linkage errors when invoking gcc is to reimplement a few choice functions: ...
David Anderson
player220101
Offline Send Email
Jan 5, 2009
12:43 am

... Okay, but could you explain the reason? Thanks, Florian...
Florian Zschocke
zschocke@...
Send Email
Jan 5, 2009
10:08 am

If you're not using C++ features maybe it's okay. I guess the risk is that multiple copies of the runtime might not play well with each other. Here's two...
David Anderson
player220101
Offline Send Email
Jan 6, 2009
9:26 am
< Prev Topic  |  Next Topic >
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help