LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 02-11-2008, 01:36 AM   #1
adarshkmr
LQ Newbie
 
Registered: Feb 2008
Posts: 3

Rep: Reputation: 0
Unhappy Compilation error : cc: unrecognized option `-KPIC'


I am porting one application form Solaris to Redhat Linux.
I have specified KPIC option as
SUN_WS6_CC_COMPILE := cc -DSQLCA_NONE=1 -KPIC
SUN_WS6_CXX_COMPILE := CC -instances=static -DSQLCA_NONE=1 -KPIC

When I tried to compile one directory I am getting the following error:

Performing an Oracle build...
Using default ORACLE_CONNECT: mcs_owner/mcs_owner@MCSTEST
Using ORACLE_HOME: /home/oracle/oracle/product/10.2.0/client_1
Using default feature set: IB_XCAM
Using default root dir: /home/users/bldadm2/pvcs/ib/mcs
ORACLE_HOME=/home/oracle/oracle/product/10.2.0/client_1
LD_LIBRARY_PATH=/home/oracle/oracle/product/10.2.0/client_1/lib32:/home/oracle/oracle/product/10.2.0/client_1/lib:/usr/lib::/home/users/bldadm2/pvcs/ib/mcs/SUN_WS6_glib:/applns/SUNWmotif/lib:/usr/X11R6/lib:/home/applns/sunstudio12/lib/rw7:/home/applns/xrt/lib-shared:/usr/dt/lib
Making all in /SUN_WS6_gobjects
Because of u compiling /home/users/bldadm2/pvcs/ib/mcs/src/mcs/gui/WinHelp.c
+ rm -f WinHelp.u
+ rm -f WinHelp.o
+ /home/users/bldadm2/pvcs/ib/mcs/utilities/depend.sh -comment /home/users/bldadm2/pvcs/ib/mcs/src/mcs/gui/GNUmakefile
+ > WinHelp.us
+ cc -DSQLCA_NONE=1 -KPIC -c -DMOTIF12_HEADERS -I/usr/include/X11 -I/home/applns/xrt/include -I/usr/local/hyperhelp/include -I/usr/openwin/include -DORA_PROC -I/home/oracle/oracle/product/10.2.0/client_1/precomp/public -I/home/oracle/oracle/product/10.2.0/client_1/rdbms/public -I/home/oracle/oracle/product/10.2.0/client_1/plsql/public -I/home/oracle/oracle/product/10.2.0/client_1/network/public -I/home/users/bldadm2/pvcs/ib/mcs/src/mcs/feature/SUN_WS6_gobjects -I. -I/home/users/bldadm2/pvcs/ib/mcs/src/mcs/gui -I/home/users/bldadm2/pvcs/ib/mcs/include -I/include -I/usr/dt/include -I/usr/X11R6/include -I/usr/include/X11 -DDEBUG -DRWDEBUG -library=iostream -DNO_PACKING -DORA_VERSION=10 -D__EXTENSIONS__=1 -DSUN -D_POSIX_C_SOURCE=199506L -g -mt /home/users/bldadm2/pvcs/ib/mcs/src/mcs/gui/WinHelp.c
cc: unrecognized option `-KPIC'
cc1: error: invalid option `t'
+ rm -f WinHelp.us
+ exit 1
+ rm WinHelp.us
rm: cannot remove `WinHelp.us': No such file or directory
gmake[1]: *** [WinHelp.u] Error 1
gmake: *** [all] Error 2


Can anyone help me regarding this???
Thnx in Advance...
 
Old 02-11-2008, 06:23 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Hi,

And welcome to LQ!

What C compiler are you using under Linux?
cc --version


Cheers,
Tink
 
Old 02-12-2008, 12:00 AM   #3
adarshkmr
LQ Newbie
 
Registered: Feb 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Hi,

we are using sunstudio12 cc comipler.

version infmn is as follows
/home/users/bldadm2/pvcs/ib/mcs/src/mcs/utils :CC --version
CC: Warning: Option --version passed to ld, if ld is invoked, ignored otherwise
GNU ld version 051128 20051128
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.

Do u need any further info to help me?
Thnx & Regards...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc unrecognized option ruben22 Linux From Scratch 9 11-12-2008 05:41 AM
gcc: unrecognized option `-prefer-non-pic' Noodles25 Linux - Software 3 04-19-2007 08:44 PM
mysqld: unrecognized option `--skip-external-locking' MaulingMonkey Linux - Software 0 01-11-2005 03:01 PM
"ld unrecognized option '--as-needed'" aoe2bug Slackware 5 08-17-2004 06:59 PM
Alcatel Speedtouch: pppd[2287]: unrecognized option 'nas0' novazem Linux - Networking 1 03-16-2004 12:19 PM


All times are GMT -5. The time now is 10:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration