Re: how to link compiler logical from mmk

[email protected] ("purnima bhandari")
Newsgroups perl.vmsperl
Message-ID <[email protected]>
Hi All,

Thanks for all the help...

I am able to link by adding my own .com fine which is defining the
compiler's needed logical.I added that one in the descrip.mms file into the
.FIRST location for MMK and i also modified the descrip_mms.template for
Perl5.10.0.

Now the build is going fine except for the file VMS.C.Below is the warning i
am getting.

CC/DECC/NOANSI_ALIAS
/Include=[]/Standard=Relaxed_ANSI/Prefix=All/Obj=.obj/NoList/float=ieee/ieee=denorm/Define=(PERL_CORE,_USE_STD_
STAT=1) VMS.C

    VMS_INO_T_COPY(statbufp->st_ino, statbufp->crtl_stat.st_ino);
....^
%CC-W-CVTDIFTYPES, In this statement, "statbufp->crtl_stat.st_ino" of type
"pointer to unsigned short", is being converted to "unsig
ned int".
at line number 11837 in file PERL_BUILD_ROOT:[000000]vms.c;1

    VMS_DEVICE_ENCODE
....^
%CC-W-CVTDIFTYPES, In this statement, "statbufp->crtl_stat.st_dev" of type
"pointer to char", is being converted to "unsigned int".
at line number 11838 in file PERL_BUILD_ROOT:[000000]vms.c;1

      VMS_INO_T_COPY(statbufp->st_ino, statbufp->crtl_stat.st_ino);
......^
%CC-W-CVTDIFTYPES, In this statement, "statbufp->crtl_stat.st_ino" of type
"pointer to unsigned short", is being converted to "unsig
ned int".
at line number 11993 in file PERL_BUILD_ROOT:[000000]vms.c;1

      VMS_DEVICE_ENCODE
......^
%CC-W-CVTDIFTYPES, In this statement, "statbufp->crtl_stat.st_dev" of type
"pointer to char", is being converted to "unsigned int".
at line number 11994 in file PERL_BUILD_ROOT:[000000]vms.c;1

        rslt = realpath(filespec, outbuf);
...............^
%CC-I-IMPLICITFUNC, In this statement, the identifier "realpath" is
implicitly declared as a function.
at line number 13127 in file PERL_BUILD_ROOT:[000000]vms.c;1

        rslt = realpath(filespec, outbuf);
........^
%CC-W-CVTDIFTYPES, In this statement, "realpath(...)" of type "int", is
being converted to "pointer to char".
at line number 13127 in file PERL_BUILD_ROOT:[000000]vms.c;1
%MMK-F-ERRUPD, error status %X10B91260 occurred when updating target VMS.OBJ
  25-NOV-2008 02:08:59
$



The compiler version used is DEC C V 7.x.
I am very new to the VMS .Can anyone please help me with their suggestions?

Thanks in advance.


Regards,
Purnima




On Mon, Nov 17, 2008 at 7:20 PM, Matt Madison <[email protected]> wrote:

> Purnima,
> Assuming you're using the command procedure provided with DEC C to set the
> version that you want to use, the simplest way to do what you want is to
> add:
>
> .FIRST
>     @SYS$SYSTEM:DECC$SET_VERSION 6.0
>
> to the makefile (substituting whichever version you have installed for
> "6.0" on that command line).
>
> Note that logical names *are* inherited from the parent process; it's the
> SET COMMAND which changes the CC DCL verb that does not get passed down to
> the subprocess.
>
> Any commands you put under the ".FIRST" target will get executed in the
> subprocess on its creation, before any of the commands that build real
> targets.  So it's perfect for commands you need to setup the subprocess's
> environment.
>
> Hope this helps.
>
> -Matt
>
>
> On 17 Nov 2008, at 03:38 , purnima bhandari wrote:
>
> Hi,
>
> I am trying to build a perl5.10.0 using MMK.
> I am linking against the 8.3 decc$shr on a 7.3-2 system.
> Compiler virsion of the & 7.3-2 is below.
> $ cc/ver
> DEC C V5.7-006 on OpenVMS Alpha V7.3-2
> $
>
> For compiling the perl5.10.0 i need minimum DECC v6.0.
> By defining the logical with new compiler i am  getting  crash because the
> mmk is not inheriting either symbols or logical names from the parent
> process. At command prompt the file is getting compiled with the logical
> defined.. So I need to include the process of calling .com file which
> defines the compiler logical in mmk.
>
> how can I add my own command file to be called from mmk?
>
> Thanks in advance.
>
>
> Regards,
> Purnima
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.