Re: [gtk-list] Problems with GLib & Gdk



On 25 Jan 1999, Georg C. F. Greve wrote:

> Hi !
> 
> Whenever I try to run the GNOME panel I get a
> 
> 
>     [ Part 1.2: "Attached Text" ]
> 
> 
> GLib-WARNING **: getpwuid_r(): failed due to: No such file or directory

hi george, could you try to add a call to setpwent() in g_get_any_init():


        [...]
        do
          {
            g_free (buffer);
            buffer = g_malloc (bufsize);

+           setpwent ();

#    ifdef HAVE_GETPWUID_R_POSIX
            error = getpwuid_r (getuid (), &pwd, buffer, bufsize, &pw);
            error = error < 0 ? errno : error;
#    else /* !HAVE_GETPWUID_R_POSIX */
            pw = getpwuid_r (getuid (), &pwd, buffer, bufsize);
            error = pw ? 0 : errno;
#    endif /* !HAVE_GETPWUID_R_POSIX */

also i'd like to know what glib/config.h contains to define/undefine
HAVE_GETPWUID_R_POSIX and HAVE_GETPWUID_R.

if the above doesn't fix your problem we need, upon failing getpwuid_r(),
fallback to using the usual code sequence of setpwent, getpwuid, endpwent
which should actually succeed unless your system is totaly screwed
/etc/passwd wise (in which case you couldn't even login ;).

> 
> Gdk-ERROR **: BadPixmap (invalid Pixmap parameter)
>   serial 313 error_code 4 request_code 2 minor_code 0
> 
> aborting...
> Aborted
> 

> 
> Regards,
>         Georg


---
ciaoTJ



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]