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, Google, Sogou

Members: 0
Guests: 3
Stats
Files
Topics
Posts
Members
Newest Member
481
3,734
19,366
618
Micheal64X
Today's Birthdays
Vintar (28)
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » Debian
Forum Rules | Mark all | Recent Posts

Debian
< Newer Topic :: Older Topic > zlib.h

Pages:<< prev 1 next >>
Post is unread #1 Feb 27, 2004, 9:25 am   Last edited Nov 23, 2007, 11:48 pm by Samson
Go to the top of the page
Go to the bottom of the page

cynshard

GroupMembers
Posts95
JoinedNov 19, 2003

I recently moved from windows xp to Debian 2.4.24.
I changed my makefile by commenting the WINDOWZ option and uncommenting the
NEED_DL option. Upon furst make clean i get an error about needing zlib.h so I search
through debian's available packages ( through apt-get ) and the only version of zlib.h is included as an 'unstable' package. Needless to say, I'm getting some nasty things now.
I was wondering if anyone could post a copy of their working zlib.h and maybe I could make a local .h to replace all the calls to zlib.h, unless there is a better solution( which there probably is! ). And for those who are curious here is what happens when I attempt to start the mud:
Fri Feb 27, 2004 3:03:42 AM CST :: Loading auction houses...
Fri Feb 27, 2004 3:03:42 AM CST :: Obtained 7 stack frames.
Fri Feb 27, 2004 3:03:42 AM CST :: ../src/afkmud(_Z3bugPKcz+0xe1) [0x80dc09b]
Fri Feb 27, 2004 3:03:42 AM CST :: ../src/afkmud(_Z14load_aucvaultsv+0x15) [0x80a1a97]
Fri Feb 27, 2004 3:03:42 AM CST :: ../src/afkmud(_Z7boot_dbb+0x9b0) [0x80d653c]
Fri Feb 27, 2004 3:03:42 AM CST :: ../src/afkmud(_Z8init_mudbii+0x42) [0x80c98ee]
Fri Feb 27, 2004 3:03:42 AM CST :: ../src/afkmud(main+0x18b) [0x80cfead]
Fri Feb 27, 2004 3:03:42 AM CST :: /lib/libc.so.6(__libc_start_main+0xc6) [0x4015edc6]
Fri Feb 27, 2004 3:03:42 AM CST :: ../src/afkmud(dlopen+0x45) [0x806a181]

Thanks,
Cynshard

I did not delete anything, I simply copied everything over from my windows machine, installed zlib.h, and changed the Makefile to accomdate my using linux.
Ok, here is some more stuff to think about, while I get frustrated looking for some reason for this function to crash the mud.

I modified load_aucvaults to this:
void load_aucvaults( void )
{
  DIR *dp;
  struct dirent *dentry;
  char directory_name[100];
log_string("Load_aucvaults: Created Vars... ";);
   mudstrlcpy( directory_name, AUC_DIR, 100 );
log_string("Load_aucvaults: mudstrlcpy";);
  dp = opendir( directory_name );
log_string("Load_aucvaults: dp = opendir";);
  dentry = readdir( dp );
log_string("Load_aucvaults: dentry";);
  while ( dentry )
  {
     if ( dentry->d_name[0] != '.' )
     {
       /* Added by Tarl 3 Dec 02 because we are now using CVS */
         if( str_cmp( dentry->d_name, "CVS" ) )
    {
   if( str_cmp( dentry->d_name, "sales.dat" ) )
      read_aucvault( directory_name, dentry->d_name );
     }
     }
     dentry = readdir( dp );
  }
 log_string("Passed...";);
  closedir( dp );
  return;


And when I start the mud I get this just before the seg fault:
Fri Feb 27, 2004 11:38:49 PM CST :: Loading auction houses...
Fri Feb 27, 2004 11:38:49 PM CST :: Load_aucvaults: Created Vars...
Fri Feb 27, 2004 11:38:49 PM CST :: Load_aucvaults: mudstrlcpy
Fri Feb 27, 2004 11:38:49 PM CST :: Load_aucvaults: dp = opendir
Segmentation fault


So, it seems that dp might be null, but why?
       
Post is unread #2 Feb 27, 2004, 5:03 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,643
JoinedJan 1, 2002

That's an unusual backtrace bug, there's no **BUG** message to go with it to indicate what happened, other than it's trying to load one of the auction valuts. Did you perhaps delete the mob? This isn't a zlib related issue btw.
       
Post is unread #3 Feb 27, 2004, 9:54 pm
Go to the top of the page
Go to the bottom of the page

cynshard

GroupMembers
Posts95
JoinedNov 19, 2003

well, i went into the root of the afkmud directory and added a folder called aucvaults, and it passed that function only to gag on clan/guild shops...
I guess I never had all the right folders on my windows machine. Imagine that...

Shame on cygwin for not crapping out on the lack of aucvaults and shops directories.
       
Post is unread #4 Feb 28, 2004, 4:21 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,643
JoinedJan 1, 2002

Ah yes, that would do it. Word of advice: When using Cygwin, treat the tgz file like you would in Linux. Use the tar comand inside Cygwin to unpack it. All the empty dirs in the tgz will then be properly created.
       
Post is unread #5 Feb 29, 2004, 2:25 pm
Go to the top of the page
Go to the bottom of the page

Garil

GroupMembers
Posts9
JoinedDec 24, 2003

zlib.h is in the package zlib1g-dev in Debian 3.0 (woody), the version you likely have. 2.4.24 is a kernel version not a Debian release. apt-get install zlib1g-dev should get you what you need.
       
Pages:<< prev 1 next >>