Skip to main content

Hi,

 

When I compile the example on this link ( community.microfocus.com/.../what-is-a-quick-way-to-test-whether-server-express-can-compile-and-run) with this command:

 

tehpu091!hpemsm1:/tmp/cob_test [353]> cob -x -v -Q k -o pi pi.cbl
cob32 -C nolist -x -v -Q k -o pi pi.cbl
* Micro Focus Server Express         V5.1 revision 000           Compiler
* Copyright (C) 1984-2009 Micro Focus (IP) Limited.      URN RXCPV/AA0/00000H
* Accepted - verbose
* Accepted - nolist
* Compiling pi.cbl
* Total Messages:     0
* Data:        2548     Code:         365
* Micro Focus Server Express V5.1.00 Code Generator
* Copyright (C) 1984-2009 Micro Focus (IP) Ltd. All rights reserved
* Accepted - verbose
* Generating pi
* Data:      2092  Code:      1712  Literals:        96  Dynamic:    716800
Entry points defined in module: pi.o
        *PII
        pi
cob32: error opening: /var/opt/aat/d/hp/shr/ems/tmp/cobAAAa13219/a.out
tehpu091!hpemsm1:/tmp/cob_test [355]> ls -l
total 144
-r--------   1 hpemsm1    users         4055 Oct 28 21:22 pi.cbl
-rw-------   1 hpemsm1    users         2304 Oct 28 21:53 pi.int
-rw-------   1 hpemsm1    users        41472 Oct 28 21:53 pi.idy
-rw-------   1 hpemsm1    users         3587 Oct 28 21:53 pi.o

 

Why doesn't the linker generate a executable file?

The program can be run with "cobrun":

 

tehpu091!hpemsm1:/tmp/cob_test [356]> cobrun pi
                                                                                                                                                                CALCULATION OF PI
                                                                                                                NEXT TERM IS  0.000000000000
                                                                    PI IS  3.141592653589

                                                                    
tehpu091!hpemsm1:/tmp/cob_test [359]> echo $TMPDIR
/var/opt/aat/d/hp/shr/ems/tmp
                                                                    
tehpu091!hpemsm1:/tmp/cob_test [357]> uname -a
HP-UX tehpu091 B.11.23 U 9000/800 3817456798 unlimited-user license

 

Thanks in advance.

Regards,
Jose Luis.

Hi,

 

When I compile the example on this link ( community.microfocus.com/.../what-is-a-quick-way-to-test-whether-server-express-can-compile-and-run) with this command:

 

tehpu091!hpemsm1:/tmp/cob_test [353]> cob -x -v -Q k -o pi pi.cbl
cob32 -C nolist -x -v -Q k -o pi pi.cbl
* Micro Focus Server Express         V5.1 revision 000           Compiler
* Copyright (C) 1984-2009 Micro Focus (IP) Limited.      URN RXCPV/AA0/00000H
* Accepted - verbose
* Accepted - nolist
* Compiling pi.cbl
* Total Messages:     0
* Data:        2548     Code:         365
* Micro Focus Server Express V5.1.00 Code Generator
* Copyright (C) 1984-2009 Micro Focus (IP) Ltd. All rights reserved
* Accepted - verbose
* Generating pi
* Data:      2092  Code:      1712  Literals:        96  Dynamic:    716800
Entry points defined in module: pi.o
        *PII
        pi
cob32: error opening: /var/opt/aat/d/hp/shr/ems/tmp/cobAAAa13219/a.out
tehpu091!hpemsm1:/tmp/cob_test [355]> ls -l
total 144
-r--------   1 hpemsm1    users         4055 Oct 28 21:22 pi.cbl
-rw-------   1 hpemsm1    users         2304 Oct 28 21:53 pi.int
-rw-------   1 hpemsm1    users        41472 Oct 28 21:53 pi.idy
-rw-------   1 hpemsm1    users         3587 Oct 28 21:53 pi.o

 

Why doesn't the linker generate a executable file?

The program can be run with "cobrun":

 

