#exult@irc.freenode.net logs for 8 Sep 2008 (GMT)

Archive Today Yesterday Tomorrow
Exult homepage


[00:00:08] --> Kirben has joined #exult
[00:00:09] --- ChanServ gives channel operator status to Kirben
[00:10:53] <-- Sevalecan has left IRC ("Leaving")
[00:36:18] --> Sevalecan has joined #exult
[01:14:24] <-- Sevalecan has left IRC ("Leaving")
[01:17:30] --> Sevalecan has joined #exult
[02:34:04] --- Sevalecan is now known as Sevalebed
[03:10:02] --- Marzo_away is now known as Marzo
[03:44:01] --- Marzo is now known as Marzo_away
[04:11:11] <-- Baastuul has left IRC ("I, too, have lost a kingdom.")
[04:12:57] <-- RadoS has left IRC (Read error: 131 (Connection reset by peer))
[09:41:28] --- Marzo_away is now known as Marzo
[09:43:28] <-- Marzo has left IRC ("Marzo vanishes suddenly.")
[11:28:16] --- Sevalebed is now known as Sevalecan
[11:31:28] <-- Sevalecan has left IRC ("Leaving")
[11:34:33] --> Sevalecan has joined #exult
[11:59:30] --> RadoS has joined #eXult
[12:37:02] --> Baastuul has joined #exult
[12:59:33] --> Marzo has joined #exult
[15:32:36] --- Marzo is now known as Marzo_away
[15:40:00] --- Marzo_away is now known as Marzo
[15:54:09] <-- Kirben has left IRC (Read error: 110 (Connection timed out))
[15:58:18] <-- shazza has left IRC ()
[15:58:44] <-- Darke has left IRC (Read error: 113 (No route to host))
[16:34:47] --- Marzo is now known as Marzo_away
[17:17:14] --- Marzo_away is now known as Marzo
[17:19:04] <-- Baastuul has left IRC (Read error: 110 (Connection timed out))
[17:42:39] --- Marzo is now known as Marzo_away
[17:45:49] --> Zxcvb has joined #exult
[17:46:15] <Zxcvb> the version of ultima 7 and serpent isle that comes with the ultima collection doesn't need to be patched, right?
[17:46:45] <wjp> correct; they're the latest versions
[18:07:34] --> Baastuul has joined #exult
[18:33:41] --- Marzo_away is now known as Marzo
[19:13:51] --- Marzo is now known as Marzo_away
[19:17:27] --- Marzo_away is now known as Marzo
[20:18:16] <-- Zxcvb has left IRC ("Leaving")
[20:42:39] <-- Baastuul has left IRC (Read error: 110 (Connection timed out))
[20:59:48] --- Marzo is now known as Marzo_away
[21:00:12] --- Marzo_away is now known as Marzo
[22:16:00] <-- Sevalecan has left IRC ("I modified my kernel. Goodbye everyone.")
[22:17:39] --- Marzo is now known as Marzo_away
[22:17:57] --- Marzo_away is now known as Marzo
[22:24:49] --> Sevalecan has joined #exult
[22:30:00] --- Marzo is now known as Marzo_away
[22:30:46] --- Marzo_away is now known as Marzo
[22:52:33] --> Baastuul has joined #exult
[23:03:08] --> Flyn1 has joined #exult
[23:03:18] <Flyn1> Hi everyone
[23:03:50] <Flyn1> Can anyone help me with a quick Exult compilation question please?
[23:04:09] <Marzo> Shoot
[23:04:34] <Flyn1> Flat.cc: In member function ‘virtual char* Flat::retrieve(uint32, size_t&)’:
[23:04:34] <Flyn1> Flat.cc:62: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
[23:04:34] <Flyn1> make[3]: *** [Flat.lo] Error 1
[23:04:38] <Flyn1> any thoughts?
[23:04:54] --- Flyn1 is now known as FlynO
[23:05:39] <Marzo> What compiler?
[23:05:55] <FlynO> gcc version 4.3.2
[23:06:22] <Marzo> The warning should be non-fatal
[23:06:33] <Marzo> Is there anything else in the error output?
[23:06:57] <FlynO> Hmm
[23:06:59] <FlynO> utils.h: In function ‘std::string ReadStr(char*&, int)’:
[23:06:59] <FlynO> utils.h:258: error: ‘strchr’ was not declared in this scope
[23:06:59] <FlynO> utils.h:260: error: ‘strncpy’ was not declared in this scope
[23:07:03] <FlynO> How about this then?
[23:07:12] <Marzo> That could be it
[23:07:23] <FlynO> I'll see if it was declared
[23:10:01] <Marzo> Try adding "#include <cstring>" (without the quotes) in a new line at about line 26
[23:10:33] <Marzo> But before that, try addint "std::" before the names of the functions
[23:10:51] <FlynO> Thanks, I'll try it out now.
[23:12:12] <FlynO> std:: is already there
[23:12:29] <Marzo> In lines 258 and 260?
[23:12:32] <FlynO> adding the #include <cstring> fixed one problem but created another
[23:12:33] <FlynO> one sec
[23:12:51] <FlynO> In file included from Flex.cc:27:
[23:12:51] <FlynO> Flex.h: In copy constructor ‘Flex::Flex(const Flex&)’:
[23:12:51] <FlynO> Flex.h:58: error: ‘memcpy’ is not a member of ‘std’
[23:12:51] <FlynO> Flex.h:59: error: ‘memcpy’ is not a member of ‘std’
[23:12:51] <FlynO> Flex.h: In member function ‘Flex& Flex::operator=(const Flex&)’:
[23:12:52] <FlynO> Flex.h:66: error: ‘memcpy’ is not a member of ‘std’
[23:12:54] <FlynO> Flex.h:67: error: ‘memcpy’ is not a member of ‘std’
[23:12:56] <FlynO> In file included from Flex.cc:35:
[23:14:08] <Marzo> Try adding the same include below line 25
[23:14:26] <FlynO> ;-) I was just trying that, one sec.
[23:16:32] <Marzo> If I am not mistaken, you will receive a more errors
[23:16:47] <FlynO> Indeed I am :-)
[23:16:59] <FlynO> Table.cc: In member function ‘void Table::IndexTableFile()’:
[23:16:59] <FlynO> Table.cc:58: error: ‘exit’ is not a member of ‘std’
[23:16:59] <FlynO> make[3]: *** [Table.lo] Error 1
[23:17:19] <FlynO> I really need to learn to program properly so I can actually read other people's code and fix it.
[23:17:33] <FlynO> I'm a bit lost there.
[23:17:56] <Marzo> Take this file: http://ettin.org/tmp/exult/gcc4_build_fix.patch
[23:18:27] <Marzo> Applying it to the code and try compiling
[23:18:43] <FlynO> One sec
[23:19:13] <Marzo> (although there *might* be a few problems depending on how recent your svn snapshot is)
[23:19:29] <FlynO> Latest one.
[23:19:55] <Marzo> The patch is a few days old, although it may still work
[23:21:08] <Marzo> If it compiles correctly with the patch, let me know
[23:21:14] <FlynO> Hmm. Am I correct in using "patch -p0 gcc4_build_fix.patch"?
[23:21:56] <Marzo> I suppose (the patch was actually submitted by ettin to the patch tracker)
[23:23:08] <Marzo> brb
[23:23:34] <FlynO> I'm actually reading up on trying to fix it myself, as the patch doesn't appear to be working.
[23:28:12] <FlynO> Ok, I fixed that one with #include <cstdlib>
[23:33:10] --- Marzo is now known as Marzo_away
[23:36:36] --- Marzo_away is now known as Marzo
[23:36:41] <Marzo> back
[23:37:25] <FlynO> I'm adding #include <cstdlib> and #include <cstring> in all the necessary places...
[23:37:39] <Marzo> The patch assumes a different base directory
[23:38:45] <FlynO> So is there a more intelligent/efficient solution than what I'm doing at the moment.
[23:38:59] <FlynO> Um, there should have been a ? at the end there?
[23:39:07] <FlynO> Doh
[23:39:09] <FlynO> ITs late.
[23:39:55] <Marzo> Replacing all the "exult-1.2+svn5970" and "exult-1.2+svn5970.orig" with the correct paths in your system
[23:40:27] <FlynO> Ok then.
[23:40:34] <FlynO> Thanks. I'll try that.
[23:45:26] --> Kirben has joined #exult
[23:45:26] --- ChanServ gives channel operator status to Kirben
[23:54:39] --> Ember has joined #exult
[23:54:45] --- Ember is now known as Darke
[23:59:52] --- Marzo is now known as Marzo_away