AOLserver Chat Logs

2007/07/26

IRC [01:32] *** holycow parted the chat.
IRC [04:45] <frankie> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=434713
IRC [04:46] <frankie> any ideas? it seems a name collision due to current gcc
IRC [04:46] <frankie> Dossy: ^^^
IRC [06:40] <partymola> frankie: it's a linking problem. I'd try executing that same line but testing removing some linking flags, like -lgcc_s (i've never seen it lol)
IRC [06:42] <frankie> partymola: it seems a name collision to me instead, it worked until gcc recently changed
IRC [06:42] <partymola> i think it's being linked against too many libraries, try doing what i said :)
IRC [06:46] <frankie> http://buildd.debian.org/fetch.cgi?pkg=aolserver4;ver=4.5.0-9;arch=amd64;stamp=1182110474
IRC [06:47] <frankie> it had exactly the same libraries and worked like a charm
IRC [06:48] <partymola> the fact is that it doesn't work now, so something fails in the building process
IRC [06:48] <partymola> i bet it's linking
IRC [06:50] <frankie> yes, that's sure: there' a different gcc version now
IRC [07:08] <partymola> and... what about installing the older version?
IRC [08:34] <Dossy> looking now ...
IRC [08:37] <Dossy> frankie: Is the Tcl being compiled with built with --enable-threads?
IRC [08:37] <frankie> Dossy: yes afaik
IRC [08:37] <Dossy> Don't bug reports come with a system package list?
IRC [08:37] <frankie> i can provide it
IRC [08:38] <Dossy> Check the version of tcl8.4-dev?
IRC [08:38] <Dossy> Or, does the aolserver4 package build Tcl itself?
IRC [08:39] <frankie> no use the stock one
IRC [08:39] <Dossy> I see. What version of gcc?
IRC [08:39] <frankie> but i'm seeing that the new tcl 8.4.15 gives that result...
IRC [08:39] <frankie> 4.1.3
IRC [08:40] <Dossy> Hmm.
IRC [08:41] * frankie checks tcl config...
IRC [08:41] <Dossy> Makefile:39: include/ns.mak: No such file or directory
IRC [08:41] <Dossy> make[1]: *** No rule to make target `include/ns.mak'. Stop.
IRC [08:41] <Dossy> ?
IRC [08:41] <Dossy> Oh, you start out with a "make distclean"
IRC [08:42] <frankie> yep just packaging inners
IRC [08:43] <Dossy> I worry about this: pthread.c:901: warning: implicit declaration of function 'pthread_getattr_np'
IRC [08:44] <frankie> that's for some missing header probably
IRC [08:47] <Dossy> Wait, the buildd URL you gave before is a successful build?
IRC [08:47] <frankie> yes
IRC [08:48] <Dossy> So, where's the URL for the failed build that the bug report is for?
IRC [08:48] <frankie> anyway downgrading tcl solves the issue, so that's some problema with the new -dev package apparently
IRC [08:48] <frankie> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=434713
IRC [08:48] <frankie> that's the failure, but i can reproduce it on current sid
IRC [08:48] <Dossy> oh, you can?
IRC [08:48] <Dossy> weird.
IRC [08:51] <frankie> --enable-threads is present
IRC [08:52] <frankie> 8.4.15-1 0
IRC [08:52] <frankie> 990 http://ftp.it.debian.org unstable/main Packages
IRC [08:52] <frankie> *** 8.4.12-1.1 0
IRC [08:52] <frankie> 500 http://ftp.it.debian.org testing/main Packages
IRC [08:52] <frankie> it fails with 8.4.15 but works with 8.4.12
IRC [09:00] <frankie> Dossy: is there any definition of _init in aolserver code? nslibinit.c apparently has not
IRC [09:13] <Dossy> yeah, grep your build output for _init
IRC [09:19] <frankie> ah merde, as frech said
IRC [09:19] <frankie> INIT = _init
IRC [09:19] <frankie> that's in the ns.mak
IRC [09:20] <frankie> i was looking in the C sources :-/
IRC [09:21] <frankie> Dossy: what's that? it says dynamic library entry point flags, but it collides with some other sym
IRC [09:40] <Dossy> yeah
IRC [09:41] <Dossy> It's the symbol called when a .so is loaded for init
IRC [09:42] <frankie> is that aolserver specific or tcl specific?
IRC [09:42] <frankie> it seems the second one
IRC [09:42] <frankie> at least that could explain the failure with a specific tcl version
IRC [09:46] <Dossy> neither
IRC [09:47] <Dossy> look at "man dlopen" and search for "_init"
IRC [09:47] <Dossy> The problem may be in the linking phase.
IRC [09:47] <Dossy> Tcl's linker flags may have changed.
IRC [09:48] <frankie> The obsolete symbols _init and _fini
IRC [09:48] <frankie> here says that both them are deprecated
IRC [09:49] <frankie> Instead, libraries should export routines using the __attribute__((constructor)) and __attribute__((destructor)) function
IRC [09:49] <frankie> attributes.
IRC [09:49] <frankie> that could implies that simply tcl has been updated for that after 8.4.12
IRC [09:49] <frankie> *imply
IRC [09:53] <frankie> Dossy: it suggests using -nostartfiles at linking time to avoid linking with system startup files
IRC [09:53] <frankie> Dossy: the whole think is deprecated anyway :-(
IRC [09:53] <frankie> *thing
IRC [09:56] <frankie> Dossy: ok, the gcc call is changed and misses -nostartfiles
IRC [09:57] <frankie> Dossy: which causes the issue, but now the question is: it is a bug in the new tcl or a know change?
IRC [09:58] <frankie> *known
IRC [09:58] <Dossy> Not sure.
IRC [09:59] <frankie> sigh
IRC [09:59] <Dossy> Could be a known change? Hmm.
IRC [09:59] <frankie> i already noted that aolserver4 should use tcl.m4 now, not the old shell script
IRC [10:01] <Dossy> yeah.
IRC [10:01] <Dossy> I'd like to rework the AOLserver 4.5 build *again* ... ugh
IRC [10:01] <Dossy> :-)
IRC [10:03] <frankie> sorry to flooding the chan with my comments about that issue :-/
IRC [10:21] <Dossy> No worries--it's good, since it gets captured in the chat logs.
IRC [10:25] <frankie> Dossy: ok found
IRC [10:25] <frankie> yay
IRC [10:25] <frankie> TCL_SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
IRC [10:26] <frankie> but you check for *gcc* in order to add -nostartfiles
IRC [10:26] <frankie> so it does not work
IRC [10:26] * frankie bug squashed
IRC [10:27] <frankie> that's of course in current tclConfig.sh
IRC [10:28] <frankie> so, configure.in needs a fix
IRC [10:32] <frankie> Dossy: i'll fix with a dirty trick, but it needs a better revision for sure to detect gcc
IRC [10:33] <frankie> Dossy: for instance, autoconf already has a macro to detect gcc if i remember correctly
IRC [10:38] <frankie> Dossy: do you prefer i submit a report for aolserver?
IRC [12:04] *** holycow joined the chat.
IRC [15:56] <Dossy> yeah, send me a patch so I don't forget to include the change, I guess