tehpu091!hpemsm1:/tmp/cob_test [356]> cobrun pi
                                                                                                                                                                CALCULATION OF PI
                                                                                                                NEXT TERM IS  0.000000000000
                                                                    PI IS  3.141592653589

                                                                    
tehpu091!hpemsm1:/tmp/cob_test [359]> echo $TMPDIR
/var/opt/aat/d/hp/shr/ems/tmp
                                                                    
tehpu091!hpemsm1:/tmp/cob_test [357]> uname -a
HP-UX tehpu091 B.11.23 U 9000/800 3817456798 unlimited-user license

 

Thanks in advance.

Regards,
Jose Luis.

At first glance, it looks like a file permissions problem. Do you have write permission to $TMPDIR? Is there an a.out file there already?

Hi,

 

When I compile the example on this link ( community.microfocus.com/.../what-is-a-quick-way-to-test-whether-server-express-can-compile-and-run) with this command:

 

tehpu091!hpemsm1:/tmp/cob_test [353]> cob -x -v -Q k -o pi pi.cbl
cob32 -C nolist -x -v -Q k -o pi pi.cbl
* Micro Focus Server Express         V5.1 revision 000           Compiler
* Copyright (C) 1984-2009 Micro Focus (IP) Limited.      URN RXCPV/AA0/00000H
* Accepted - verbose
* Accepted - nolist
* Compiling pi.cbl
* Total Messages:     0
* Data:        2548     Code:         365
* Micro Focus Server Express V5.1.00 Code Generator
* Copyright (C) 1984-2009 Micro Focus (IP) Ltd. All rights reserved
* Accepted - verbose
* Generating pi
* Data:      2092  Code:      1712  Literals:        96  Dynamic:    716800
Entry points defined in module: pi.o
        *PII
        pi
cob32: error opening: /var/opt/aat/d/hp/shr/ems/tmp/cobAAAa13219/a.out
tehpu091!hpemsm1:/tmp/cob_test [355]> ls -l
total 144
-r--------   1 hpemsm1    users         4055 Oct 28 21:22 pi.cbl
-rw-------   1 hpemsm1    users         2304 Oct 28 21:53 pi.int
-rw-------   1 hpemsm1    users        41472 Oct 28 21:53 pi.idy
-rw-------   1 hpemsm1    users         3587 Oct 28 21:53 pi.o

 

Why doesn't the linker generate a executable file?

The program can be run with "cobrun":

 

tehpu091!hpemsm1:/tmp/cob_test [356]> cobrun pi
                                                                                                                                                                CALCULATION OF PI
                                                                                                                NEXT TERM IS  0.000000000000
                                                                    PI IS  3.141592653589

                                                                    
tehpu091!hpemsm1:/tmp/cob_test [359]> echo $TMPDIR
/var/opt/aat/d/hp/shr/ems/tmp
                                                                    
tehpu091!hpemsm1:/tmp/cob_test [357]> uname -a
HP-UX tehpu091 B.11.23 U 9000/800 3817456798 unlimited-user license

 

Thanks in advance.

Regards,
Jose Luis.

Hi,

Yes and No. :)

 

tehpu091!hpemsm1:/tmp/cob_test [155]> cob -x -v -Q k -o pi pi.cbl

cob32 -C nolist -x -v -Q k -o pi pi.cbl

* Micro Focus Server Express         V5.1 revision 000           Compiler

* Copyright (C) 1984-2009 Micro Focus (IP) Limited.      URN RXCPV/AA0/00000H

* Accepted - verbose

* Accepted - nolist

* Compiling pi.cbl

* Total Messages:     0

* Data:        2548     Code:         365

* Micro Focus Server Express V5.1.00 Code Generator

* Copyright (C) 1984-2009 Micro Focus (IP) Ltd. All rights reserved

* Accepted - verbose

* Generating pi

* Data:      2092  Code:      1712  Literals:        96  Dynamic:    647168

Entry points defined in module: pi.o

       *PII

       pi

cob32: error opening: /var/opt/aat/d/hp/shr/ems/tmp/cobAAAa11331/a.out

tehpu091!hpemsm1:/tmp/cob_test [156]>

tehpu091!hpemsm1:/tmp/cob_test [156]> cd  $TMPDIR

tehpu091!hpemsm1:/var/opt/aat/d/hp/shr/ems/tmp [157]> ls -ld .

drwxrwxrwx  10 hpemsm1    users         1536 Oct 29 13:47 ./

tehpu091!hpemsm1:/var/opt/aat/d/hp/shr/ems/tmp [158]> find . -name 'a.out'

tehpu091!hpemsm1:/var/opt/aat/d/hp/shr/ems/tmp [159]> ls -l

total 169664

-rw-------   1 hpemsm1    users        49152 Oct 25 00:25 .nfs0D04

-rw-------   1 hpemsm1    users        49152 Oct 26 10:28 .nfs3D14

-rw-------   1 hpemsm1    users        49152 Oct 24 16:40 .nfs9A04

-rw-------   1 hpemsm1    users        49152 Oct 24 20:23 .nfsCC04

-rwxrwxrwx   1 hpemsm1    users      86605824 Jun 21  2012 Ex18780*

drwx------   2 hpemsm1    users          512 Oct 28 21:02 cobAAAa05199/

drwx------   2 hpemsm1    users          512 Oct 28 21:03 cobAAAa05245/

drwx------   2 hpemsm1    users          512 Oct 28 03:22 cobAAAa06339/

drwx------   2 hpemsm1    users          512 Oct 27 17:20 cobAAAa09855/

drwx------   2 hpemsm1    users          512 Oct 29 13:46 cobAAAa11482/

drwx------   2 hpemsm1    users          512 Oct 27 17:49 cobAAAa13458/

drwx------   2 hpemsm1    users          512 Oct 29 13:46 cobAAAa23142/

drwxrwxrwx   2 hpemsm1    users          512 Apr 23  2013 soporte/

tehpu091!hpemsm1:/var/opt/aat/d/hp/shr/ems/tmp [160]> ls -l cobAAAa11331

cobAAAa11331 not found

 

Regards,

Jose Luis


Hi,

 

When I compile the example on this link ( community.microfocus.com/.../what-is-a-quick-way-to-test-whether-server-express-can-compile-and-run) with this command:

 

tehpu091!hpemsm1:/tmp/cob_test [353]> cob -x -v -Q k -o pi pi.cbl
cob32 -C nolist -x -v -Q k -o pi pi.cbl
* Micro Focus Server Express         V5.1 revision 000           Compiler
* Copyright (C) 1984-2009 Micro Focus (IP) Limited.      URN RXCPV/AA0/00000H
* Accepted - verbose
* Accepted - nolist
* Compiling pi.cbl
* Total Messages:     0
* Data:        2548     Code:         365
* Micro Focus Server Express V5.1.00 Code Generator
* Copyright (C) 1984-2009 Micro Focus (IP) Ltd. All rights reserved
* Accepted - verbose
* Generating pi
* Data:      2092  Code:      1712  Literals:        96  Dynamic:    716800
Entry points defined in module: pi.o
        *PII
        pi
cob32: error opening: /var/opt/aat/d/hp/shr/ems/tmp/cobAAAa13219/a.out
tehpu091!hpemsm1:/tmp/cob_test [355]> ls -l
total 144
-r--------   1 hpemsm1    users         4055 Oct 28 21:22 pi.cbl
-rw-------   1 hpemsm1    users         2304 Oct 28 21:53 pi.int
-rw-------   1 hpemsm1    users        41472 Oct 28 21:53 pi.idy
-rw-------   1 hpemsm1    users         3587 Oct 28 21:53 pi.o

 

Why doesn't the linker generate a executable file?

The program can be run with "cobrun":

 

tehpu091!hpemsm1:/tmp/cob_test [356]> cobrun pi
                                                                                                                                                                CALCULATION OF PI
                                                                                                                NEXT TERM IS  0.000000000000
                                                                    PI IS  3.141592653589

                                                                    
tehpu091!hpemsm1:/tmp/cob_test [359]> echo $TMPDIR
/var/opt/aat/d/hp/shr/ems/tmp
                                                                    
tehpu091!hpemsm1:/tmp/cob_test [357]> uname -a
HP-UX tehpu091 B.11.23 U 9000/800 3817456798 unlimited-user license

 

