unresolved symbol

 
SOLVED
Go to solution
Fred K. Abell Jr._1
Regular Advisor

unresolved symbol

I am trying to compile eventlog-0.2.5 using a gcc compiler from the porting center in the UK. I had to make a few links to point to libs in gtk, but now I get the error:
"/usr/lib/dld.sl: Unresolved symbol: libintl_bindtextdomain (code) from gcc"

I rarely program, and am at a stand still with this error.

Thanks in advance.

Fred
12 REPLIES 12
Tim Nelson
Honored Contributor

Re: unresolved symbol

did you download and install "ALL" the co-requisites ??

Dennis Handly
Acclaimed Contributor

Re: unresolved symbol

You use the following to search for the shlib:
nm -pxAN /path-to_shlibs/lib* | grep libintl_bindtextdomain
Sandeep_Chaudhary
Trusted Contributor

Re: unresolved symbol

Fred K. Abell Jr._1
Regular Advisor

Re: unresolved symbol

Tim,

I did download and install all the co-requisites.

Dennis,

The response to nm -pxAN /path-to_shlibs/lib* | grep libintl_bindtextdomain
is "nm: /path-to_shlibs/lib*: cannot open"

Sandeep,

Gettext is installed with the gnome and gtk installs.
Tim Nelson
Honored Contributor

Re: unresolved symbol

I think Dennis wanted you to substitute "path-to_shlibs" with your path to your shared libs.

e.g.

nm -pxAN /usr/lib* | grep libintl_bindtextdomain/usr/lib
or
nm -pxAN /usr/local/lib/lib* | grep libintl_bindtextdomain


etc...

Fred K. Abell Jr._1
Regular Advisor

Re: unresolved symbol

Sorry, this is my first third party software installation. And, the system crashed the other day and I had to rebuild.

Okay, I get the following:
# nm -pxAN /usr/lib* | grep libintl_bindtextdomain/usr/lib
nm: /usr/lib: bad magic
# nm -pxAN /usr/local/lib/lib* | grep libintl_bindtextdomain
nm: /usr/local/lib/libbfd.la: bad magic
nm: /usr/local/lib/libffi.la: bad magic
nm: /usr/local/lib/libgcj-tools.la: bad magic
nm: /usr/local/lib/libgcj.la: bad magic
nm: /usr/local/lib/libgcj.spec: bad magic
nm: /usr/local/lib/libgij.la: bad magic
nm: /usr/local/lib/libgomp.la: bad magic
nm: /usr/local/lib/libgomp.spec: bad magic
nm: /usr/local/lib/libopcodes.la: bad magic
nm: /usr/local/lib/libssp.la: bad magic
nm: /usr/local/lib/libssp_nonshared.la: bad magic
nm: /usr/local/lib/libstdc++.la: bad magic
nm: /usr/local/lib/libsupc++.la: bad magic


Lots of bad magic, whatever that is?
Dennis Handly
Acclaimed Contributor
Solution

Re: unresolved symbol

>Tim: I think Dennis wanted you to substitute "path-to_shlibs"

Yes.

># nm -pxAN /usr/lib* | grep libintl_bindtextdomain/usr/lib
nm: /usr/lib: bad magic

Tim's typo. This should be:
nm -pxAN /usr/lib/lib* usr/local/lib/lib* | grep libintl_bindtextdomain

>Lots of bad magic, whatever that is?

Basically these are non-library files that just happen to be in these directories.

But most importantly nm didn't find libintl_bindtextdomain.

If you want to be pedantic you could also use:
odump -slexport /usr/lib/lib* | grep libintl_bindtextdomain
Fred K. Abell Jr._1
Regular Advisor

Re: unresolved symbol

OK, I have never used nm nor odump. But I do like being pedantic! I appreciate your efforts to help me. The results are:

# nm -pxAN /usr/lib/lib* usr/local/lib/lib* | grep libintl_bindtextdomain
nm: /usr/lib/lib.b: bad magic
nm: /usr/lib/libAt.sl: cannot open
nm: /usr/lib/libdd98704.a: cannot open
nm: /usr/lib/libdd98704.sl: cannot open
nm: /usr/lib/libdd98705.a: cannot open
nm: /usr/lib/libdd98705.sl: cannot open
nm: /usr/lib/libdd98735.a: cannot open
nm: /usr/lib/libdd98735.sl: cannot open
nm: /usr/lib/libdd98736.a: cannot open
nm: /usr/lib/libdd98736.sl: cannot open
nm: /usr/lib/libdd98765.a: cannot open
nm: /usr/lib/libdd98765.sl: cannot open
nm: /usr/lib/libdd98766.a: cannot open
nm: /usr/lib/libdd98766.sl: cannot open
nm: /usr/lib/libddcrx48z.a: cannot open
nm: /usr/lib/libddcrx48z.sl: cannot open
nm: /usr/lib/libddgcrx.a: cannot open
nm: /usr/lib/libddgcrx.sl: cannot open
nm: /usr/lib/libddhpterm.a: cannot open
nm: /usr/lib/libddhpterm.sl: cannot open
nm: /usr/lib/libddkbd.a: cannot open
nm: /usr/lib/libddkbd.sl: cannot open
nm: /usr/lib/libddlkbd.a: cannot open
nm: /usr/lib/libddlkbd.sl: cannot open
nm: /usr/lib/libddsbv.a: cannot open
nm: /usr/lib/libddsbv.sl: cannot open
nm: /usr/lib/libil.sl: cannot open
nm: /usr/lib/libilefs.sl: cannot open
nm: /usr/lib/libp: cannot open
nm: usr/local/lib/lib*: cannot open

# odump -slexport /usr/lib/lib* | grep libintl_bindtextdomain
odump: Error: Cannot open '/usr/lib/libAt.sl'
Dennis Handly
Acclaimed Contributor

Re: unresolved symbol

>The results are:

Basically it didn't find that symbol in any lib in those directories.