Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

cc compiler problem

807575Apr 17 2006 — edited Apr 18 2006
Hi i'm currently having a problem compiling my
application in one of the servers that we have, in my
investigation i noticed that my c compiler is setup
differently in our old box when I issue a "cc -v"
command I get the following:

new_box$ cc -v
ucbcc: Warning: Option
-YP,:/usr/ucblib:/opt/SUNWspro/WS6U2/bin/../lib:/opt/SUNWspro/WS6U2/bin:/usr/ccs/lib:/usr/lib
passed to ld, if ld is invoked, ignored otherwise
### command line files and options (expanded):
### -v -I/usr/ucbinclude -lucb -lsocket -lnsl -lelf
-laio
### ucbcc: Note: LM_LICENSE_FILE = (null)
### ucbcc: Note: NLSPATH =
/opt/SUNWspro/WS6U2/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/SUNWspro/WS6U2/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat
### ucbcc: Note: LD_LIBRARY_PATH =
/usr/ucblib:/usr/ccs/lib:/usr/lib
### ucbcc: Note: LD_RUN_PATH = /usr/ucblib
### ucbcc: Note: LD_OPTIONS = (null)
/usr/ccs/bin/ld -o a.out
/opt/SUNWspro/WS6U2/lib/crti.o
/opt/SUNWspro/WS6U2/lib/crt1.o
/opt/SUNWspro/WS6U2/lib/values-xs.o -Y
P,/opt/SUNWspro/WS6U2/lib:/usr/ccs/lib:/usr/lib
-YP,:/usr/ucblib:/opt/SUNWspro/WS6U2/bin/../lib:/opt/SUNWspro/WS6U2/bin:/usr/ccs/lib:/usr/lib
-lucb -lsocket -lnsl -lelf -laio -lc
/opt/SUNWspro/WS6U2/lib/crtn.o
ld: warning: option -YP appears more than once, first
setting taken
Undefined first referenced
symbol in file
main
/opt/SUNWspro/WS6U2/lib/crt1.o
ld: fatal: Symbol referencing errors. No output
written to a.out

but when i do the same command on the new box i only
get:

new_box$ cc -v
usage: cc [ options] files. Use 'cc -flags' for
details

My old box is running on SunOS 5.8 and the new box is
running on SunOS 5.10. Can this be a reason that my
application is not compiling properly? Also how do i
configure my new box as like the one in my old box?
Hope you could help me. Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 16 2006
Added on Apr 17 2006
3 comments
149 views