|
|
发表于 2006-4-12 12:47:36
|
显示全部楼层
Post by 终极幻想
有时间再试试这个?shared 方式编译的。
我想静态编译失败,也许是 glibc 的差异,我的是 2.3.6。不知道你用的是多少?
ldd 的结果,以供参考。
linux-gate.so.1 => (0xffffe000)
libc.so.6 => /lib/libc.so.6 (0xb7e3c000)
/lib/ld-linux.so.2 (0xb7f78000) 用了 shared 方式,另一件奇怪的事情发生了,在我的那台Pentium 133 竟然能正常运行 k8 下的 zip,不解:confused:
- [font=Courier New]d00m3d@BlackMesa:~/k8$ uname -a
- Linux BlackMesa 2.6.12.2-custom #1 Thu Jun 30 19:52:06 HKT 2005 i586 GNU/Linux
- d00m3d@BlackMesa:~/k8$ ls -l
- total 84
- -rwxr-xr-x 1 d00m3d d00m3d 78058 Apr 9 19:25 zip
- d00m3d@BlackMesa:~/k8$ ./zip
- Copyright (C) 1990-2005 Info-ZIP
- Type 'zip "-L"' for software license.
- Zip 2.31 (March 8th 2005). Usage:
- zip [-options] [-b path] [-t mmddyyyy] [-n suffixes] [zipfile list] [-xi list]
- The default action is to add or replace zipfile entries from list, which
- can include the special name - to compress standard input.
- If zipfile and list are omitted, zip compresses stdin to stdout.
- -f freshen: only changed files -u update: only changed or new files
- -d delete entries in zipfile -m move into zipfile (delete files)
- -r recurse into directories -j junk (don't record) directory names
- -0 store only -l convert LF to CR LF (-ll CR LF to LF)
- -1 compress faster -9 compress better
- -q quiet operation -v verbose operation/print version info
- -c add one-line comments -z add zipfile comment
- -@ read names from stdin -o make zipfile as old as latest entry
- -x exclude the following names -i include only the following names
- -F fix zipfile (-FF try harder) -D do not add directory entries
- -A adjust self-extracting exe -J junk zipfile prefix (unzipsfx)
- -T test zipfile integrity -X eXclude eXtra file attributes
- -y store symbolic links as the link instead of the referenced file
- -R PKZIP recursion (see manual)
- -e encrypt -n don't compress these suffixes
- d00m3d@BlackMesa:~/k8$ ldd ./zip
- linux-gate.so.1 => (0xffffe000)
- libc.so.6 => /lib/tls/libc.so.6 (0xb7e5d000)
- /lib/ld-linux.so.2 (0xb7f98000)
- d00m3d@BlackMesa:~/k8$[/font]
复制代码
================================================================================
- [font=Courier New]d00m3d@BlackMesa:~/i386$ uname -a
- Linux BlackMesa 2.6.12.2-custom #1 Thu Jun 30 19:52:06 HKT 2005 i586 GNU/Linux
- d00m3d@BlackMesa:~/i386$ ls -l
- total 80
- -rwxr-xr-x 1 d00m3d d00m3d 75432 Apr 9 19:24 zip
- d00m3d@BlackMesa:~/i386$ ./zip
- Copyright (C) 1990-2005 Info-ZIP
- Type 'zip "-L"' for software license.
- Zip 2.31 (March 8th 2005). Usage:
- zip [-options] [-b path] [-t mmddyyyy] [-n suffixes] [zipfile list] [-xi list]
- The default action is to add or replace zipfile entries from list, which
- can include the special name - to compress standard input.
- If zipfile and list are omitted, zip compresses stdin to stdout.
- -f freshen: only changed files -u update: only changed or new files
- -d delete entries in zipfile -m move into zipfile (delete files)
- -r recurse into directories -j junk (don't record) directory names
- -0 store only -l convert LF to CR LF (-ll CR LF to LF)
- -1 compress faster -9 compress better
- -q quiet operation -v verbose operation/print version info
- -c add one-line comments -z add zipfile comment
- -@ read names from stdin -o make zipfile as old as latest entry
- -x exclude the following names -i include only the following names
- -F fix zipfile (-FF try harder) -D do not add directory entries
- -A adjust self-extracting exe -J junk zipfile prefix (unzipsfx)
- -T test zipfile integrity -X eXclude eXtra file attributes
- -y store symbolic links as the link instead of the referenced file
- -R PKZIP recursion (see manual)
- -e encrypt -n don't compress these suffixes
- d00m3d@BlackMesa:~/i386$ ldd ./zip
- linux-gate.so.1 => (0xffffe000)
- libc.so.6 => /lib/tls/libc.so.6 (0xb7e40000)
- /lib/ld-linux.so.2 (0xb7f7b000)
- d00m3d@BlackMesa:~/i386$
- [/font]
复制代码 我的 glibc 版本是 Debian 的 2.3.4-i386 |
|