Operating System - HP-UX
1753487 Members
4561 Online
108794 Solutions
New Discussion юеВ

Re: bad form of -t option

 
anup1890
Occasional Advisor

bad form of -t option

cc -pthread -g -L/app/oracle/product/11.2.0/lib -o ./MDI_disall -I/develop/confman/rcs_wa/ccbs/LIBRARIES/include MDI_parser_ann.o MDI_disann.o MDI_automatic_delete.o MDI_inform_announce.o MDI_dbopen_ann.o MDI_dbclose_ann.o MDI_sqlerr_ann.o MDI_cnfpar_ann.o del_promo.o thread_buffer.o report.o load_cfg_table.o gpr_handler.o search_promo.o /develop/confman/rcs_wa/ccbs/LIBRARIES/lib/HP-UX_B.11.31/lib/libreg.a /develop/confman/rcs_wa/ccbs/LIBRARIES/lib/HP-UX_B.11.31/lib/libcommon.a /develop/confman/rcs_wa/ccbs/LIBRARIES/lib/HP-UX_B.11.31/lib/liblog.a -lclntsh `cat /app/oracle/product/11.2.0/lib/ldflags` `cat /app/oracle/product/11.2.0/lib/sysliblist` -lelf -lm -lrt -L/usr/shlib/ -lpthreads
cc: error 1914: bad form for `-t' option
make: *** [xxxxx] Error 1
8 REPLIES 8
Matti_Kurkela
Honored Contributor

Re: bad form of -t option

Since there does not seem to be any '-t' option visible in the command line, the bad option must come from the files included into the command line with the 'cat' commands within the back-quotes.

Check the files:
/app/oracle/product/11.2.0/lib/ldflags
/app/oracle/product/11.2.0/lib/sysliblist

Make sure all the text inside these files is OK for inclusion into the cc command line.

MK
MK
Hein van den Heuvel
Honored Contributor

Re: bad form of -t option

So what so you see in:


cat /app/oracle/product/11.2.0/lib/ldflags

and

cat /app/oracle/product/11.2.0/lib/sysliblist

We can not see those from here and they wel contrain the explanation.

You my want to take this question to an ORACLE forum rather than a platform forum.

Good luck,
Hein
anup1890
Occasional Advisor

Re: bad form of -t option

/app/oracle/product/11.2.0/lib/ldflags
contains
-lnbeq11 -lnhost11 -lnus11 -lnldap11 -lldapclnt11 -lnsslb11 -lnnis11 -lntcp11 -lntcps11 -lnsslb11 -lntcp11 -lntns11

cat /app/oracle/product/11.2.0/lib/sysliblist
-lrt -ldl -lm -lpthread -lnsl -lunwind -ldiskown


Dennis Handly
Acclaimed Contributor

Re: bad form of -t option

cc -pthread -g ... -o ./MDI_disall
cc: error 1914: bad form for `-t' option

-pthread isn't a valid cc option. Replace it by -mt.

>Matti: Since there does not seem to be any '-t' option visible in the command line,

It's hiding, took me awhile to find it. :-)
anup1890
Occasional Advisor

Re: bad form of -t option

Now i am getting following problem

ld: Mismatched ABI for -lrt, found /usr/lib/hpux32/librt.so
Fatal error.

Why it is still pointing to 32bit lib .
My LD_LIBRARY_PATH is still pointing to 64 bit libs

Dennis Handly
Acclaimed Contributor

Re: bad form of -t option

>Why it is still pointing to 32bit lib?
>My LD_LIBRARY_PATH is still pointing to 64 bit libs

Only dld looks at LD_LIBRARY_PATH. You need to compile/link with +DD64.
anup1890
Occasional Advisor

Re: bad form of -t option

where can we find pthread library in HP UX
How can i include it?
Dennis Handly
Acclaimed Contributor

Re: bad form of -t option

>where can we find pthread library in HP-UX?

You have already included it twice, once with -mt and once with -lpthreads.

This path is useless: -L/usr/shlib/