Operating System - HP-UX
1834163 Members
2747 Online
110064 Solutions
New Discussion

build issue, unsatisfied symbol.

 
ambika_1
Frequent Advisor

build issue, unsatisfied symbol.

Hi,
While doing gmake i am getting following error. gssapi.h header file is having definition of these symbols but its giving this error.

Platform hpux 11.11/23/ia/pa

/usr/ccs/bin/ld: Unsatisfied symbols:
GSS_C_NT_HOSTBASED_SERVICE (first referenced in ../lib/.libs/libsasl2.a(gssapi.o)) (data)
GSS_C_NT_USER_NAME (first referenced in ../lib/.libs/libsasl2.a(gssapi.o)) (data)
collect2: ld returned 1 exit status

Regards,
Ambika
7 REPLIES 7
Muthukumar_5
Honored Contributor

Re: build issue, unsatisfied symbol.

You have to export the library path with SHLIB_PATH for 32 bits or LD_LIB_PATH for 64 bit machine.

It will work.

--
Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: build issue, unsatisfied symbol.

Hi Ambika,

You need to check the following,

# version of GSSAPI.
# Depedency of this product

Which product you are trying to build ?

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
ambika_1
Frequent Advisor

Re: build issue, unsatisfied symbol.

Hi ,
I am building cyrussasl.
In README.hp we have following task
export LDFLAGS="-Wl,+nodefaultrpath" If i export this then gcc is giving error that cant find shared library libc.2. If this LDFLAGS is not exported then configuration is going fine.

But compilation error i am getting.
Arunvijai_4
Honored Contributor

Re: build issue, unsatisfied symbol.

Hi Ambika,

You need to take a look at config.log for more details. You can comment out if needed.
Also, try to assign points to the people you responded your question.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
ambika_1
Frequent Advisor

Re: build issue, unsatisfied symbol.

Hi ,
Ya i check config.log is says cant find shared library libc.2 . Detail is as below.
configure:2183: gcc -V &5
gcc: '-V' option must have argument
configure:2186: $? = 1
configure:2210: checking for C compiler default output
configure:2213: gcc -Wl,+nodefaultrpath conftest.c >&5
configure:2216: $? = 0
configure:2262: result: a.out
configure:2267: checking whether the C compiler works
configure:2273: ./a.out
/usr/lib/dld.sl: Can't open shared library: libc.2
/usr/lib/dld.sl: No such file or directory
./configure[2274]: 27062 Abort(coredump)
configure:2276: $? = 134
configure:2283: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.

Muthukumar_5
Honored Contributor

Re: build issue, unsatisfied symbol.

Try like,

export SHLIB_PATH=/usr/lib:

Try to configure now.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=742828

--
Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: build issue, unsatisfied symbol.

Hi Ambika,

You need to # export SHLIB_PATH=$SHLIB_PATH:/usr/lib:/usr/local/lib:/usr/lib/hpux32

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"