Solaris fopen issue



Hi folks.

I have run into problems of GTK using fopen on Solaris.
The Solaris implementation has a problem with any fopen() which opens
a file above the 256 file descriptor.

How can I get around the problem ?
I use gtk 2.4.9 on Solaris 5.10. I created a program that emulates my
situation. It's a simple "Hello World" GTK application that opens 300
file descriptors with open(2) before gtk_init called.
It crashes with mesages below:
The Solaris implementation has a problem with any fopen() which
  opens a file above the 256 file descriptor.

Fontconfig error: Cannot load default config file

** (hello:17956): WARNING **: No builtin or dynamically loaded modules
were found. Pango will not work correctly. This probably means
there was an error in the creation of:
 '/etc/pango/pango.modules'
You may be able to recreate this file by running pango-querymodules.

(hello:17956): GLib-GObject-CRITICAL **: file gobject.c: line 1561:
assertion `G_IS_OBJECT (object)' failed

** (hello:17956): CRITICAL **: file pango-engine.c: line 68: assertion
`PANGO_IS_FONT (font)' failed

** ERROR **: file shape.c: line 75: assertion failed: (glyphs->num_glyphs > 0)
aborting...
Abort (core dumped)

Any ideas ?
Have you though of abandoning using fopen in gtk ?

Thank you.
Kirill



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