Menu

#1 FreeBSD compiling

open
nobody
None
5
2003-01-07
2003-01-07
Eric Timme
No

Real basic patch to make zone/world compile/run on FreeBSD.
Requires mysql libraries, as well as port devel/linuxthreads to build.
Seems to run fine, I get "client disconnected" though; however,
zones load, other crap gets spewed. See post on eqemu main
boards.

Basically I just had to add some declarations of sys/types.h to match
sys/socket.h, added some stuff to the makefiles to support
linuxthreads, and take out normal pthread support (so as not to
interfere with linuxthreads), and make the mysql includes a bit more
sane. Also added definition of _THREAD_SAFE (which is a good
idea anyhow), and __USE_UNIX98, which is needed so we can use
pthread_mutexattr_settype. We needed linuxthreads so that we
could use PTHREAD_MUTEX_RECURSIVE_NP, the NP of which,
by the way, stands for non-portable =P

And finally, we changed MSG_NOSIGNAL to simply 0, since
architectures other than Linux (not just FreeBSD) don't usually have
that defined.

What a mouthful.

Anyhow please post if this works for you guys, or if you can get to
the bottom of the disconnecting problem.

Discussion

  • Eric Timme

    Eric Timme - 2003-01-07
     
  • Eric Timme

    Eric Timme - 2003-01-07

    Logged In: YES
    user_id=658877

    btw, this most likely WILL break other operating systems in its current
    form..could use some ifdefs around some stuff so it's only included if
    compiling on FreeBSD. The makefile stuff is simply trouble on any
    non-FreeBSD box, however!

     
  • Eric Timme

    Eric Timme - 2003-01-08

    use this one, not the other one =)

     
  • Eric Timme

    Eric Timme - 2003-01-08

    Logged In: YES
    user_id=658877

    eqemu-freebsd-nice.patch shouldn't break anything ; don't use the other
    one, only the new one

     
  • Eric Timme

    Eric Timme - 2003-01-08

    use this one, not the other two

     
  • Eric Timme

    Eric Timme - 2003-01-08

    Logged In: YES
    user_id=658877

    one day i'll learn to use versions on my patches, i swear =(

    latest patchfile is fb.p, includes an up to date readme file, as well as seperate
    makefiles. resulted from a diff -ruN.

     
  • Eric Timme

    Eric Timme - 2003-01-09

    modified files against cvs

     
  • Eric Timme

    Eric Timme - 2003-01-09

    Logged In: YES
    user_id=658877

    uploaded gzipped tarball of changes against current cvs tree for all you
    windows folks. fixed a problem with some changes between makefiles in
    release and cvs, also. should be good to go, let me know on irc, nick
    var1ety

     
  • Derek Rodriguez

    Derek Rodriguez - 2003-01-12

    Logged In: YES
    user_id=686161

    how do i use this? im not sure, please help!

     
  • Eric Timme

    Eric Timme - 2003-03-01

    patch against 0.4.2-release for freebsd 4.x

     
  • Eric Timme

    Eric Timme - 2003-03-01

    Logged In: YES
    user_id=658877

    including patch against 0.4.2-release

     
  • Nobody/Anonymous

    Logged In: NO

    hey yall, got a question for you all...When i try to run my
    EQemu patcher, its all good, but when it trys to load, it just
    says "cannot load eqmain.dll anyone know what this means?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.