code logs -> 2007 -> Fri, 12 Jan 2007< code.20070111.log - code.20070113.log >
--- Log opened Fri Jan 12 00:00:25 2007
00:07 MyCatVerbs is now known as MyCatSleeps
00:18 Derakon[AFK] is now known as Derakon
00:53 Derakon is now known as Derakon[AFK}
00:53 Derakon[AFK} is now known as Derakon[AFK]
01:27 Safyra [Safyra@Nightstar-6407.ok.ok.cox.net] has joined #code
01:27 Safyra is now known as Stephenie
02:08 Stephenie [Safyra@Nightstar-6407.ok.ok.cox.net] has quit [Quit: ]
02:51 Derakon[AFK] is now known as Derakon
03:17 Chalcy is now known as Chalcedon
03:27 Derakon is now known as Derakon[AFK]
03:37 AnnoDomini [~farkoff@Nightstar-29499.neoplus.adsl.tpnet.pl] has quit [Quit: Nnnnnggggaaaahhhhh!!!!!! It is *dancing*!!!!]
03:51 timelady [~romana@Nightstar-19606.lns3.adl2.internode.on.net] has joined #Code
03:57 Derakon[AFK] is now known as Derakon
03:59 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
04:01 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
04:02 mode/#code [+o Chalcedon] by ChanServ
04:05 * MahalWork pokes at Code
04:05 MahalWork is now known as Mahal
04:07
<@ToxicFrog>
?
04:18 * Chalcedon poke Mahal back
04:18 * Mahal wonders if anyone in #Code know Flash.
04:18 * Mahal doesn't.
04:18 * Mahal want a very very simple Flash done.
04:18
<@Mahal>
Well.
04:18
<@Mahal>
*I* don't want it.
04:18
<@Chalcedon>
don't look at me I'm soryr
04:18
<@Mahal>
Someone I'm doing a website for will/.
04:18
< timelady>
id say no :)
04:19
<@Mahal>
Timelady, this is for a splash page
04:19
<@Mahal>
the rest is perfectly acceptable.
04:19
<@Mahal>
And I can't argue the splash page.
04:19
< timelady>
no sweet, id say n, i dont know it
04:20
<@ToxicFrog>
While I have used flash, I don't remember any of it.
04:20
<@ToxicFrog>
Thank god.
04:20
<@Mahal>
Oh, right.
04:20 * Mahal nods
04:20
<@Mahal>
Frog, I am suffering the same quandary.
04:20
<@ToxicFrog>
Steve, as far as I recall, is in the same situation.
04:20
<@Mahal>
Who?
04:21
<@ToxicFrog>
The friend of mine whose fault it is that I ever got involved in flash in the first place.
04:21
<@ToxicFrog>
We hacked together a little flash game in first year and then went and got our memories erased.
04:21
<@Mahal>
Ah
04:24
<@ToxicFrog>
(and my roomie, Blair, created the brief but amusing "Racial Calculus" animation, which sadly died with his laptop)
04:44 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
04:44 mode/#code [+o Chalcy] by ChanServ
04:45 timelady [~romana@Nightstar-19606.lns3.adl2.internode.on.net] has quit [Quit: run away! run away!]
04:45 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
04:51 Chalcy is now known as ChalcyOut
04:57 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
04:57 mode/#code [+o Chalcy] by ChanServ
04:58 ChalcyOut [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
04:59 ReivWork is now known as Reiver
04:59 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Connection reset by peer]
04:59 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
04:59 mode/#code [+o Chalcy] by ChanServ
05:16 * ToxicFrog huggles his regexes
05:16
<@ToxicFrog>
local mstart,mend,arg,remainder = string.find(str, "^([^%s]*)%s*(.*)$")
05:21 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Connection reset by peer]
05:22 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
05:22 mode/#code [+o Chalcy] by ChanServ
05:29 ChalcyGone [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
05:31 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
05:34 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
05:34 mode/#code [+o Chalcedon] by ChanServ
05:34 ChalcyGone [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
05:36 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
05:36 mode/#code [+o Chalcy] by ChanServ
05:38 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
05:58 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Connection reset by peer]
05:58 ChalcyGone [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
06:57 Derakon is now known as Derakon[AFK]
07:00 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
07:01 mode/#code [+o Chalcy] by ChanServ
07:02 ChalcyGone [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
07:03 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
07:03 mode/#code [+o Chalcedon] by ChanServ
07:04 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
07:09 Vornicus-Latens is now known as Vornicus
07:14 Reiver is now known as ReivOut
09:02 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
09:02 mode/#code [+o Chalcy] by ChanServ
09:03 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
09:03 Chalcy is now known as Chalcedon
09:07 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
09:07 mode/#code [+o Chalcy] by ChanServ
09:08 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Killed (NickServ (GHOST command used by Chalcy))]
09:08 Chalcy is now known as Chalcedon
09:25 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Quit: ]
10:19 You're now known as TheWatcher[wr0k]
10:23 timelady [~romana@Nightstar-19606.lns3.adl2.internode.on.net] has joined #Code
10:37 ReivOut is now known as Reiver
10:48 AnnoDomini [~farkoff@Nightstar-29499.neoplus.adsl.tpnet.pl] has joined #Code
10:49 Mahal is now known as MahalBed
11:27 timelady [~romana@Nightstar-19606.lns3.adl2.internode.on.net] has quit [Quit: run away! run away!]
14:41 You're now known as TheWatcher
15:47 Reiver is now known as ReivZzz
16:57 MyCatSleeps is now known as MyCatVerbs
17:17 You're now known as TheWatcher[afk]
17:25 AnnoDomini [~farkoff@Nightstar-29499.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
17:30 AnnoDomini [~farkoff@Nightstar-29717.neoplus.adsl.tpnet.pl] has joined #Code
18:42 You're now known as TheWatcher
19:18 MyCatVerbs is now known as MyCatIsAway
19:26 * ToxicFrog foams at the brain
19:27
<@ToxicFrog>
I've managed to create a Makefile that works in Make 3.80, but not in Make 3.81.
19:28
<@ToxicFrog>
...also, my Analysis of Algorithms prof appears to be incompetent. Lovely.
19:29
< jerith>
Hmm, that's odd.
19:29
<@ToxicFrog>
In 3.80, it (mostly) works.
19:30
<@ToxicFrog>
In 3.81, it spits out a dozen "Circular file.o <- file.h dependency dropped" messages and then says "nothing to be done for foo"
19:33
<@ToxicFrog>
The dependencies look something like:
19:33
<@ToxicFrog>
OBJS=(list of .o files)
19:33
<@ToxicFrog>
xclua.so: $(OBJS)
19:34
<@ToxicFrog>
%.o: $$*.c (list of .h files)
19:40
<@ToxicFrog>
Ok, make 3.81 appears to be Fucking Broken.
19:41
<@ToxicFrog>
I've managed to fix the circular dependency issues (by partially breaking depency tracking!) and now it's ignoring the actual build rules.
19:41
< jerith>
:-(
19:41
<@ToxicFrog>
Here's the rule for building object files:
19:41
<@ToxicFrog>
%.o: $$*.c
19:41
<@ToxicFrog>
$(CC) $(CCFLAGS) -o obj/$@ $< $I
19:41
<@ToxicFrog>
Here's the variable definitions:
19:41
<@ToxicFrog>
CC=gcc
19:41
<@ToxicFrog>
CCFLAGS=-O2 -shared -Wall -std=gnu99 -c
19:42
<@ToxicFrog>
Here's the command it execures:
19:42
<@ToxicFrog>
gcc -c -o xclua.o src/xclua.c
19:42
< jerith>
I don't recognise $$*, but it's been bloody ages since I fought with make.
19:43
<@ToxicFrog>
$$*.c is "the target file, only with .c on the end instead of .o", roughly.
19:43
< jerith>
Ah.
19:43
<@ToxicFrog>
So if it's building xclua.o, the rule becomes
19:43
<@ToxicFrog>
xclua.o: xclua.c
19:43
<@ToxicFrog>
gcc -O2 -shared -Wall -std=gnu99 -c -o xclua.o src/xclua.c -Iinclude -I/usr/local/include
19:43
<@ToxicFrog>
Err. -o obj/xclua.o
19:43
<@ToxicFrog>
And this works fine in 3.80.
19:45
<@ToxicFrog>
Fucking Make.
20:01
<@ToxicFrog>
Using -d provides no insight.
20:01
<@ToxicFrog>
It arrives at the conclusion that it has to rebuild xclua.o, and then executes the command above. No information is given as to how it conluded it needed to run that command.
20:02
<@ToxicFrog>
The one for "xclua.so" it executes the commands I specified, though!
20:02
<@ToxicFrog>
AAAGH
20:04
< jerith>
Perhap you're running into one of the built-in automagic rules?
20:06
<@ToxicFrog>
If I disable automagic rules with -R, it says "no rules to make target 'xclua.lb', needed by 'xclua.o'
20:06
<@ToxicFrog>
It's RIGHT THERE, as "%.lb: %*.lua"
20:07
< jerith>
Check whitespace?
20:07
< jerith>
Randomly reorder?
20:07
<@ToxicFrog>
Also there's the wacky dependency removing!
20:07
< jerith>
Grasp at straws?
20:07
<@ToxicFrog>
make: Circular xclua_callbacks.o <- xclua_callbacks.h dependency dropped.
20:07
<@ToxicFrog>
make: Circular xclua_callbacks.o <- xclua.h dependency dropped.
20:07
<@ToxicFrog>
make: Circular xclua_context.o <- xclua.h dependency dropped.
20:07
<@ToxicFrog>
(... many more lines of this ...)
20:09
<@ToxicFrog>
They aren't circular! .h files don't even have dependencies!
20:12
<@ToxicFrog>
Removing the .SECONDARY, .DELETE_ON_ERROR and .PHONY special targets fixes that, but it still claims it doesn't have a rule to create .lb files.
20:16
<@ToxicFrog>
Ok.
20:16
<@ToxicFrog>
Part of the problem is that .SECONDARYEXPANSION no longer works.
20:21
<@ToxicFrog>
So rules like "%.o: $$*.c" break.
20:39 MahalBed is now known as Mahal
21:53
<@ToxicFrog>
...
21:53
<@ToxicFrog>
This module is cursed, homehow.
21:53
<@ToxicFrog>
*somehow.
21:53
<@ToxicFrog>
Now I'm trying to build the windows version, and it's saying it can't find <lua.h>
21:53
<@ToxicFrog>
lua.h is in /usr/local/include.
21:53
<@ToxicFrog>
I'm passing -I/usr/local/include to gcc.
21:55
<@ToxicFrog>
It's successfully finding the stuff in ./include!
21:55 * ToxicFrog foams
21:56
<@ToxicFrog>
...
21:56
<@ToxicFrog>
....
21:56
< jerith>
I'd suggest a symlink, but...
21:56
<@ToxicFrog>
gcc-mingw32 won't accept /-relative paths.
21:56
<@ToxicFrog>
It works if I replace "/usr/local/include" with "c:/msys/local/include"
21:57
<@ToxicFrog>
It also works if I replace "/usr/local" with "/local"
21:57
< jerith>
...
21:58
<@ToxicFrog>
There will be suffering for this.
21:58
<@ToxicFrog>
Unfortunately, I have a creeping suspicion that it's all going to be on my end.
21:58
< jerith>
There already has been?
21:59
<@ToxicFrog>
And it builds!
21:59
<@ToxicFrog>
Thank god.
22:00
< jerith>
But does it work?
22:00
<@ToxicFrog>
I'm about to find out.
22:01
<@ToxicFrog>
Well, it initializes without dying messily all over the place.
22:01
<@ToxicFrog>
Let's see if the loader works.
22:02
<@ToxicFrog>
I had to write a windows version of ftw() for that, so it could be ugly.
22:03
<@ToxicFrog>
It's ALIIIIIIIIIIIIIIIIIVE!
22:03
<@ToxicFrog>
AHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA
22:04
<@ToxicFrog>
And now, stabbing windows in the face for not having a decent filesystem infrastructure.
22:05
< jerith>
tfw()?
22:05
< jerith>
*ftw()?
22:06
<@ToxicFrog>
File Tree Walk.
22:06
<@ToxicFrog>
ftw(3)
22:07
<@ToxicFrog>
Basically, you pass it a function and a directory name, and it calls the function on that directory and everything in it, to a specified depth.
22:07
<@ToxicFrog>
Handy for things like "load all files with a .lua or .lc extension under ~/.xchat2/plugins/"
22:08
< jerith>
Ah.
22:08
<@ToxicFrog>
I actually didn't bother with a full ftw implementation, since all I'm really after is stuff in plugins; I don't want to load, say, plugins/plugin-specific-directory/support-functions.lua
22:09
<@ToxicFrog>
So the linux half is a straightforward application of opendir/readdir/closedir, and the windows one is a somewhat less readable and more tortured application of FindFirstFile/FindNextFile.
22:10
< jerith>
:-(
22:11
<@ToxicFrog>
(the windows one is 35 lines. The linux one is 15 lines *including* code to filter by filename (which is built into Find*File in the windows api))
22:58 MyCatIsAway is now known as MyCatVerbs
23:11 * ToxicFrog eyes xchat_get_info
23:12
<@ToxicFrog>
xchat_get_info("libdirfs") (which is meant to return the directory from which it's loading plugin files) returns "."
23:12
<@ToxicFrog>
Which is not only unhelpful for doing stuff for which I need absolute paths, but is also false.
23:23 McMartin [~mcmartin@Nightstar-10827.dsl.pltn13.pacbell.net] has joined #code
23:23 mode/#code [+o McMartin] by ChanServ
23:23
<@McMartin>
Weirdest bug ever. http://uqm.stack.nl/forum/index.php?topic=3392
23:33 You're now known as TheWatcher[T-2]
23:36 You're now known as TheWatcher[zZzZ]
--- Log closed Sat Jan 13 00:00:25 2007
code logs -> 2007 -> Fri, 12 Jan 2007< code.20070111.log - code.20070113.log >