August 31, 2004

升级了binutils到2.15

为了正常编译glibc+nptl必须升级gas到2.15
于是升级binutils

tar xvzf glibc+nptl.tar.gz
mkdir glibc-build
cd glibc-build
../glibc+nptl/configure --prefix=/usr/lib/nptl --enable-add-ons=nptl --with-tls
编译glibc+nptl中

Posted by hufey at 11:13 AM | Comments (0)

2.6.8.1的kernel还是出毛病乐

K3b怎么办?我家里电脑还生不升级kernel了涅?



mooreted
Member

Registered: May 2003
Location:
Distribution:
Posts: 391
HCL Entries: 0
Reviews: 0

K3b. No writer after kernel 2.6.8.1 compile. ( post #1)

Description:

After compiling a new 2.6.8.1 kernel, K3b now shows only a CD reader. No CD burner is shown. Before compiling the new kernel, K3b worked perfectly.

Additional Info:

This kernel does not support supermount.

Questions:

1. Is the lack of supermount a factor in this problem?
2. Can K3b be made to work without a recompile?

__________________
Compaq 5300US
512meg Memory
Two Hard Drives
PNY Verto MX 4000 Video Card
Mandrake 10
Windows 2000 Pro


Report this post to a moderator | IP: Logged
Today 01:14 AM



mykrob
Member

Registered: Jun 2004
Location: Jackson, TN
Distribution: Suse 9.1 Professional
Posts: 195
HCL Entries: 0
Reviews: 0

( post #2)

i dont have a good answer, but the K3B website has this notice:

quote:
o not use Kernel 2.6.8

A patch that was introduced into the kernel shortly before the 2.6.8 release makes K3b and also the dvd+rw-tools unusable on Linux (unless run as root but that is not recommended). The very important GET CONFIGURATION MMC command is rejected by the kernel for reasons I cannot see and writing commands like MODE SELECT also fail (K3b cannot detect CD writers without it) even when the device is opened O_RDWR. Until this issue has been solved I strongly recommend to stick to kernel version 2.6.7.


Update: The kernel guys are currently fixing the problem so the next kernel release should work again.


Update 2: The problem is NOT fixed in 2.6.8.1


Update 3: Be aware that kernel 2.6.8 also contains the memory leak which makes it impossible to write audio cds, even as root.

Posted by hufey at 10:57 AM | Comments (1)

August 30, 2004

gaim 0.82

没找到RH9的RPM
sf.net上都是MDK的
不过FC1装上去看上去也没问题

Posted by hufey at 10:00 AM | Comments (2)

August 28, 2004

装上了Windows XP SP2

防火墙还不错
不好也不坏

Posted by hufey at 05:24 PM | Comments (0)

August 27, 2004

密云.两个半日


发生踩踏事故的那个桥

小小个密云县,有1个5星,1个4星,若干3星酒店
真是奇怪
据说县城里只有42万人
商业集中的主要街道只有两条
马路两边无数的巨漂亮的小区
都没有人住
晚上街上人很少,白天,人也不多
普通商品房每平米两千元左右,还见到
1千2一平米的

密云县距北京车程2小时,路况很好


酒店餐厅望出去


房间望出去

Posted by hufey at 10:39 PM | Comments (0)

August 23, 2004

LD_ASSUME_KERNEL会影响动态链接库

本来需要把同一段程序分别链接nptl版的pthread和LinuxThreads的pthread
但是发现无论如何设置 gcc -L/usr/tls 最后连的都是 /lib下老的pthread
最后发现是自己在升级kernel到2.6的时候,为了让老版本的rpm 能正常
工作而 export LD_ASSUME_KERNEL=2.2.5 导致的
重新 export LD_ASSUME_KERNEL=2.4.20就可以了

这个问题也有些奇怪,待考!

而立

Posted by hufey at 03:49 PM | Comments (0)

August 22, 2004

mini cooper

Posted by hufey at 04:41 PM | Comments (1)

August 20, 2004

装上了VMWare GSX 3.1

可以在2.6kernel下工作了
可是在我的电脑上会花屏
不知咋搞的
guest os是w2k
显示属性里显示器刷新频率是85
比我的XWindow设置的70还大
还有哪不对呢?

Posted by hufey at 04:37 PM | Comments (0)

August 19, 2004

xmms 中文支持

-adobe-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1,-isas-fangsong ti-medium-r-normal-*-*-160-*-*-c-*-gb2312.1980-0

Posted by hufey at 06:39 PM | Comments (0)

August 18, 2004

解决 MVL 不同版本冲突的办法

如果CGE, CEE 或 PRO的开发包装到同一台电脑上
由于路径的关系,很多script会调用到其他版本的程序
得到错误的路径。比如CGE的mvl-update-package会调用
hhl-whereami可能得出CEE的路径
解决办法就是临时把需要的路径提到前面去,反正重启动后
会恢复到原样--虽然原样也还是不能同时使用几个版本


#export PATH=/opt/montavista/cge/host/bin:$PATH

Posted by hufey at 03:48 PM | Comments (0)

狂笑 Why India is struggling with localized language computing

Why India is struggling with localized language computing (NewsForge)
(Posted Aug 17, 2004 20:02 UTC (Tue) by khim) (Post reply)

"Continuous innovation and improvement!" is good idea but on practice... instead of changes to make programs smarter people just accept computer speak broken english. I can not speak for Indians but here are sample from Russian.

It's in fact a long story about why not a single one non-native program have correct translation for simple two words phrase "N file(s)".

Yes, i18n rules dictate separate translation for N == 1 and N > 1.

But does it help much with Russian?

Not at all! Why the hell not?

Well... Here is correct tranlations:

* N = 1: "1 fajl"
* N = 2: "2 fajla"
* N = 5: "5 fajlov"
* N = 10: "10 fajlov"
* N = 11: "11 fajlov"
* N = 12: "12 fajlov"
* N = 21: "21 fajl"
* N = 22: "22 fajla"
* N = 123: "123 fajla"

Now... Can you see the problem ? We have three variants of the same word and it's not just one for N == 1, other for N == 2,3,4 and still other for N >= 5... I've yet to see i18n package where this problem has solution (few Russian programs where I've seen correct language - mostly from banking area - use hardcoded algorythms suitable only for Russian).

I'm pretty sure there other similar problems but this is thing I've biten the most. Translation of "New->Folder" as "Novy->Papka" is just curious (correct translation is "Novaya->Papka" while "Novy->Papka" is in fact correct russian phrase - it just means "New->Dad"). There are a lot of such problems with other languages, I'm sure...

Posted by hufey at 11:47 AM | Comments (0)

August 16, 2004

linux kernel 历史上第一次出现4个数的版本号

正在编译

2.6.8 release之后马上就被人发现了一个重大bug

Date Sat, 14 Aug 2004 03:41:58 -0700 (PDT)
From Linus Torvalds <>
Subject Re: Linux v2.6.8 - Oops on NFSv3

On Sat, 14 Aug 2004, Willy Tarreau wrote:
>
> I've just compiled and booted 2.6.8 on my dual athlon. Everything went
> OK before I logged in as a non-root user whose home is mounted from
> another linux box over NFSv3/UDP.

Damn. I think the stupid typo in fs/nfs/file.c from the fcntl f_op removal
patch is the problem.

Andrew, since I'm gone in another hour, how about you try to make a
2.6.8.1 with this, since this is clearly a good reason for one?

Linus

--- 1.40/fs/nfs/file.c 2004-08-09 11:58:00 -07:00
+++ edited/fs/nfs/file.c 2004-08-14 03:35:11 -07:00
@@ -89,7 +89,7 @@
int res;

res = nfs_check_flags(filp->f_flags);
- if (!res)
+ if (res)
return res;

lock_kernel();

linus本人的看法:
From: Linus Torvalds osdl.org>
Subject: Re: Linux v2.6.8 - Oops on NFSv3
Newsgroups: gmane.linux.kernel
Date: Sat, 14 Aug 2004 04:05:56 -0700

On Sat, 14 Aug 2004, Christoph Hellwig wrote:
>
> Cane we make this 2.6.9 to avoid breaking all kinds of scripts expecting
> three-digit kernel versions?

Well, we've been discussing the 2.6.x.y format for a while, so I see this
as an opportunity to actually do it... Will it break automated scripts?
Maybe. But on the other hand, we'll never even find out unless we try it
some time.

Linus


典型的open source project测试不完整导致重大bug

Posted by hufey at 04:12 PM | Comments (1)

man 一个文件

man [path]file
当前路径就是 man ./file
奇怪,这个man man和man -h都没有说

Posted by hufey at 12:51 PM | Comments (0)

August 13, 2004

听上了APE,过上了小康音乐生活

装了一个XMMS APE plugin
拿BT下了一张碟

听着呢。。。。。。

Posted by hufey at 07:34 PM | Comments (0)

August 11, 2004

shrek2


昨天晚上看了电影SHREK2
每当这只猫这个表情
电影院里所有人就狂笑
:0

Posted by hufey at 10:47 AM | Comments (3)

August 10, 2004

telnetd: getpeername错误

多半是tcpd没装

Posted by hufey at 03:39 PM | Comments (0)

August 09, 2004

解决在.config里写启动参数image没写入的问题

如果在.config里写入参数,直接make zImage是不会把改动的参数写到binary image的。
需要删去 arch/cpu/boot/common/misc-simple.o 才行

Posted by hufey at 11:02 AM | Comments (0)

August 07, 2004

在北大拍到的


数码相机对暗部的处理能力太差了。
用gimp去了躁点,调了亮度

Posted by hufey at 04:12 PM | Comments (0)

August 06, 2004

strip可不能乱用

昨天发现lmbench跑的特别快,别人要几个小时我这里居然只要几分钟。
不过马上就下班了,就没细琢磨。

今天发现很多数据都特别好,好的不可思议。明显是workload不够嘛。
回头查lmbench的log,才发现无数的segmantation fault 。
最后自己写了个helloworld,发现跟本没连接对crt1.o。

终于想起来了,原来某天发现自己的home空间不够了,就把fs目录
recursive 地strip了一遍,结果把lib里的.o的符号表都给弄没了。

copy原来的之后,好了!

Posted by hufey at 04:36 PM | Comments (0)

August 05, 2004

700$的遥控器


Sony是不是疯了???

What's under the hood?

The Navitus is based on a 200MHz Motorola i.MX1, a popular ARM920 based application processor that powers several PDAs (including the Royal Linea) and other handheld devices that run Linux. The Navitus boots from 32MB of Flash, using the JFFS2 filesystem, cramfs, tmpfs, and ramfs.

The Navitus measures 4 x 6.5 x 2 inches (120 x 174 x 38 mm) and includes a 3.5-inch backlit touchscreen LCD supporting 65K colors. It weighs in at 12 ounces, for optimal beverage balancing properties. Operating range is 33 feet (10 meters).

I/O ports include a USB port and a memory stick slot. The device is powered by a non-removable Ni-MH battery.

Software side

The Navitus uses a 2.4.18 Linux kernel based on MontaVista Linux, which has supported the i.MX1 processor since July of 2003. Sony lists bash, busybox, and tinylogin among the source packages, and the kernel appears to include support for the processor's serial interface, suggesting that it may be possible to somehow bring up a shell on the remote control. The kernel also appears to support NFS, possibly for use with a filesystem on a remote development host. These features may have been disabled in the kernel that is included in the production version, however.

The Navitus uses mtools to interface with the memory stick, and appears capable of initializing memory sticks using the msmkdosfs package.

In addition to standard ASCII (iso8859-1)and US English (codepage 437), the Navitus supports Multilingual Latin 1 (NLS codepage 850), suggesting Sony will market the device in Europe.

Posted by hufey at 03:15 PM | Comments (0)

August 04, 2004

解决 telnetd: /usr/lib/telnetlogin: No such file or directory

这个也是google不出来的

去掉telnetlogin 的S属性位即可

另外,apache启动不起来是因为 /var/run 不可写

以上为今天的工作日记

Posted by hufey at 03:58 PM | Comments (0)