bad form of -t option (420 Views)
Reply
Occasional Advisor
anup1890
Posts: 12
Registered: ‎11-10-2010
Message 1 of 9 (420 Views)

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
Please use plain text.
Honored Contributor
Matti_Kurkela
Posts: 6,271
Registered: ‎12-02-2001
Message 2 of 9 (420 Views)

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
Please use plain text.
Honored Contributor
Hein van den Heuvel
Posts: 6,580
Registered: ‎05-19-2003
Message 3 of 9 (420 Views)

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
Please use plain text.
Occasional Advisor
anup1890
Posts: 12
Registered: ‎11-10-2010
Message 4 of 9 (420 Views)

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


Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,762
Registered: ‎03-06-2006
Message 5 of 9 (420 Views)

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. :-)
Please use plain text.
Occasional Advisor
anup1890
Posts: 12
Registered: ‎11-10-2010
Message 6 of 9 (420 Views)

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

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,762
Registered: ‎03-06-2006
Message 7 of 9 (420 Views)

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.
Please use plain text.
Occasional Advisor
anup1890
Posts: 12
Registered: ‎11-10-2010
Message 8 of 9 (420 Views)

Re: bad form of -t option

where can we find pthread library in HP UX
How can i include it?
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,762
Registered: ‎03-06-2006
Message 9 of 9 (420 Views)

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/
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation