Re: [gtk-list] More IRIX problems



On Thu, 04 Feb 1999 18:00:32 -0500, gtk-list@redhat.com (David J. Topper) wrote:
> So I can compile and run GTK apps.  But I get lots of errors.  Take the
> "hello_world" program.  At compile time, I get lots of things like this:
> 
> hendrix:~/testcode/gtk$ make
>         gcc -Wall -g first.c -o first `gtk-config --cflags` `gtk-config
> --libs`
> ld32: WARNING 85: definition of __register_frame_info_table in
> /usr/local/lib/libgtk.so preempts that definition in
> /usr/local/lib/libgdk.so.
> ld32: WARNING 85: definition of __frame_state_for in
> /usr/local/lib/libgtk.so preempts that definition in
> /usr/local/lib/libgdk.so.

That warning about __register_frame_info_table sounds familiar, I also get
it when compiling Imlib 1.8.1. In my case the definition in libgdkimlib.so
preempts the one in libgcc.a. I have no idea what exactly causes it, but I
think that __register_frame_info_table should be a static symbol. It
hasn't caused any problems for me yet.

If it really annoys you, you can switch the warning off. Go to the
directory where gcc is installed. If you installed gcc 2.8.1 from Ariel
Faigon's tardist, it is in /usr/freeware/lib/gcc-lib/mips-sgi-irix6.3/2.8.1,
otherwise it is in the prefix you gave it when you built it. Edit the
"specs" file. Go to the "*link:" line. If there is already a "-woff 131"
argument, change it to "-woff 131,85". If there isn't a "-woff" argument,
insert one just before "-_SYSTYPE_SVR4".

> and at runtime, I get:
> 
> GLib-WARNING **: getpwuid_r(): failed due to: Function not implemented

Well, my O2 has it defined in /usr/include/pwd.h as:

  #if _POSIX1C
  extern int getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **);
  extern int getpwnam_r(const char *, struct passwd *, char *, size_t, struct passwd **);
  #endif

It is also in the C library: (nm /usr/lib32/libc.so | grep getpwuid)

  Symbols from /usr/lib32/libc.so:

  [Index]   Value      Size    Type  Bind  Other     Shndx   Name

  [333]   | 262456880|     436|FUNC |WEAK |DEFAULT  |MIPS_TEXT|_getpwuid
  [334]   | 262456880|     436|FUNC |WEAK |DEFAULT  |MIPS_TEXT|getpwuid
  [398]   | 262523440|      12|FUNC |GLOB |DEFAULT  |MIPS_TEXT|__sgi_getpwuid_r
  [399]   | 262523440|      12|FUNC |WEAK |DEFAULT  |MIPS_TEXT|getpwuid_r
  [2264]  | 262513856|     568|FUNC |GLOB |HIDDEN   |MIPS_TEXT|__files_getpwuid
  [2404]  | 262456880|     436|FUNC |GLOB |DEFAULT  |MIPS_TEXT|__sgi_getpwuid

But IMHO the size is actually a bit small, unless it calls getpwuid().
What's the getpwuid_r() function supposed to do? I don't have a manpage
for it.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2785859  Fax: +31-15-2781843  Email J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/




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