Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Bing, DotBot, Yandex

Members: 0
Guests: 17
Stats
Files
Topics
Posts
Members
Newest Member
481
3,739
19,386
621
KellieBusb
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Smaug Snippets » Dlsym
Forum Rules | Mark all | Recent Posts

Dlsym
< Newer Topic :: Older Topic > compile question

Pages:<< prev 1 next >>
Post is unread #1 Jun 6, 2003, 4:36 am   Last edited Nov 24, 2007, 12:52 am by Samson
Go to the top of the page
Go to the bottom of the page

Zhamel

GroupMembers
Posts68
JoinedApr 5, 2005

First off, I'm using FUSS. While trying to compile after putting in dlsym I got some errors. I tried to compair it to the AFKmud source but could find no differences that would account for the error. The main problem is the RTLD_LAZY part...
hotboot.c: In function `do_hotboot':
hotboot.c:708: warning: implicit declaration of function `dlclose'
hotboot.c:717: warning: implicit declaration of function `dlopen'
hotboot.c:717: `RTLD_LAZY' undeclared (first use in this function)
hotboot.c:717: (Each undeclared identifier is reported only once
hotboot.c:717: for each function it appears in.)
hotboot.c:717: warning: assignment makes pointer from integer without a cast
make[1]: *** [hotboot.o] Error 1

The prob area is this:
   sysdata.dlHandle = dlopen( NULL, RTLD_LAZY );
  if( !sysdata.dlHandle )
  {
bug( "%s", "FATAL ERROR: Unable to reopen system executable handle!" );
exit( 1 );
  }
       
Post is unread #2 Jun 6, 2003, 6:44 am   Last edited Nov 24, 2007, 12:52 am by Samson
Go to the top of the page
Go to the bottom of the page

Quixadhal
Conjurer
GroupMembers
Posts398
JoinedMar 8, 2005

The main problem is the RTLD_LAZY part...
hotboot.c: In function `do_hotboot':
hotboot.c:708: warning: implicit declaration of function `dlclose'
hotboot.c:717: warning: implicit declaration of function `dlopen'
hotboot.c:717: `RTLD_LAZY' undeclared (first use in this function)
hotboot.c:717: (Each undeclared identifier is reported only once
hotboot.c:717: for each function it appears in.)
hotboot.c:717: warning: assignment makes pointer from integer without a cast

You probably need to include the system header for the dl family of functions. Under OpenBSD (and most unix flavors), that's:
#include 

found via:
bash-2.05b$ grep RTLD_LAZY /usr/include/*.h
/usr/include/dlfcn.h:#define RTLD_LAZY  DL_LAZY         /* SunOS Compat */

I have no idea what a FUSS is, but the AFK source includes this header in 5 files:
comm.c:#include 
db.c:#include  /* Required for libdl - Trax */
hotboot.c:#include     /* Required for libdl - Trax */
mspecial.c:#include 
tables.c:#include 

Good luck!
       
Post is unread #3 Jun 6, 2003, 8:35 am
Go to the top of the page
Go to the bottom of the page

Zhamel

GroupMembers
Posts68
JoinedApr 5, 2005

Bleh. Like usual, the simplest solution...
Danka.
       
Pages:<< prev 1 next >>