[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[plamo:19364] Re: ¥Ñ¥Ã¥±¡¼¥¸¥ó¥°¤Î¤ä¤êÊý
-
From:Shun-ichi TAHARA (Åĸ¶ ½Ó°ì)
-
Date:Mon, 23 Jun 2003 18:19:46 +0900 (JST)
- Subject: [plamo:19364] Re: ¥Ñ¥Ã¥±¡¼¥¸¥ó¥°¤Î¤ä¤êÊý
- From: Shun-ichi TAHARA (Åĸ¶ ½Ó°ì) <jado@xxxxxxxxxxxxxxx>
- Date: Mon, 23 Jun 2003 18:19:45 +0900 (JST)
# Ŭµ¹²þ¹Ô¤òÆþ¤ì¤Æ¤¯¤ì¤ë¤È¤¢¤ê¤¬¤¿¤¤¤Ç¤¹ :-)
From: "So" <majida@par.odn.ne.jp>
Message-Id: <006d01c33962$26020270$0800a8c0@workstation>
> glibc-2.3.2¤ògcc-3.2.1¤â¤·¤¯¤Ïgcc-3.2.3¤Ç¥Ó¥ë¥É¤·¤Æcheckinstall-1.5.3¤Ç¥Ñ¥Ã
> ¥±¡¼¥¸¥ó¥°¤·¤Þ¤·¤¿(1)¡£
> ¤½¤·¤Æ¤½¤ì¤ò¥¯¥ê¡¼¥ó¥¤¥ó¥¹¥È¡¼¥ë¤·¤¿¥·¥¹¥Æ¥à¤Ëinstallpkg¤¹¤ë¤È¤¿¤È¤¨
> ¤ÐGLIB¤äblackbox¤È¤¤¤Ã¤¿¤è¤¦¤Ê¤â¤Î¤¬¥Ó¥ë¥É¤Ç¤¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£
> ¤·¤«¤·¡¢(1)¤Î»þÅÀ¤Ç¥Ó¥ë¥É¤¹¤ëºÝ¤Ë¤Ï²¿¤ÎÌäÂê¤âµ¯¤¤Þ¤»¤ó¡£¼«Ê¬¤È¤·¤Æ¤Ï
> ldconfigÅù¤¬ÀÅŪ¥ê¥ó¥¯¤µ¤ì¤Æ¤¤¤ë¤»¤¤¤Ê¤Î¤«¤È»×¤¤¤Þ¤·¤¿¤¬¤É¤¦¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡©
¼ÂºÝ¤Ë¤ä¤Ã¤¿¤³¤È¤¬¤Ê¤¤¤Î¤Ç¤è¤¯¤ï¤«¤ê¤Þ¤»¤ó¤¬¡¢glibc ¤Î¥Ð¡¼¥¸¥ç¥ó¤¬ÊѤï¤Ã
¤Æ¤·¤Þ¤Ã¤Æ¡¢API ¤Î¸ß´¹À¤¬¼º¤ï¤ì¤Æ¤¤¤ë¤Î¤¬¸¶°ø¤Ê¤Î¤«¤Ê¡¢¤È¤«»×¤Ã¤Æ¤¤¤Þ
¤¹¡£
¿·¤·¤¤ glibc-2.3.2 ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤È¡¢/lib/libc.so.6 ¤¬¿·¤·¤¤ glibc
¤ò»Ø¤·¤Þ¤¹¤Î¤Ç¡¢°Ê¸åÁ´¤Æ¤Î¥Ð¥¤¥Ê¥ê¤Ë¤³¤ì¤¬»È¤ï¤ì¤Æ¤·¤Þ¤¤¤Þ¤¹¡£
¤½¤Î¸å¡¢glib ¤ä blackbox ¤ò¥Ó¥ë¥É¤¹¤ë¤È¤¤Ë¡¢¤É¤Î¤è¤¦¤Êʸ¶ç¤ò¸À¤ï¤ì¤Æ
¥Ó¥ë¥É¤Ç¤¤Ê¤«¤Ã¤¿¤Î¤«¤¬¤ï¤«¤ì¤Ð¡¢¤â¤¦¤Á¤ç¤Ã¤È¾Ü¤·¤¤¾õ¶·Ê¬ÀϤ¬²Äǽ¤Ç¤¹¡£
> ¤Þ¤¿/new¤È¤¤¤¦¥Ç¥£¥ì¥¯¥È¥ê¤òºî¤Ã¤Æprefix=/new/usr¤Ç¥Ó¥ë¥É¤·¤Æ/new¤Çmakepak¤·
> ¤¿¤â¤Î¤òinstallpkg¤¹¤ë¤È¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤¿ldconfig¤¬¤Ê¤¼¤«/new/usr/etc¤Ë
> ld.so.conf¤ò¸«¤Ë¹Ô¤³¤¦¤È¤·¤Þ¤¹¡£¤³¤ì¤Ï¤É¤¦¤·¤Æ¤Ç¤·¤ç¤¦¤«¡©
¥Ó¥ë¥ÉÃæ¤Ë¡¢prefix=/new/usr ¤¬Äê¿ô¤È¤·¤ÆËä¤á¹þ¤Þ¤ì¤Æ¤·¤Þ¤¦¤¿¤á¤Ç¤·¤ç¤¦¡£
ºî¤ë¤È¤¤Ë¤Ï¡¢prefix=/usr ¤È¤·¤Æ¤ª¤«¤Ê¤¤¤È¤Þ¤º¤¤¤Ç¤¹¡£
> plamo¤Î³«È¯¼Ô¤ÎÊý¡¹¤ÏÆü¡¹¤É¤Î¤è¤¦¤Ë¥Ñ¥Ã¥±¡¼¥¸¥ó¥°¤·¤Æ¤¤¤ë¤Î¤Ç¤·¤ç¤¦¤«¡©
make install ¤Î»þ¤À¤±¡¢prefix ¤òº¹¤·´¹¤¨¤ë¤È¤«¡¢
make install prefix=/new/usr
¤¢¤ë¤¤¤Ï¡¢¤³¤Î¤è¤¦¤ÊÍÑÅÓ¸þ¤±¤Ë DESTDIR ¤È¤¤¤¦¤Î¤¬»È¤¨¤ë¾ì¹ç¤¬¤¢¤Ã¤Æ¡¢
make install DESTDIR=/new
¤Î¤è¤¦¤Ë¤¹¤ë¤È¤«¡£
¤Þ¤¡¡¢¤³¤Î¤¢¤¿¤ê¤Îµ»¤¬Á´¤¯»È¤¨¤Ê¤¤¾ì¹ç¤â¤¢¤Ã¤Æ¡¢ºÇ°¤Î¾ì¹ç¡¢¼êÆ°¤ÇÇÛÃÖ
¤¹¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤È¤¤¤Ã¤Æ¤â¡¢¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤ò¤´¤ê¤´¤ê½ñ¤¯¤À¤±(¤È
¤¤¤Ã¤Æ¤·¤Þ¤¨¤Ð´Êñ¤Ç¤¹¤¬¡¢¤â¤Á¤í¤ó¤á¤ó¤É¤¯¤µ¤¤)¤Ê¤ó¤Ç¤¹¤±¤É¤Í¡£
> ¼«Ê¬¤Ç¤â¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤¬ºî¤ê¤¿¤¤¤Ç¤¹¡£ºÇŬ²½¤·¤Þ¤¯¤Ã¤Æ¡£
ºÇŬ²½¡¢¤È¤¤¤¦¤Î¤Ï¡¢¥³¥ó¥Ñ¥¤¥é¤ÎºÇŬ²½¥ª¥×¥·¥ç¥ó¤òºÇŬ²½¤¹¤ë(¤Ê¤ó¤¸¤ã
¤½¤ê¤ã)¤Ã¤Æ¤³¤È¤Ç¤·¤ç¤¦¤«¡£ÌÌÇò¤¤»î¤ß¤Ç¤¹¤¬¡¢gcc ¤ä glibc ¤ËÂФ·¤Æ¤Ï¡¢
¤Á¤ç¤Ã¤È¹µ¤¨Ìܤˤ·¤Æ¤ª¤¤¤¿Êý¤¬°ÂÄꤹ¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£
> linuxfromscratch¤Ï¼ê´Ö¤¬¤«¤«¤ê¤¹¤®¤ë¤Î¤Ç¡¢¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤Î
> glibc¤Ègcc¤Î¥Ð¡¼¥¸¥ç¥ó¤òºÇ¿·¤Ë¤·¤Æ¤ª¤¤¤Æ¤«¤éɬÍפʤâ¤Î¤òưŪ¥ê¥ó¥¯¤Ç
> ¥Ñ¥Ã¥±¡¼¥¸¥ó¥°¤·¤Æ¡¢¤½¤ì¤ò¤¹¤Ù¤ÆÊ̤Υѡ¼¥Æ¥£¡¼¥·¥ç¥ó¤ËŸ³«¤È¤¤¤¦ÊýË¡
> ¤Ç¤ä¤í¤¦¤È¹Í¤¨¤¿¤Î¤Ç¤¹¤¬¡£¤³¤ì¤ÇÂç¾æÉפǤ¹¤«¡©
glibc ¤È gcc ¤òºÇ¿·¤Ë¾å¤²¤Æ¡¢¤½¤Î´Ä¶¤¬Àµ¤·¤¯Æ°ºî¤¹¤ì¤Ð¡¢¤¢¤È¤Ï¤É¤¦¤Ë
¤Ç¤â¤Ê¤ê¤Þ¤¹¡£¤¢¡¢binutils ¤â˺¤ì¤º¤ËÄɽ¾¤µ¤»¤Æ¤¯¤À¤µ¤¤¤Í¡£
¤È¡¢¼Â¤Ï¡¢¤³¤Î¤¢¤¿¤ê¤¬¤«¤Ê¤ê¥Ç¥ê¥±¡¼¥È¤Ê¤Î¤Ç¡¢Ã±½ã¤Ëºî¤Ã¤ÆÆͤùþ¤ó¤À¤À
¤±¤Ç¤Ï¤Ê¤Ë¤«¤ÈÆæ¤ÎÉÔ¶ñ¹ç¤¬µ¯¤¤Æ¤·¤Þ¤¤¤Þ¤¹¡£
°ÊÁ°¡¢Ãοͤ¬¤³¤Î¤¢¤¿¤ê¤òÁ´¼«Æ°²½¤¹¤ë¥¹¥¯¥ê¥×¥È¤ò½ñ¤¤¤Æ¡¢make world ¤Ç
Á´Éôºî¤êľ¤¹¡¢¤ß¤¿¤¤¤Ê¤¹¤´¤¤¤³¤È¤ò¤ä¤Ã¤Æ¤¤¤¿¤Î¤Ç¤¹¤¬¡¢¤½¤Î¤È¤¤Ï¡¢
1. ¿·¤·¤¤´Ä¶(ËÜÈÖ²ÔƯ)ÍѤΠroot(°Ê²¼ newroot) °Ê²¼¤òÊ̤ËÍÑ°Õ¤·¤Æ mount
2. gcc ¤È binutils ¤ò ¼ê¸µ¤Î´Ä¶¤Ç¥¹¥¿¥Æ¥£¥Ã¥¯¥ê¥ó¥¯¤Çºî¤ë
3. ¿·¤·¤¤ gcc ¤Ç glibc ¤òºî¤Ã¤Æ newroot ¤Ë¥¤¥ó¥¹¥È¡¼¥ë
4. newroot ¤ËɬÍפʥե¡¥¤¥ë¤ò¥³¥Ô¡¼¤·¤ÆºÆµ¯Æ°
5. gcc ¤È binutils ¤ò ¿·¤·¤¤ glibc ¤Î´Ä¶¤Ç¥À¥¤¥Ê¥ß¥Ã¥¯¤Çºî¤ë
(gcc ¤È binutils ¤Î¥Ð¥¤¥Ê¥ê¤Ï 2 ¤Çºî¤Ã¤¿¤â¤Î¤ò»È¤¦)
6. ¾¤Ò¤¿¤¹¤éºî¤ë
¤ß¤¿¤¤¤Ê¤³¤È¤ò¤ä¤Ã¤Æ¤¤¤¿µ²±¤¬¤¢¤ê¤Þ¤¹¡£¤Á¤ç¤Ã¤È¼ê½ç¤¬¼ÂºÝ¤È¤Ï°ã¤¦¤«¤â
¤·¤ì¤Þ¤»¤ó¤¬¡£
¤¢¤È¡¢¤³¤ì¤ò¤ä¤Ã¤Æ¤¤¤¿¤Î¤Ï¡¢glibc-2.0 ¤Îº¢¤Ç¡¢ºÇ¶á¤Î glibc ¤Ï¡¢¥Þ¥¤¥Ê¡¼
¥Ð¡¼¥¸¥ç¥ó´Û¤ÇÈù̯¤Ë¥·¥ó¥Ü¥ë¤Î°ÜÆ°¤È¤«¤¬È¯À¸¤·¤Æ¤¤¤ë¤Î¤Ç¡¢¤³¤ÎÊýË¡¤Ç¤â
¤Þ¤ÀÉÔ´°Á´¤Ê¤ó¤Ç¤¹¤è¤Í¡£
¡²¡²¡²¡²¡²¡²¡²¡²¡²¡²¡²¡²¡²¡²¡²¡²¡²¡²¡²¡²¡²¡²¡²¡²¡²¡²¡²¡²¡²¡²¡²
Åĸ¶ ½Ó°ì jado@flowernet.gr.jp, shunichi_tahara@zenrin.co.jp
http://flowernet.gr.jp/jado/
FingerPrint: 16 9E 70 3B 05 86 5D 08 B8 4C 47 3A E7 E9 8E D9
¡±¡±¡±¡±¡±¡±¡±¡±¡±¡±¡±¡±¡±¡±¡±¡±¡±¡±¡±¡±¡±¡±¡±¡±¡±¡±¡±¡±¡±¡±¡±
- References
-
- [plamo:19361] åãÂå¥ãåâ±ã¦¾åâ¸ã¦µåâ°ã¢°åâ¨å£êëöTo: <plamo@linet.gr.jp>, So
[¸¡º÷¥Ú¡¼¥¸]
[¥á¡¼¥ë°ìÍ÷]
Plamo ML ¸ø³«¥·¥¹¥Æ¥à