Thanks in advance.

Regards,
Jose Luis.

Hi,

Yes and No. :)

 

tehpu091!hpemsm1:/tmp/cob_test [155]> cob -x -v -Q k -o pi pi.cbl

cob32 -C nolist -x -v -Q k -o pi pi.cbl

* Micro Focus Server Express         V5.1 revision 000           Compiler

* Copyright (C) 1984-2009 Micro Focus (IP) Limited.      URN RXCPV/AA0/00000H

* Accepted - verbose

* Accepted - nolist

* Compiling pi.cbl

* Total Messages:     0

* Data:        2548     Code:         365

* Micro Focus Server Express V5.1.00 Code Generator

* Copyright (C) 1984-2009 Micro Focus (IP) Ltd. All rights reserved

* Accepted - verbose

* Generating pi

* Data:      2092  Code:      1712  Literals:        96  Dynamic:    647168

Entry points defined in module: pi.o

       *PII

       pi

cob32: error opening: /var/opt/aat/d/hp/shr/ems/tmp/cobAAAa11331/a.out

tehpu091!hpemsm1:/tmp/cob_test [156]>

tehpu091!hpemsm1:/tmp/cob_test [156]> cd  $TMPDIR

tehpu091!hpemsm1:/var/opt/aat/d/hp/shr/ems/tmp [157]> ls -ld .

drwxrwxrwx  10 hpemsm1    users         1536 Oct 29 13:47 ./

tehpu091!hpemsm1:/var/opt/aat/d/hp/shr/ems/tmp [158]> find . -name 'a.out'

tehpu091!hpemsm1:/var/opt/aat/d/hp/shr/ems/tmp [159]> ls -l

total 169664

-rw-------   1 hpemsm1    users        49152 Oct 25 00:25 .nfs0D04

-rw-------   1 hpemsm1    users        49152 Oct 26 10:28 .nfs3D14

-rw-------   1 hpemsm1    users        49152 Oct 24 16:40 .nfs9A04

-rw-------   1 hpemsm1    users        49152 Oct 24 20:23 .nfsCC04

-rwxrwxrwx   1 hpemsm1    users      86605824 Jun 21  2012 Ex18780*

drwx------   2 hpemsm1    users          512 Oct 28 21:02 cobAAAa05199/

drwx------   2 hpemsm1    users          512 Oct 28 21:03 cobAAAa05245/

drwx------   2 hpemsm1    users          512 Oct 28 03:22 cobAAAa06339/

drwx------   2 hpemsm1    users          512 Oct 27 17:20 cobAAAa09855/

drwx------   2 hpemsm1    users          512 Oct 29 13:46 cobAAAa11482/

drwx------   2 hpemsm1    users          512 Oct 27 17:49 cobAAAa13458/

drwx------   2 hpemsm1    users          512 Oct 29 13:46 cobAAAa23142/

drwxrwxrwx   2 hpemsm1    users          512 Apr 23  2013 soporte/

tehpu091!hpemsm1:/var/opt/aat/d/hp/shr/ems/tmp [160]> ls -l cobAAAa11331

cobAAAa11331 not found

 

Regards,

Jose Luis


Hi,

 

When I compile the example on this link ( community.microfocus.com/.../what-is-a-quick-way-to-test-whether-server-express-can-compile-and-run) with this command:

 

tehpu091!hpemsm1:/tmp/cob_test [353]> cob -x -v -Q k -o pi pi.cbl
cob32 -C nolist -x -v -Q k -o pi pi.cbl
* Micro Focus Server Express         V5.1 revision 000           Compiler
* Copyright (C) 1984-2009 Micro Focus (IP) Limited.      URN RXCPV/AA0/00000H
* Accepted - verbose
* Accepted - nolist
* Compiling pi.cbl
* Total Messages:     0
* Data:        2548     Code:         365
* Micro Focus Server Express V5.1.00 Code Generator
* Copyright (C) 1984-2009 Micro Focus (IP) Ltd. All rights reserved
* Accepted - verbose
* Generating pi
* Data:      2092  Code:      1712  Literals:        96  Dynamic:    716800
Entry points defined in module: pi.o
        *PII
        pi
