RE: How do I update ONLY GLib?

Some new information...  If I compile my program without the call to
g_file_set_contents and run ldd against the executable, I see: => /usr/local/lib/  (0xb7f27000)
Which is a symbolic link to:
Which seems consistent with a glib level of 2.12.4 and the prefix of where I
installed the new GLib.  And if I run objdump against the above lib, I see
that both g_file_get_contents (which I still have coded in my program) and
g_file_set_contents are there.
So for whatever reason, it looks like my makefile just is not recognizing
where to find the header file.

Sergei, I am still debating your offer.  I was hoping to solve this without
need for any additional downloads.  Also, if I can understand what is going
on without your program taking care of all the "dirty" work, I will probably
have a better understanding of how things work.

Thanks -- Warren

-----Original Message-----
From: Sergei Steshenko [mailto:sergstesh yahoo com] 
Sent: Thursday, December 21, 2006 9:49 AM
To: Warren's Public Email; 'Tristan Van Berkom'
Cc: gtk-list gnome org
Subject: RE: How do I update ONLY GLib?

--- Warren's Public Email <wrfpublic charter net> wrote:

> You should be able to test your glib in /usr/local by simply
> typing "LD_LIBRARY_PATH=/usr/local/lib ./myprogram".
> Cheers,
>                      -Tristan

Not necessarily so - see how, for example, how 'gtk-demo' is built:
[197] 17:43 sergei amdam2:/maxtor5/sergei/AppsFromScratchWD> ldd
/maxtor5/sergei/AppsFromScratchWD/install/gtk+-2.10.6/bin/gtk-demo =>  (0xffffe000) =>
so.0 (0xb7f1f000) =>
0 (0xb7e9e000) =>
0 (0xb7b5f000) => /usr/lib/ (0xb7b3c000) => /usr/lib/ (0xb7b37000) => /usr/lib/ (0xb7b28000) => /usr/lib/ (0xb7b1d000) => /usr/lib/ (0xb7b17000) =>
.so.0 (0xb7b0e000) =>
o.0 (0xb7ae2000) =>
(0xb7aa8000) =>
(0xb7a8d000) =>
0 (0xb7a53000) =>
0 (0xb7a4f000) =>
(0xb79bc000) => /lib/ (0xb79b3000) =>
(0xb7950000) =>
.so.1 (0xb7925000) =>
6 (0xb78c1000) =>
(0xb78a0000) =>
(0xb787d000) => /lib/ (0xb7869000) => /usr/lib/ (0xb7860000) => /usr/lib/ (0xb7743000) => /usr/lib/ (0xb773f000) => /usr/lib/ (0xb7739000) => /lib/ (0xb7735000) => /lib/ (0xb771c000) => /lib/ (0xb76f6000) => /lib/ (0xb75c8000)
        /lib/ (0xb7f38000)
[198] 17:45 sergei amdam2:/maxtor5/sergei/AppsFromScratchWD>               

and pay attention to =>

line - in the above case I didn't set up LD_LIBRARY_PATH when I invoked

By the way, my offer still stands, and my tool doesn't require to set
LD_LIBRARY_PATH manually, it automatically generates shell script wrappers
setting environment variables in a manner they are pointing to local


Applications From Scratch:

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

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