vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I just applied 008_getcwd.patch and rebuilt and installed libc. The patch instructions tell me I need to rebuild statically linked binaries before they'll pick up the changes: Note that programs that are linked statically will not pick up the change unless they are rebuilt. This includes the contents of /bin and /sbin. The following static binaries use getcwd(3): /bin/csh, /bin/ksh, /bin/pwd, /bin/systrace, /sbin/dump Is this the proper way to rebuild csh, for example? cd /usr/src/bin/csh make obj cleandir depend make && make install Also, is there a way to determine what other static binaries also use getcwd? |
| |||
| On 08/01/2005 12:21 PM, Shane Almeida wrote: > I just applied 008_getcwd.patch and rebuilt and installed libc. The patch > instructions tell me I need to rebuild statically linked binaries before > they'll pick up the changes: > > Note that programs that are linked statically will not pick up the > change unless they are rebuilt. This includes the contents of /bin > and /sbin. The following static binaries use getcwd(3): > /bin/csh, /bin/ksh, /bin/pwd, /bin/systrace, /sbin/dump > > Is this the proper way to rebuild csh, for example? > > cd /usr/src/bin/csh > make obj cleandir depend > make && make install > That looks right. I often move the original out of the way in case something goes wrong. I poked around in the build settings to see if I could coerce "install" to do this for me when I want it to, but lost interest. > Also, is there a way to determine what other static binaries also use > getcwd? The last time I had to do this, I used "ident" and looked for the module that you are interested in. e.g.: cd /bin for file in * do echo $file ident $file | grep getcwd done Worked for me. |
| ||||
| On Mon, 10 Jan 2005 13:12:28 -0500, clvrmnky wrote: > On 08/01/2005 12:21 PM, Shane Almeida wrote: > > Is this the proper way to rebuild csh, for example? > > > > cd /usr/src/bin/csh > > make obj cleandir depend > > make && make install > > > That looks right. I often move the original out of the way in case > something goes wrong. Okay, good. Time to start building. > > Also, is there a way to determine what other static binaries also use > > getcwd? > The last time I had to do this, I used "ident" and looked for the module > that you are interested in. > > e.g.: > > cd /bin > for file in * > do > echo $file > ident $file | grep getcwd > done Looks good. Thanks for the help, I appreciate it. |