cob32: error opening: /var/opt/aat/d/hp/shr/ems/tmp/cobAAAa13219/a.out
tehpu091!hpemsm1:/tmp/cob_test [355]> ls -l
total 144
-r--------   1 hpemsm1    users         4055 Oct 28 21:22 pi.cbl
-rw-------   1 hpemsm1    users         2304 Oct 28 21:53 pi.int
-rw-------   1 hpemsm1    users        41472 Oct 28 21:53 pi.idy
-rw-------   1 hpemsm1    users         3587 Oct 28 21:53 pi.o

 

Why doesn't the linker generate a executable file?

The program can be run with "cobrun":

 

tehpu091!hpemsm1:/tmp/cob_test [356]> cobrun pi
                                                                                                                                                                CALCULATION OF PI
                                                                                                                NEXT TERM IS  0.000000000000
                                                                    PI IS  3.141592653589

                                                                    
tehpu091!hpemsm1:/tmp/cob_test [359]> echo $TMPDIR
/var/opt/aat/d/hp/shr/ems/tmp
                                                                    
tehpu091!hpemsm1:/tmp/cob_test [357]> uname -a
HP-UX tehpu091 B.11.23 U 9000/800 3817456798 unlimited-user license

 

Thanks in advance.

Regards,
Jose Luis.

Is tmp area full?

Hi,

 

When I compile the example on this link ( community.microfocus.com/.../what-is-a-quick-way-to-test-whether-server-express-can-compile-and-run) with this command:

 

tehpu091!hpemsm1:/tmp/cob_test [353]> cob -x -v -Q k -o pi pi.cbl
cob32 -C nolist -x -v -Q k -o pi pi.cbl
* Micro Focus Server Express         V5.1 revision 000           Compiler
* Copyright (C) 1984-2009 Micro Focus (IP) Limited.      URN RXCPV/AA0/00000H
* Accepted - verbose
* Accepted - nolist
* Compiling pi.cbl
* Total Messages:     0
* Data:        2548     Code:         365
* Micro Focus Server Express V5.1.00 Code Generator
* Copyright (C) 1984-2009 Micro Focus (IP) Ltd. All rights reserved
* Accepted - verbose
* Generating pi
* Data:      2092  Code:      1712  Literals:        96  Dynamic:    716800
Entry points defined in module: pi.o
        *PII
        pi
cob32: error opening: /var/opt/aat/d/hp/shr/ems/tmp/cobAAAa13219/a.out
tehpu091!hpemsm1:/tmp/cob_test [355]> ls -l
total 144
-r--------   1 hpemsm1    users         4055 Oct 28 21:22 pi.cbl
-rw-------   1 hpemsm1    users         2304 Oct 28 21:53 pi.int
-rw-------   1 hpemsm1    users        41472 Oct 28 21:53 pi.idy
-rw-------   1 hpemsm1    users         3587 Oct 28 21:53 pi.o

 

Why doesn't the linker generate a executable file?

The program can be run with "cobrun":

 

tehpu091!hpemsm1:/tmp/cob_test [356]> cobrun pi
                                                                                                                                                                CALCULATION OF PI
                                                                                                                NEXT TERM IS  0.000000000000
                                                                    PI IS  3.141592653589

                                                                    
tehpu091!hpemsm1:/tmp/cob_test [359]> echo $TMPDIR
/var/opt/aat/d/hp/shr/ems/tmp
                                                                    
tehpu091!hpemsm1:/tmp/cob_test [357]> uname -a
HP-UX tehpu091 B.11.23 U 9000/800 3817456798 unlimited-user license

 

Thanks in advance.

Regards,
Jose Luis.

Hi,

Yes.

 

tehpu091!hpemsm1:/tmp [39]> df -k .
/tmp                   (/dev/vg00/lvol4       ) :  2091472 total allocated Kb
                                                   2063656 free allocated Kb
                                                     27816 used allocated Kb
                                                         1 % allocation used


