AOLserver Chat Logs

2009/06/11

IRC [02:45] *** frankie parted the chat.
IRC [03:28] *** frankie joined the chat.
IRC [14:08] *** Peaceful joined the chat.
IRC [14:09] <Peaceful> I've got a new Gentoo box, and I'm trying to get aolserver to compile and having troubles.
IRC [14:09] <Peaceful> The old box was 32-bit linux and I built aolserver through portage.
IRC [14:09] <Peaceful> The new box is 64 bit (with multi-lib), but Gentoo has removed aolserver from the repository. I've tried getting the old 4.0.10 ebuild, adding it to my custom portage overlay, and using that, but it fails with a compile error.
IRC [14:10] <Peaceful> So I tried downloading the 4.5 tarball from sourceforge, but it also fails with a compile error.
IRC [14:10] <Peaceful> I'm not a C developer, so I don't quite understand what the compile errors mean. I'll go pastebin them...
IRC [14:10] <Peaceful> The 4.5 compilation output (and configuration output above it) is here: http://pastebin.com/m16ef4fde
IRC [14:10] <Peaceful> Obviously, the errors are near the bottom of the output.
IRC [14:10] <Peaceful> I'm using tcl 8.4.18 compiled with threads. This is the only version of tcl installed, and it was installed through portage.
IRC [14:12] <Peaceful> The compile error on 4.0.10 from the old ebuild is different: http://pastebin.com/m487fb542
IRC [14:13] <Peaceful> I highly suspect 64-bit involvement in the problem here. This is the first 64-bit distro I've ever tried to install aolserver on.
IRC [14:24] <Peaceful> So I found that someone had a similar error with 4.0.10 and it was solved by downgrading from tcl 8.4.15-dev to 8.4.12. I tried to replicate that, but the earliest version of tcl in portage is 8.4.15. I downgraded to .15 and got the exact same error trying to compile 4.0.10.
IRC [14:26] * Peaceful is patient. I will be here all day every day until I get this to work. We've got to move our legacy aolserver code from the old failing server to this shiny new one.
IRC [14:27] <Peaceful> ...and I realize that this is a small channel which people don't stare at all day. But quiet channels are spooky so I talk to myself to keep my sanity.
IRC [14:30] <Peaceful> So, if I'm reading things right the final error on the 4.0.10 compile is:
IRC [14:30] <Peaceful> pthread.o -L/usr/lib64 -ltcl8.4 -ldl -lpthread -lieee -lm -Wl,-O1 -lz -lgcc_s -Wl,-rpath,:/usr/lib64/usr/lib
IRC [14:30] <Peaceful> pthread.o: In function `_init':
IRC [14:30] <Peaceful> pthread.c:(.text+0x620): multiple definition of `_init'
IRC [14:30] <Peaceful> It's that last line that I googled on.
IRC [14:32] <Peaceful> While the 4.5 compile problem seems to be:
IRC [14:32] <Peaceful> x86_64-pc-linux-gnu-ranlib: '/usr/lib/libnsthread.a': No such file
IRC [14:32] <Peaceful> with warnings galore
IRC [14:38] <Dossy> OK ...
IRC [14:38] <Dossy> _init
IRC [14:38] <Dossy> multiple definition of init_ ?
IRC [14:38] <Dossy> aim, multiple definition of _init?
IRC [14:39] * Dossy can't remember the factoid, argh
IRC [14:40] <Dossy> Peaceful, the problem is caused by a change in the Tcl build setup - looking for a link for you now.
IRC [14:40] <Dossy> bot, init error?
IRC [14:40] <Dossy> bot, _init error?
IRC [14:40] <Dossy> Peaceful, ok - look at that link.
IRC [14:42] * Peaceful is back. Looking at the link...
IRC [14:48] <Peaceful> ok, 4.5 wasn't failing with the _init error, and -nostartfiles was already showing up in it. So no difference there. Now to try it on the abandoned 4.0.10 ebuild, which takes a little longer...
IRC [14:50] <Peaceful> The 4.0.10 ebuild contains an nptl patch, which may or may not be related to the problems with 4.5, btw.
IRC [14:52] <Dossy> Hmm ..
IRC [14:52] <Peaceful> Dossy: progress! Now 4.0.10 fails with a different error!
IRC [14:52] <Dossy> :)
IRC [14:53] <Peaceful> pastebinning...
IRC [14:54] <Peaceful> post-"_init error" compiling problems with 4.0.10: http://pastebin.com/m420c41f8
IRC [14:55] <Peaceful> Is this the error throwing it? "conn.c:843: error: invalid lvalue in assignment"
IRC [14:57] <Peaceful> Googling seems to bring this issue up, but there are confusing and various reports of how it was solved: http://www.openacs.org/forums/message-view?message_id=309814
IRC [14:57] <Peaceful> at least, confusing to me.
IRC [14:58] <Dossy> If you're starting a-new, I'd say ignore 4.0.10 at this point and definitely start with 4.5.x
IRC [14:58] <Peaceful> Someone mentioned that 4.0.11 should have all the fixes. Is there such a thing?
IRC [14:58] <Peaceful> Dossy: okay, as long as it'll run the old tcl code I'm fine with that
IRC [14:58] <Peaceful> So the 4.5 problems are here: http://pastebin.com/m16ef4fde
IRC [14:59] <Dossy> the "invalid lvalue in assignment" is fixed in the tip of the aolserver_v40_bp branch, but not worth worrying about now.
IRC [14:59] <Peaceful> brb in 2 mins
IRC [14:59] <Dossy> Can you just do a plain "gmake" and not "gmake install" and see if it all compiles at least?
IRC [15:03] <Peaceful> nope, I can try that
IRC [15:03] <Peaceful> just a sec, real life is intervening...
IRC [15:09] <Peaceful> Dossy: ok, so just "gmake" seems to work fine. It exits with a zero status and no obvious error messages that I could see, anyway. There were lots of warnings, though. http://pastebin.com/m37dafcd6
IRC [15:09] <Peaceful> Each time I run a gmake command, I "gmake clean" and "tclsh nsconfig.tcl" first.
IRC [15:10] <Peaceful> So, if it's compiling fine, I _ought_ to be just about there, eh?
IRC [15:11] * Dossy nods.
IRC [15:11] * Peaceful is called to a meeting. I'll be back.
IRC [15:11] <Dossy> OK.
IRC [15:12] <Dossy> FYI, when you get back - after "tclsh nsconfig.tcl", do "gmake" then "gmake install" after.
IRC [15:12] <Dossy> There seems to be a problem with the "install" target that doesn't do the "ar rv" to create libnsthread.a _before_ it tries to install it.
IRC [15:12] <Dossy> doing "gmake" first to compile everything, then a second "gmake install" to install it _ought_ to work, based on your pastebinned output.
IRC [17:34] <Peaceful> I'm back. Talk about a long conference call, sheesh!
IRC [17:35] <Peaceful> lol
IRC [17:35] <Peaceful> is that all?
IRC [17:35] <Peaceful> gmake install seems to have run successfully after the gmake
IRC [17:35] <Peaceful> Yay!!!!
IRC [17:36] <Peaceful> Now on to nsopenssl and nspostgres...I can't really test aolserver without those.
IRC [19:05] *** Peaceful parted the chat.
IRC [19:09] <Dossy> :)
IRC [20:12] *** cacrus parted the chat.
IRC [20:21] *** cacrus joined the chat.
IRC [22:13] *** holycow parted the chat.