Results 1 to 2 of 2

Thread: Glibc_2.15

  1. #1
    Join Date
    Oct 2012
    Beans
    2

    Exclamation Glibc_2.15

    Hey!

    I'm trying to compile an extension with CPP and C files for a gaming server.
    The problem is that the systems where the game servers are hosted doesn't support GLIBC_2.15.

    How should I compile my extension to be able to work without GLIBC_2.15?
    Or how should I include that in my extension to not require it from other machine?

    I'm compiling it with the next Makefile:

    PHP Code:
    COMPILER g++-4.6
    OBJECTS 
    indungi_zombie.o amxxmodule.o GeoIP.o GeoIPCity.o regionName.o timeZone.o
    FILENAME 
    indungi_zombie_amxx_i386.so

    $(FILENAME) : $(OBJECTS)
      $(
    COMPILER) -$@ $(OBJECTSlibmysqlclient.-shared -ldl -lm -s

    %.: %.cpp
      
    $(COMPILER) -O2 -ffast-math -fpermissive -IHeaders -IMySQL -$@ -$< 
    I underline that I'm really new in Linux and I just use Linux to compile things for Linux hosted applications.

    Thanks in advance!
    Have a good day!

    - Claudiu

  2. #2
    Join Date
    Apr 2009
    Location
    Germany
    Beans
    2,134
    Distro
    Ubuntu Development Release

    Re: Glibc_2.15

    the simplest way is to just get a copy of the old libc and compile against that

    otherwise this works:
    http://stackoverflow.com/a/8862631/1633169
    http://www.trevorpounds.com/blog/?p=103

    to figure out the symbols needing the newer glibc use objdump -x
    search for stuff like this:
    memcpy@@GLIBC_2.14
    Last edited by MadCow108; October 19th, 2012 at 02:17 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •