RE: [gtk-list] trying to get gtk+ working (long one)



Hi Esa Tikka,

I have the same problem as you.

<quote>
 checking for glib-config... (cached) /usr/local/bin/glib-config
 checking for GLIB - version >= 1.2.3... no
 *** Could not run GLIB test program, checking why...
 *** The test program compiled, but did not run. This usually means
 *** that the run-time linker is not finding GLIB or finding the wrong
   .....
 configure: error: 
 *** GLIB 1.2.3 or better is required. The latest version of GLIB
 *** is always available from ftp://ftp.gtk.org/.
 </quote>

But now I solved the problem with Erik Mouw helps. May be you can do what I have did too.
After you configure the glib-1.2.3. Add the line /usr/local/lib into /etc/ld.so.conf and then run ldconfig.
Then add /usr/local/bin to your path (of course check your path first, whether /usr/local/bin exist or not, if not CONTINUE..). How to check path? For me, I type $PATH (hopefully same to you).

csh/tcsh: set path = ( /usr/local/bin $path ) ; rehash
sh/bash: PATH=/usr/local/bin:$PATH ; export PATH		Info. from Erick


I used sh/bash: PATH=/usr/local/bin:$PATH ; export PATH.

Please check your path again, to make sure /usr/local/bin is in your path. Then configure your gtk+-1.2.3.

- ./configure
- make
- make install

Hopefully it works!

Note: to compile a program, run ldconfig again after installed gtk+-1.2.3.

>regards from Kenny Leong






-----Original Message-----
From:	Esa Tikka [SMTP:etikka@lut.fi]
Sent:	Friday, May 14, 1999 11:22 PM
To:	gtk-list@redhat.com
Subject:	[gtk-list] trying to get gtk+ working (long one)

Hi all,

I've not found any help from any source that has crossed to my mind, so I'll
ask here (sorry if this is somewhat wrong place to do it).

FYI, I'm running a single computer system based on RedHat Linux 4.2 with
kernel 2.0.36, libc-5.4.38-1, glibc-2.0.7 (in separate dir for glibc apps), 
gcc-2.7.2.1-2 and XFree86-3.3.3.1-0
All other X-apps work correctly.

I've tried to set up GTK+ but to no avail this far.
First I compiled glib-1.2.3, no problems, the tests compiled and ran fine.
Then I tried compiling gtk-1.2.3, but the first problem struck in ./configure.
(I'm not sure if this is really any problem, but just in case)

 <quote>
 checking for glib-config... (cached) /usr/local/bin/glib-config
 checking for GLIB - version >= 1.2.3... no
 *** Could not run GLIB test program, checking why...
 *** The test program compiled, but did not run. This usually means
 *** that the run-time linker is not finding GLIB or finding the wrong
   .....
 configure: error: 
 *** GLIB 1.2.3 or better is required. The latest version of GLIB
 *** is always available from ftp://ftp.gtk.org/.
 </quote>

There are no old versions of glib hanging around, glib-config works just right.
Glib is installed in /usr/local/lib which is included in LD_LIBRARY_PATH and
/etc/ld.so.conf and ldconfig has been run. Ok, I used --disable-glibtest and
configure ran fine as well as make. Then I tried the programs in 
gtk-1.2.3/examples and nearly everyone crashes with the same error.
I included some excerpts for you to peek into (I don't know much about *nix
programming myself). Sorry for the lenght but again, just in case...

I would be _really_ thankful for any tips or advice to get this thing working.

 <quote>
 $ strace ./helloworld
 execve("./helloworld", ["./helloworld"], [/* 27 vars */]) = 0
 mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40006000
 mprotect(0x40000000, 19984, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
 mprotect(0x8048000, 27240, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
 stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=10971, ...}) = 0
 open("/etc/ld.so.cache", O_RDONLY)      = 3
 mmap(0, 10971, PROT_READ, MAP_SHARED, 3, 0) = 0x40007000
 close(3)                                = 0
 stat("/etc/ld.so.preload", 0xbffffb84)  = -1 ENOENT (No such file or directory)
 open("/usr/local/lib/libgtk-1.2.so.0", O_RDONLY) = 3
 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
 mmap(0, 1220608, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4000a000
 mmap(0x4000a000, 1187497, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x4000a000
 mmap(0x4012c000, 29096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x121000) = 0x4012c000
 close(3)                                = 0
 mprotect(0x4000a000, 1187497, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
 open("/usr/local/lib/libgdk-1.2.so.0", O_RDONLY) = 3
 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
 mmap(0, 266240, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40134000
 mmap(0x40134000, 255957, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x40134000
 mmap(0x40173000, 4748, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x3e000) = 0x40173000
 close(3)                                = 0
 mprotect(0x40134000, 255957, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
 open("/usr/local/lib/libgmodule-1.2.so.0", O_RDONLY) = 3
 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
 mmap(0, 106496, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40175000
 mmap(0x40175000, 97545, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x40175000
 mmap(0x4018d000, 5848, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x17000) = 0x4018d000
 close(3)                                = 0
 mprotect(0x40175000, 97545, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
 open("/usr/local/lib/libglib-1.2.so.0", O_RDONLY) = 3
 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
 mmap(0, 430080, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4018f000
 mmap(0x4018f000, 388435, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x4018f000
 mmap(0x401ee000, 9072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x5e000) = 0x401ee000
 mmap(0x401f1000, 27100, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401f1000
 close(3)                                = 0
 mprotect(0x4018f000, 388435, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
 open("/lib/libdl.so.1", O_RDONLY)       = 3
 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
 mmap(0, 12288, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x401f8000
 mmap(0x401f8000, 4008, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x401f8000
 mmap(0x401f9000, 4276, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x401f9000
 close(3)                                = 0
 mprotect(0x401f8000, 4008, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
 open("/usr/X11R6/lib/libXext.so.6", O_RDONLY) = 3
 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
 mmap(0, 45056, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x401fb000
 mmap(0x401fb000, 36153, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x401fb000
 mmap(0x40204000, 4308, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x8000) = 0x40204000
 close(3)                                = 0
 mprotect(0x401fb000, 36153, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
 open("/usr/X11R6/lib/libX11.so.6", O_RDONLY) = 3
 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
 mmap(0, 651264, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40206000
 mmap(0x40206000, 624835, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x40206000
 mmap(0x4029f000, 22264, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x98000) = 0x4029f000
 close(3)                                = 0
 mprotect(0x40206000, 624835, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
 open("/lib/libc.so.5", O_RDONLY)        = 3
 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
 mmap(0, 770048, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x402a5000
 mmap(0x402a5000, 537347, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x402a5000
 mmap(0x40329000, 19952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x83000) = 0x40329000
 mmap(0x4032e000, 207068, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4032e000
 close(3)                                = 0
 mprotect(0x402a5000, 537347, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
 munmap(0x40007000, 10971)               = 0
 mprotect(0x8048000, 27240, PROT_READ|PROT_EXEC) = 0
 mprotect(0x4000a000, 1187497, PROT_READ|PROT_EXEC) = 0
 mprotect(0x40134000, 255957, PROT_READ|PROT_EXEC) = 0
 mprotect(0x40175000, 97545, PROT_READ|PROT_EXEC) = 0
 mprotect(0x4018f000, 388435, PROT_READ|PROT_EXEC) = 0
 mprotect(0x401f8000, 4008, PROT_READ|PROT_EXEC) = 0
 mprotect(0x401fb000, 36153, PROT_READ|PROT_EXEC) = 0
 mprotect(0x40206000, 624835, PROT_READ|PROT_EXEC) = 0
 mprotect(0x402a5000, 537347, PROT_READ|PROT_EXEC) = 0
 mprotect(0x40000000, 19984, PROT_READ|PROT_EXEC) = 0
 personality(PER_LINUX)                  = 0
 brk(0x8050058)                          = 0x8050058
 brk(0x8051000)                          = 0x8051000
 gettimeofday({926690898, 934731}, NULL) = 0
 uname({sys="Linux", node="aphrodite.home", ...}) = 0
 socket(PF_UNIX, SOCK_STREAM, 0)         = 3
 uname({sys="Linux", node="aphrodite.home", ...}) = 0
 uname({sys="Linux", node="aphrodite.home", ...}) = 0
 connect(3, {sun_family=AF_UNIX, sun_path="/tmp/.X11-unix/X0"}, 19) = 0
 uname({sys="Linux", node="aphrodite.home", ...}) = 0
 fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
 access("/root/.Xauthority", R_OK)       = -1 ENOENT (No such file or directory)
 writev(3, [{"l\0\v\0\0\0\0\0\0\0\0\0", 12}], 1) = 12
 fcntl(3, F_SETFL, O_RDONLY|O_NONBLOCK)  = 0
 read(3, 0xbffffb04, 8)                  = -1 EAGAIN (Try again)
 write(2, "\n", 1
 )                       = 1
 write(2, "Gdk", 3Gdk)                      = 3
 write(2, "-", 1-)                        = 1
 write(2, "ERROR **: ", 10ERROR **: )              = 10
 write(2, "an x io error occurred", 22an x io error occurred)  = 22
 write(2, "\naborting...\n", 13
 aborting...
 )         = 13
 sigprocmask(SIG_UNBLOCK, [ABRT], NULL)  = 0
 getpid()                                = 3464
 kill(3464, SIGABRT)                     = 0
 --- SIGABRT (IOT trap/Abort) ---
 +++ killed by SIGABRT +++
 </quote>

 <quote>
 (gdb) run
 Starting program: /usr/local/src/gtk+-1.2.3/examples/helloworld/helloworld

 Gdk-ERROR **: an x io error occurred
 aborting...

 Program received signal SIGABRT, Aborted.
 0x40189839 in kill ()
 (gdb) bt
 #0  0x40189839 in kill ()
 #1  0x40189776 in gsignal ()
 #2  0x4018885f in abort ()
 #3  0x401b37e9 in g_logv (log_domain=0x4016a415 "Gdk", 
     log_level=G_LOG_LEVEL_ERROR, format=0x4016a51c "an x io error occurred", 
     args1=0xbffff9b8) at gmessages.c:389
 #4  0x401b3896 in g_log (log_domain=0x4016a415 "Gdk", 
     log_level=G_LOG_LEVEL_ERROR, format=0x4016a51c "an x io error occurred")
     at gmessages.c:406
 #5  0x40140cd9 in gdk_x_io_error (display=0x80500a0) at gdk.c:1077
 #6  0x40235f99 in _XIOError ()
 #7  0x40233dfc in _XRead ()
 #8  0x40227e09 in XOpenDisplay ()
 #9  0x40140371 in gdk_init_check (argc=0xbffffba0, argv=0xbffffba4)
     at gdk.c:383
 #10 0x400964c4 in gtk_init_check (argc=0xbffffba0, argv=0xbffffba4)
     at gtkmain.c:199
 #11 0x40096a7b in gtk_init (argc=0xbffffba0, argv=0xbffffba4) at gtkmain.c:422
 #12 0x804c6a3 in main (argc=1, argv=0xbffffbb8) at helloworld.c:47
 #13 0x804c60b in ___crt_dummy__ ()
 </quote>


-- 
Esa Tikka          ---  esa dot tikka at lut dot fi  ---
LTKK/ti2      ---> .satan, oscillate my metallic sonataS  <---


-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null

application/ms-tnef



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