mach success!

John Dalbec jpdalbec at ysu.edu
Thu Mar 4 15:39:28 UTC 2004


John Dalbec wrote:

> I managed to create an rh72u buildroot on rh80 by liberal use of
> 
> # export LD_PRELOAD=/lib/libnss_files.so.2; apt-get -c 
> /var/lib/mach/states/.../apt.conf -f install ...
> 
> to work around the GLIBC version problems
> 
> apt-get: relocation error: /lib/libnss_files.so.2: symbol 
> _nss_files_parse_{pw,gr}ent, version GLIBC_2.0 not defined in file 
> libc.so.6 with link time reference
> 
> which would occur every time an RPM script would invoke useradd or 
> groupadd.
> 
> I suppose the following patch would also work (untested):
> --- mach-helper.c.orig  2003-12-11 11:55:54.000000000 -0500
> +++ mach-helper.c       2004-03-04 08:58:28.000000000 -0500
> @@ -123,6 +123,7 @@
>    /* do not trust user environment */
>    char *env[] = { "PATH=/bin:/usr/bin:/usr/sbin",
>                    "HOME=/root",
> +                 "LD_PRELOAD=/lib/libnss_files.so.2",
>                    NULL };
>    int retval;
>    char **arg;

I got fed up with fixing the GLIBC version problems manually so I've rebuilt 
mach 0.4.3 with my patch and it appears to work fine.
John

> 
> Is there a mach-specific mailing list I should be writing to?  (I've 
> cc:ed Thomas on this message.)
> Thanks,
> John
> 





More information about the fedora-legacy-list mailing list