Operating System - HP-UX
1833811 Members
3759 Online
110063 Solutions
New Discussion

Re: C Compiler Errors - Where to go?

 
SOLVED
Go to solution
Scott McDade
Frequent Advisor

C Compiler Errors - Where to go?

I am trying to recompile some source on 11i and it has been running on 10.2 for a few years without problems. When I try to recompile it gives me some PA errors that I have never seen. Has anyone seen this and can you give me some advise as to how to get around it.

-------- Error ----------
$ RunMake
Making atdb.a, testa, querydb.a, testquery and probesql...
rm: libtesta non-existent
rm: libquerydb.a non-existent
rm: testquery non-existent
rm: probesql non-existent
ar vq libatdb.a netinter.o server_c.o
q - netinter.o
q - server_c.o
ar: creating libatdb.a
cc -o testa testa.o libatdb.a /home/ibmprg/autotest/lib/libxmc.a
/home/i
bmprg/autotest/lib/libtcp.a -L/usr/lib -lnsl_s
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (testa.o) was
detecte
d. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
xdr_vector (code)
xdr_double (code)
svc_register (code)
xdr_u_long (code)
clnttcp_create (code)
pmap_unset (code)
xdr_string (code)
pmap_getmaps (code)
xdr_opaque (code)
xdr_int (code)
xdr_u_int (code)
svctcp_create (code)
xdr_long (code)
xdr_short (code)
svc_unregister (code)
get_myaddress (code)
xdr_void (code)
xdr_char (code)
*** Error exit code 1

Stop.


-Scott
Keep it Simple!~
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: C Compiler Errors - Where to go?

It looks like you need libc_r. My standard method for doing this is:
cd /usr/lib (e.g)
nm lib* > /var/tmp/symlist

Then use vi to search /var/tmp/symlist for any of the symbols. You then "drive up" the file until you see the library name directly above the desired symbol.
If it ain't broke, I can fix that.
Vincente Fernandes
Valued Contributor

Re: C Compiler Errors - Where to go?

Looks like you are missing some library files as per the above error messages. Look for the *.a files under /usr/lib directory. You may need to install the full HP ANSI C Complier which is a paid product from HP.