Operating System - Linux
1752815 Members
5965 Online
108789 Solutions
New Discussion юеВ

Re: 11.23 upgrade for libpthread

 
SOLVED
Go to solution
sathis kumar
Frequent Advisor

11V2 upgrade


Hello,

We are currently working on migrating our application from HP-UX 11i to 11V2. We were linking /usr/lib/libpthread.a to create our application executable in 11i. But the same file is missing in 11V2 version.

Could you please confirm whether the installation done could not be proper on our 11V2 server ( and so the libpthread.a is not there under /usr/lib/hpux32/libpthread.a ) ?
Or libpthread.a will not be present in 11V2?

Thanks in advance for your help.
5 REPLIES 5
Dennis Handly
Acclaimed Contributor
Solution

Re: 11.23 upgrade for libpthread

Archive system libs are verboten on IPF. Use libpthread.so instead.

sathis kumar
Frequent Advisor

Re: 11V2 upgrade

We are using the following compile option to create our object file.

/usr/ccs/bin/ld -t -y pthread_kill -y exc_pop_ctx -y _libc_reinit -aarchive -L/u01/app/oracle/product/10.2.0/db_1/lib32/ -r -o odbc_oracle.o odbc_oracle.r /u01/app/oracle/product/10.2.0/db_1/lib32/libclient10.a /u01/app/oracle/product/10.2.0/db_1/lib32/nautab.o /u01/app/oracle/product/10.2.0/db_1/lib32/naeet.o /u01/app/oracle/product/10.2.0/db_1/lib32/naect.o /u01/app/oracle/product/10.2.0/db_1/lib32/naedhs.o -lnbeq10 -lnhost10 -lnus10 -lnldap10 -lldapclnt10 -lnsslb10 -lnnis10 -lnoname10 -lntcp10 -lntcps10 -lnsslb10 -lntcp10 -lntns10 -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lnro10 -lnbeq10 -lnhost10 -lnus10 -lnldap10 -lldapclnt10 -lnsslb10 -lnnis10 -lnoname10 -lntcp10 -lntcps10 -lnsslb10 -lntcp10 -lntns10 -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lclient10 -lnnetd10 -lvsn10 -lcommon10 -lgeneric10 -lmm -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 -lnbeq10 -lnhost10-lnus10 -lnldap10 -lldapclnt10 -lnsslb10 -lnnis10 -lnoname10 -lntcp10 -lntcps10 -lnsslb10 -lntcp10 -lntns10 -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lnro10 -lnbeq10 -lnhost10 -lnus10 -lnldap10 -lldapclnt10 -lnsslb10 -lnnis10 -lnoname10 -lntcp10 -lntcps10 -lnsslb10 -lntcp10 -lntns10 -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lclient10 -
lnnetd10 -lvsn10 -lcommon10 -lgeneric10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 -lclient10 -lnnetd10 -lvsn10 -lcommon10 -lgeneric10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 -lm -lcore10 /u01/app/oracle/product/10.2.0/db_1/lib32/libclntst10.a -a shared -B immediate
-lpthread

We are getting the following error:
ld: The shared library "/usr/lib/hpux32/libpthread.so" cannot be processed in a relocatable link
Fatal error.

Could you please let us know if we need to change the compile option ? It is happening only in HP-UX 11V2.

Thanks in advance for your help.

Dennis Handly
Acclaimed Contributor

Re: 11V2 upgrade

>We are using the following compile option to create our object file.
>We are getting the following error:
ld: The shared library "/usr/lib/hpux32/libpthread.so" cannot be processed in a relocatable link
Fatal error.

Either remove the "-r":
... -r -o odbc_oracle.o

Or remove the shared libs:
-a shared -B immediate -lpthread

If you only have archives, also remove this:
-aarchive

I thought the latest ld has that only as a warning. You should consider patching to PHSS_34860.
sathis kumar
Frequent Advisor

Re: 11V2 upgrade

Hello,

We have tried removing the option '-r' but it did not work.

Could you please let us know any other option which will make the compilation successful?

Thanks in advance for your help.

Dennis Handly
Acclaimed Contributor

Re: 11.23 upgrade for libpthread

>We have tried removing the option '-r' but it did not work.

What do you mean by "not work"?
I provided two options. I assume you would immediately reject the remove -r option because the -o pointed to an object file: -o odbc_oracle.o

>Could you please let us know any other option which will make the compilation successful?

Your compilation IS successful. You are linking. And you need to know what you want to do. If you really need to do a -r link, remove the shlibs and those -a options.