tehpu091!hpemsm1:/tmp/cob_test [49]> echo $TMPDIR
/tmp
tehpu091!hpemsm1:/tmp/cob_test [50]> cob -x -v -Q k -o pi pi.cbl                                                                                            cob32 -C nolist -x -v -Q k -o pi pi.cbl
* Micro Focus Server Express         V5.1 revision 000           Compiler
* Copyright (C) 1984-2009 Micro Focus (IP) Limited.      URN RXCPV/AA0/00000H
* Accepted - verbose
* Accepted - nolist
* Compiling pi.cbl
* Total Messages:     0
* Data:        2548     Code:         365
* Micro Focus Server Express V5.1.00 Code Generator
* Copyright (C) 1984-2009 Micro Focus (IP) Ltd. All rights reserved
* Accepted - verbose
* Generating pi
* Data:      2092  Code:      1712  Literals:        96  Dynamic:    647168
Entry points defined in module: pi.o
        *PII
        pi
cob32: error opening: /tmp/cobAAAa21540/a.out
tehpu091!hpemsm1:/tmp/cob_test [51]> ls -l
total 144
-r--------   1 hpemsm1    users         4055 Oct 28 21:22 pi.cbl
-rw-------   1 hpemsm1    users        41472 Oct 30 20:01 pi.idy
-rw-------   1 hpemsm1    users         2304 Oct 30 20:01 pi.int
-rw-------   1 hpemsm1    users         3587 Oct 30 20:01 pi.o

tehpu091!hpemsm1:/tmp/cob_test [52]> ls -l /tmp/cobAAAa21540
/tmp/cobAAAa21540 not found

 

Regards, Jose Luis.

 


Hi,

 

When I compile the example on this link ( community.microfocus.com/.../what-is-a-quick-way-to-test-whether-server-express-can-compile-and-run) with this command:

 

tehpu091!hpemsm1:/tmp/cob_test [353]> cob -x -v -Q k -o pi pi.cbl
cob32 -C nolist -x -v -Q k -o pi pi.cbl
* Micro Focus Server Express         V5.1 revision 000           Compiler
* Copyright (C) 1984-2009 Micro Focus (IP) Limited.      URN RXCPV/AA0/00000H
* Accepted - verbose
* Accepted - nolist
* Compiling pi.cbl
* Total Messages:     0
* Data:        2548     Code:         365
* Micro Focus Server Express V5.1.00 Code Generator
* Copyright (C) 1984-2009 Micro Focus (IP) Ltd. All rights reserved
* Accepted - verbose
* Generating pi
* Data:      2092  Code:      1712  Literals:        96  Dynamic:    716800
Entry points defined in module: pi.o
        *PII
        pi
cob32: error opening: /var/opt/aat/d/hp/shr/ems/tmp/cobAAAa13219/a.out
tehpu091!hpemsm1:/tmp/cob_test [355]> ls -l
total 144
-r--------   1 hpemsm1    users         4055 Oct 28 21:22 pi.cbl
-rw-------   1 hpemsm1    users         2304 Oct 28 21:53 pi.int
-rw-------   1 hpemsm1    users        41472 Oct 28 21:53 pi.idy
-rw-------   1 hpemsm1    users         3587 Oct 28 21:53 pi.o

 

Why doesn't the linker generate a executable file?

The program can be run with "cobrun":

 

tehpu091!hpemsm1:/tmp/cob_test [356]> cobrun pi
                                                                                                                                                                CALCULATION OF PI
                                                                                                                NEXT TERM IS  0.000000000000
                                                                    PI IS  3.141592653589

                                                                    
tehpu091!hpemsm1:/tmp/cob_test [359]> echo $TMPDIR
/var/opt/aat/d/hp/shr/ems/tmp
                                                                    
tehpu091!hpemsm1:/tmp/cob_test [357]> uname -a
HP-UX tehpu091 B.11.23 U 9000/800 3817456798 unlimited-user license

 

Thanks in advance.

Regards,
Jose Luis.

Hello Jose Luis,

Because of the complexity of this issue, I'd like to suggest that you create a Support Incident about it, and mention in the description that it should be assigned to Blair McDonald. Once we resolve the problem, I'll come back here and update the Community discussion with the resolution.