Problem With exceutable file creation

Hello ,

I came up with a new problem during creation of an exceutable file.

My application all the c files and links them to create a new executable file. Till last month everything was fine and yester day i tried to change one file and tried to create an exe file but unsuccesfull. I am facing an error during linking.

*** ERROR exit code 1 : This is the error i am getting now.

I tried to compile with my original version of code and same problem .

Just to crossverify, i have created a small file called HelloWorld.c and tried to cretae exe and evrything going fine till linking but i dont see any exe cretaed .
It is creating only .o file.

i verified disk space and i dont see nay problem .

Any idea , What could be the problem.

I am using CC to compile.

cc -v HelloWorld.c

Will give you a lot more information about what is causing the error.

Hello Jim,

Here is the output :

bosdf9d1:root /opt/ansic/bin/cc -v myfile1.c -o ./hello
cc: CCOPTS is not set.
/opt/langtools/lbin/cpp myfile1.c /var/tmp/ctmAAAa13889 -$ -D__hp9000s800 -D__hppa -D__hpux -D__unix -D_PA_RISC1_1 -D__CLASSIC_C__ -j
cc: Entering Preprocessor.
/opt/ansic/lbin/ccom /var/tmp/ctmAAAa13889 myfile1.o -Oq00,al,ag,cn,Lm,sz,Ic,vo,lc,mf,Po,es,rs,sp,in,vc,pi,fa,pe,Rr,Fl,pv,pa,nf,cp,lx,st,ap,Pg,ug,lu,dp,fs,bp,wp! -Ac
cc: LPATH is /usr/lib/pa1.1:/usr/lib:/opt/langtools/lib:
/usr/ccs/bin/ld /opt/langtools/lib/crt0.o -u main myfile1.o -o ./hello -lc
cc: Entering Link editor.

I dont see any error here
fyi:

myfile1.c:

#include<stdlib.h>

int main()
{

/\*printHello\(\);*/
printf\("Hello World\\n"\);

return 0;

}

OK...

$ cc -v ./myfile1.c -o ./hello
cc: informational note 404: NLSPATH is /opt/ansic/lib/nls/msg/%L/%N.cat:/opt/ansic/lib/nls/msg/C/%N.cat:
cc: informational note 404: INCLUDIR is INCLUDIR=/usr/include
cc: informational note 404: CCOPTS is not set.
/opt/langtools/lbin/cpp.ansi ./myfile1.c /var/tmp/ctmAAAa06677 -$ -D__hp9000s800 -D__hppa -D__hpux -D__unix -D_ILP32 -e -D_PA_RISC2_0 -D_HPUX_SOURCE -D__STDC_EXT__ -D__HP_cc=111104  
cc: informational note 411: Entering Preprocessor.
/opt/ansic/lbin/ccom /var/tmp/ctmAAAa06677 myfile1.o -F./myfile1.c -Oq00,al,ag,cn,Lm,sz,Ic,vo,lc,mf,Po,es,rs,sp,in,vc,pi,fa,pe,Rr,Fl,pv,pa,nf,cp,lx,st,ap,Pg,ug,lu,lb,uj,dp,fs,bp,wp,Ex,mp,rp,ap,dn,Sg,pt,kt,Em,pc,np! -ESconstlit -Ae  
cc: informational note 404: LPATH is /usr/lib:/opt/langtools/lib:
/usr/ccs/bin/ld /opt/langtools/lib/crt0.o myfile1.o -o ./hello -u main -lc  
cc: informational note 413: Entering Link editor.
$ ll
total 4508692
drwxr-xr-x   3 root       sys           6144 May 20  2008 080520
-rw-rw-r--   1 vbe        bin        2296334520 Jun 26  2008 VBMAX.G0006V00
-rwxrwxrwx   1 vbe        bin        12066955 Nov 13 19:47 c3201231_tsmadminref4aix.pdf
-rwxrwxrwx   1 vbe        bin          20480 Mar  6 18:21 hello
drwxr-xr-x   2 root       root            96 Dec  5  2007 lost+found
drwxrwxrwx   2 vbe        bin             96 Feb  6 17:02 more_storage
-rw-rw-rw-   1 vbe        bin             89 Mar  6 18:21 myfile1.c
.
.
$ hello
Hello World

compiling myfile1.c to generate a executabe file called hello works fine...
What is your issue then? With what you gave I see no

o/p from my hp_ux box:

bosdf9d1:root cc -v ./myfile1.c -o ./hello
cc: CCOPTS is not set.
/opt/langtools/lbin/cpp ./myfile1.c /var/tmp/ctmAAAa14941 -$ -D__hp9000s800 -D__hppa -D__hpux -D__unix -D_PA_RISC1_1 -D__CLASSIC_C__ -j
cc: Entering Preprocessor.
/opt/ansic/lbin/ccom /var/tmp/ctmAAAa14941 myfile1.o -Oq00,al,ag,cn,Lm,sz,Ic,vo,lc,mf,Po,es,rs,sp,in,vc,pi,fa,pe,Rr,Fl,pv,pa,nf,cp,lx,st,ap,Pg,ug,lu,dp,fs,bp,wp! -Ac
cc: LPATH is /usr/lib/pa1.1:/usr/lib:/opt/langtools/lib:
/usr/ccs/bin/ld /opt/langtools/lib/crt0.o -u main myfile1.o -o ./hello -lc
cc: Entering Link editor.

bosdf9d1:root hello
sh: hello: not found.

Only exe file was not created

with ls :

bosdf9d1:root cc -v ./myfile1.c -o ./hello
cc: CCOPTS is not set.
/opt/langtools/lbin/cpp ./myfile1.c /var/tmp/ctmAAAa14969 -$ -D__hp9000s800 -D__hppa -D__hpux -D__unix -D_PA_RISC1_1 -D__CLASSIC_C__ -j
cc: Entering Preprocessor.
/opt/ansic/lbin/ccom /var/tmp/ctmAAAa14969 myfile1.o -Oq00,al,ag,cn,Lm,sz,Ic,vo,lc,mf,Po,es,rs,sp,in,vc,pi,fa,pe,Rr,Fl,pv,pa,nf,cp,lx,st,ap,Pg,ug,lu,dp,fs,bp,wp! -Ac
cc: LPATH is /usr/lib/pa1.1:/usr/lib:/opt/langtools/lib:
/usr/ccs/bin/ld /opt/langtools/lib/crt0.o -u main myfile1.o -o ./hello -lc
cc: Entering Link editor.

bosdf9d1:root ls -ltr
total 4
-rw-r----- 1 root sys 102 Mar 6 11:36 myfile1.c
-rw-r----- 1 root sys 744 Mar 6 11:36 myfile1.o

bosdf9d1:root hello
sh: hello: not found.

bosdf9d1:root

I didnt do more than just (as vbe, not root) in my wks directory (I kill whoever I find messing up what is in /opt...( the standard is "should be seen as read only FS" remember...) copy paste your myfile1.c and compiled it there in one of my working directories...
Are you missing some (transition) links? As you are using ANSIC compiler that is optional (and $$) with many links such as :

ant:/home/vbe $ ll /usr/bin/cc
lrwxr-xr-t   1 root       sys             17 Jun 23  2003 /usr/bin/cc -> /opt/ansic/bin/cc

Fyi

bosdf9d1:root ll /usr/bin/cc
lr-xr-xr-t 1 root sys 17 Sep 2 1999 /usr/bin/cc -> /opt/ansic/bin/cc

He is using the optional compiler based on the output way above.