1753373 Members
5135 Online
108792 Solutions
New Discussion юеВ

Re: gtk+

 
Norman_21
Honored Contributor

Re: gtk+

Sorry, I attached the wrong file in the previous thread so here is the good one?
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Dennis Handly
Acclaimed Contributor

Re: gtk+

>I'm getting another error with glib.h, any thoughts?

Where is glib.h? Try doing JRF's find for this file.
Have you downloaded all of GTK's dependencies?
Norman_21
Honored Contributor

Re: gtk+

I'm getting close Dennis. I kept adding more paths whenever I encounter a path error so that fixed the pathing issue but we have another problem "unsatisfied symbol": I'm posting the command I used and the final output:

gcc -I/opt/gnome/include/gtk-1.2 -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include dx_chkpasswd_glib.c -o chkpasswd.exe
ld: Unsatisfied symbol "g_io_add_watch" in file /var/tmp//cc5CqsFn.o
ld: Unsatisfied symbol "g_source_remove" in file /var/tmp//cc5CqsFn.o
ld: Unsatisfied symbol "g_strndup" in file /var/tmp//cc5CqsFn.o
ld: Unsatisfied symbol "g_free" in file /var/tmp//cc5CqsFn.o
ld: Unsatisfied symbol "gtk_main" in file /var/tmp//cc5CqsFn.o
ld: Unsatisfied symbol "gtk_init_add" in file /var/tmp//cc5CqsFn.o
ld: Unsatisfied symbol "gtk_quit_add" in file /var/tmp//cc5CqsFn.o
ld: Unsatisfied symbol "g_io_add_watch_full" in file /var/tmp//cc5CqsFn.o
ld: Unsatisfied symbol "g_timeout_add" in file /var/tmp//cc5CqsFn.o
ld: Unsatisfied symbol "g_io_channel_read_line" in file /var/tmp//cc5CqsFn.o
ld: Unsatisfied symbol "g_io_channel_unix_new" in file /var/tmp//cc5CqsFn.o
ld: Unsatisfied symbol "gtk_main_quit" in file /var/tmp//cc5CqsFn.o
12 errors.
collect2: ld returned 1 exit status

BTW: all of the dependencies are installed.
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Dennis Handly
Acclaimed Contributor

Re: gtk+

>we have another problem "unsatisfied symbol"

Can you scan the source for one of these symbols?
And/or scan the objects/libs:
nm -pxAN objects ... libs ... | grep g_io_add_watch
Norman_21
Honored Contributor

Re: gtk+

Dennis

If I'm not mistaken, there are some missing libraries "cannot open", Correct? I'm not really sure what to look for from the output so can you please advice?
The source code returned bad magic so I assume its not the issue.

nm -pxAN /usr/lib/lib* | grep g_io_add_watch
nm: /usr/lib/lib.b: bad magic
nm: /usr/lib/libU77.alias: bad magic
nm: /usr/lib/libU77.alias.i8: bad magic
nm: /usr/lib/libU77.alias.r8: bad magic
nm: /usr/lib/libU77_.alias: bad magic
nm: /usr/lib/libbomb.a: cannot open
nm: /usr/lib/libemc_crypto.sl: cannot open
nm: /usr/lib/libemc_ssl.sl: cannot open
nm: /usr/lib/libvrascmd.sl: cannot open
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Dennis Handly
Acclaimed Contributor

Re: gtk+

>there are some missing libraries "cannot open", Correct?

Perhaps. What does ll(1) show for each?

>The source code returned bad magic so I assume it's not the issue.

You need to use something like grep for source.

>nm -pxAN /usr/lib/lib* | grep g_io_add_watch
>nm: /usr/lib/libemc_crypto.sl: cannot open
>nm: /usr/lib/libemc_ssl.sl: cannot open
>nm: /usr/lib/libvrascmd.sl: cannot open

(Are these symlinks and to what?)

Have you looked for libs that you have just built?

Do you have archive libs on your link line?
If you haven't ordered them properly, you may need to use -Wl,+n.
Norman_21
Honored Contributor

Re: gtk+

here is the "ll" output. no luck yet...

ll /usr/lib/lib.b
-r-xr-xr-x 1 bin bin 1656 Aug 26 2004 /usr/lib/lib.b
ll /usr/lib/libU77.alias
-r--r--r-- 1 bin bin 1687 Jun 2 2004 /usr/lib/libU77.alias
ll /usr/lib/libU77.alias.i8
-r--r--r-- 1 bin bin 1745 Aug 17 2004 /usr/lib/libU77.alias.i8
ll /usr/lib/libU77.alias.r8
-r--r--r-- 1 bin bin 1689 Jun 2 2004 /usr/lib/libU77.alias.r8
ll /usr/lib/libU77_.alias
-r--r--r-- 1 bin bin 1741 Jun 2 2004 /usr/lib/libU77_.alias
ll /usr/lib/libbomb.a
lrwxrwxrwt 1 root sys 22 Jul 13 2007 /usr/lib/libbomb.a -> /opt/dce/lib/libbomb.a
ll /opt/dce/lib/libbomb.a
/opt/dce/lib/libbomb.a not found
ll /usr/lib/libemc_ssl.sl
lrwxr-xr-x 1 root sys 37 Jul 13 2007 /usr/lib/libemc_ssl.sl -> /usr/symcli/shlib/libemc_ssl.sl.0.9.7
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Dennis Handly
Acclaimed Contributor

Re: gtk+

>here is the "ll" output. no luck yet...
>ll /usr/lib/lib.b

No need to look at the "bad magic" ones.

>lrwxrwxrwt /usr/lib/libbomb.a -> /opt/dce/lib/libbomb.a

And you don't have /opt/dce.

Have you scanned your gtk+ sources for those symbols?
Norman_21
Honored Contributor

Re: gtk+

Would you mind to give an example?
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Dennis Handly
Acclaimed Contributor

Re: gtk+

>Would you mind to give an example?

Of grep?? Using find(1) to be recursive:
find /path-to-search ... -type f -name "*.[CHch]*" \
-exec grep -e g_io_add_watch {} +

For a simple directory:
grep -e g_io_add_watch *.[CHch]*