[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: making 'bmake' on Linux



<19980807231116U.makoto@ki.nu>の記事において
1998年08月07日23時11分頃、makoto@ki.nuさんは書きました。

 > root@harry  22:55:00/980807(...usr.bin/make2)# make -f Makefile.boot
 > util.c: In function `strftime':
 > util.c:467: dereferencing pointer to incomplete type

util.cの359行目

#ifdef BSD4_4

を

#if !defined(BSD4_4) && !defined(linux)

にしてみてください。compileできるはずです。


# 3dfx glide用のlinux 開発環境(emul)が役にたった :-)


 > このような字が出るので、NetBSD: の time.h を持って来
 > て、それを見るようにしたのですが、今度は
 > 
 > util.c: In function `strftime':
 > util.c:439: argument `fmt' doesn't match prototype
 > time.h:104: prototype declaration
 > util.c:439: argument `tm' doesn't match prototype
 > time.h:104: prototype declaration
 > 
 > となってしまって、仲々進みません。(まあ、それなりにいい勉強
 > ではあるかも知れませんが)

util.cは、ファイル先頭のcomment(Missing stuff from OS's)通り、
OSに足らない関数を補うものです。

Linuxには、このファイル中の関数はすべてあるので、
全部compileしないようにすればよいのです。


 > NetBSD-sun3x に戻ることを考えた方がいいかな。

compile時間考えると、こうやってても元取れるかも...


 > # 全然 powerpc ねたでなくなっている気がしますが。

問題なしっす

sakamoto@cec.co.jp