<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic hardware platform name in HP-UX 11V2 in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979963#M95889</link>
    <description>Could you please let us know what is the hardware platform name in HP-UX 11V2?&lt;BR /&gt;&lt;BR /&gt;We tried to execute the following program in HP-UX 11i and 11V2.&lt;BR /&gt;&lt;BR /&gt;Program:&lt;BR /&gt;&lt;BR /&gt;#define _CMA__HPPA      4&lt;BR /&gt;# if defined(__hppa)&lt;BR /&gt;#  define       _CMA_HARDWARE_  _CMA__HPPA&lt;BR /&gt;# ifndef _CMA_HARDWARE_&lt;BR /&gt;   #error "_CMA_HARDWARE_ not set"&lt;BR /&gt;   # endif&lt;BR /&gt;   # endif&lt;BR /&gt;   #include&lt;STDIO.H&gt;&lt;BR /&gt;   main()&lt;BR /&gt;   {&lt;BR /&gt;   if(_CMA_HARDWARE_==4)&lt;BR /&gt;   printf("Hai \n");&lt;BR /&gt;   }&lt;BR /&gt;&lt;BR /&gt;In 11i,&lt;BR /&gt;Compilation goes through fine and we get the output as expected.&lt;BR /&gt;&lt;BR /&gt;In 11V2,&lt;BR /&gt;It gives the compilation error &lt;BR /&gt;"Error 172: "test_cma.c", line 11 # Undeclared variable '_CMA_HARDWARE_'.&lt;BR /&gt;       if(_CMA_HARDWARE_==4)"&lt;BR /&gt;&lt;BR /&gt;We believe _hppa refers to HP-PA RISC architecture and so we need to change the "if defined(__hppa)" in 11V2. Could you please help us on this issue?&lt;BR /&gt;&lt;BR /&gt;FYI, please find below the uname details of our 11i and 11v2 servers:&lt;BR /&gt;&lt;BR /&gt;11i - HP-UX B.11.11 U 9000/899 1683481321 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;11V2 - HP-UX B.11.23 U ia64 2181415107 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STDIO.H&gt;</description>
    <pubDate>Thu, 12 Apr 2007 06:24:22 GMT</pubDate>
    <dc:creator>sathis kumar</dc:creator>
    <dc:date>2007-04-12T06:24:22Z</dc:date>
    <item>
      <title>hardware platform name in HP-UX 11V2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979963#M95889</link>
      <description>Could you please let us know what is the hardware platform name in HP-UX 11V2?&lt;BR /&gt;&lt;BR /&gt;We tried to execute the following program in HP-UX 11i and 11V2.&lt;BR /&gt;&lt;BR /&gt;Program:&lt;BR /&gt;&lt;BR /&gt;#define _CMA__HPPA      4&lt;BR /&gt;# if defined(__hppa)&lt;BR /&gt;#  define       _CMA_HARDWARE_  _CMA__HPPA&lt;BR /&gt;# ifndef _CMA_HARDWARE_&lt;BR /&gt;   #error "_CMA_HARDWARE_ not set"&lt;BR /&gt;   # endif&lt;BR /&gt;   # endif&lt;BR /&gt;   #include&lt;STDIO.H&gt;&lt;BR /&gt;   main()&lt;BR /&gt;   {&lt;BR /&gt;   if(_CMA_HARDWARE_==4)&lt;BR /&gt;   printf("Hai \n");&lt;BR /&gt;   }&lt;BR /&gt;&lt;BR /&gt;In 11i,&lt;BR /&gt;Compilation goes through fine and we get the output as expected.&lt;BR /&gt;&lt;BR /&gt;In 11V2,&lt;BR /&gt;It gives the compilation error &lt;BR /&gt;"Error 172: "test_cma.c", line 11 # Undeclared variable '_CMA_HARDWARE_'.&lt;BR /&gt;       if(_CMA_HARDWARE_==4)"&lt;BR /&gt;&lt;BR /&gt;We believe _hppa refers to HP-PA RISC architecture and so we need to change the "if defined(__hppa)" in 11V2. Could you please help us on this issue?&lt;BR /&gt;&lt;BR /&gt;FYI, please find below the uname details of our 11i and 11v2 servers:&lt;BR /&gt;&lt;BR /&gt;11i - HP-UX B.11.11 U 9000/899 1683481321 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;11V2 - HP-UX B.11.23 U ia64 2181415107 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Thu, 12 Apr 2007 06:24:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979963#M95889</guid>
      <dc:creator>sathis kumar</dc:creator>
      <dc:date>2007-04-12T06:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: hardware platform name in HP-UX 11V2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979964#M95890</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;HP-UX 11V2 comes for PA-RISC and ia64 platform.&lt;BR /&gt;&lt;BR /&gt;U can check like following.&lt;BR /&gt;&lt;BR /&gt;# getconf MACHINE_MODEL&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Apr 2007 06:34:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979964#M95890</guid>
      <dc:creator>SANTOSH S. MHASKAR</dc:creator>
      <dc:date>2007-04-12T06:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: hardware platform name in HP-UX 11V2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979965#M95891</link>
      <description>In 11v2, getconf MACHINE_MODEL gives&lt;BR /&gt;ia64 hp server rx4640&lt;BR /&gt;&lt;BR /&gt;In 11i, getconf MACHINE_MODEL gives&lt;BR /&gt;9000/899/K570&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Apr 2007 06:39:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979965#M95891</guid>
      <dc:creator>sathis kumar</dc:creator>
      <dc:date>2007-04-12T06:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: hardware platform name in HP-UX 11V2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979966#M95892</link>
      <description>Sathis,&lt;BR /&gt;&lt;BR /&gt;I do not know if I understood your question, but also if you do a uname -a command and you get a "9000/800" the platform is pa-risc and if you get ia64 then the platform is integrity.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jaime.</description>
      <pubDate>Thu, 12 Apr 2007 06:41:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979966#M95892</guid>
      <dc:creator>Jaime Bolanos Rojas.</dc:creator>
      <dc:date>2007-04-12T06:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: hardware platform name in HP-UX 11V2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979967#M95893</link>
      <description>The first version you mention B.11.11 ( 11i V1 ) running on a K570 is a HP-UX version which will only run on the pa-risc platform.&lt;BR /&gt;The second one B.11.23 ( 11i V2 ) in your case happens to run on a Itanium/Integrity system BUT can be installed on a pa-risc system ( starting with RP series so not your K570 )as well.&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Apr 2007 03:00:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979967#M95893</guid>
      <dc:creator>Marcel Burggraeve</dc:creator>
      <dc:date>2007-04-13T03:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: hardware platform name in HP-UX 11V2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979968#M95894</link>
      <description>First of all, what problem are you actually trying to solve, since I suspect this is just a test program?&lt;BR /&gt;&lt;BR /&gt;As far as the code goes, it doesn't compile on your 11iV2 system because that is an IA64 (not HP-PA) system, so __hppa is not defined, which means that _CMA_HARDWARE_ doesn't get defined either.  Looks like there may be a logic error; there's no point testing the value of _CMA_HARDWARE_ right after it has been defined - was that meant to go outside the '#if defined (__hppa)'?  Anyway, you've got conditional definition of _CMA_HARDWARE_ and then the body of the code uses that variable assuming it is defined, which is a mistake.&lt;BR /&gt;&lt;BR /&gt;What decision are you wanting to make in your code based on whether the system is PA or not?  And is that what you're really testing for, or whether it is an HP-UX system?&lt;BR /&gt;&lt;BR /&gt;As already pointed out, HP-UX 11iV2 (and 11iV3) runs on both HP-PA and IA64 platforms, there isn't a single answer.&lt;BR /&gt;&lt;BR /&gt;Andrew</description>
      <pubDate>Fri, 13 Apr 2007 03:41:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979968#M95894</guid>
      <dc:creator>Andrew Merritt_2</dc:creator>
      <dc:date>2007-04-13T03:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: hardware platform name in HP-UX 11V2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979969#M95895</link>
      <description>Below is the code we use in 11i and 11V2. &lt;BR /&gt;&lt;BR /&gt;/*&lt;BR /&gt; * Name of the hardware platform&lt;BR /&gt; */&lt;BR /&gt;#define _CMA__MIPS      1&lt;BR /&gt;#define _CMA__VAX       2&lt;BR /&gt;#define _CMA__M68K      3&lt;BR /&gt;#define _CMA__HPPA      4&lt;BR /&gt;#define _CMA__IBMR2     5&lt;BR /&gt;#define _CMA__ALPHA     6&lt;BR /&gt;#define _CMA__MX300I    7&lt;BR /&gt;#define _CMA__CPLMIPS   8&lt;BR /&gt;#define _CMA__I386      9&lt;BR /&gt;&lt;BR /&gt;#ifndef _CMA_HARDWARE_&lt;BR /&gt;# if defined(vax) || defined (VAX) || defined(__vax) || defined(__VAX)&lt;BR /&gt;#  define       _CMA_HARDWARE_  _CMA__VAX&lt;BR /&gt;# endif&lt;BR /&gt;# if defined(mips) || defined(MIPS) || defined(__mips) || defined(__MIPS) || defined(__MIPSEL__) || defined(__mips__)&lt;BR /&gt;#  if defined(SNI_DCOSX)&lt;BR /&gt;#  define       _CMA_HARDWARE_  _CMA__CPLMIPS&lt;BR /&gt;#  else&lt;BR /&gt;#  define       _CMA_HARDWARE_  _CMA__MIPS&lt;BR /&gt;#  endif&lt;BR /&gt;# endif&lt;BR /&gt;# if defined(m68k) || defined(m68000) || defined(_ISP__M68K) || defined(M68000) || defined(mc68000)&lt;BR /&gt;#  define       _CMA_HARDWARE_  _CMA__M68K&lt;BR /&gt;# endif&lt;BR /&gt;# if defined(hp9000s300) || defined(__hp9000s300)&lt;BR /&gt;#  define       _CMA_HARDWARE_  _CMA__M68K&lt;BR /&gt;# endif&lt;BR /&gt;# if defined(__hppa)&lt;BR /&gt;#  define       _CMA_HARDWARE_  _CMA__HPPA&lt;BR /&gt;# endif&lt;BR /&gt;# if defined(_IBMR2)&lt;BR /&gt;#  define _CMA_HARDWARE_        _CMA__IBMR2&lt;BR /&gt;# endif&lt;BR /&gt;# if defined(__ALPHA) || defined(__alpha)&lt;BR /&gt;#  define _CMA_HARDWARE_        _CMA__ALPHA&lt;BR /&gt;# endif&lt;BR /&gt;# if defined(SNI_MX300I)&lt;BR /&gt;#  define _CMA_HARDWARE_ _CMA__MX300I&lt;BR /&gt;# endif&lt;BR /&gt;# if !defined(SNI_SVR4)&lt;BR /&gt;#  ifdef __i386&lt;BR /&gt;#   define       _CMA_HARDWARE_  _CMA__I386&lt;BR /&gt;#  endif&lt;BR /&gt;# endif&lt;BR /&gt;# ifndef _CMA_HARDWARE_&lt;BR /&gt;   #error "_CMA_HARDWARE_ not set"&lt;BR /&gt;# endif&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;The code works fine in 11i version. But it gives compilation error "Error 119: "./cma_config.h", line 339 # #error "_CMA_HARDWARE_ not set"&lt;BR /&gt;       #error "_CMA_HARDWARE_ not set"&lt;BR /&gt;" in 11V2. We believe, for 11i, &lt;BR /&gt;&lt;BR /&gt;if defined(__hppa) condition gets satisfied and so "#  define       _CMA_HARDWARE_  _CMA__HPPA" gets executed.. &lt;BR /&gt;&lt;BR /&gt;But in 11V2, we believe the condition has to be changed instead checking as _hppa. We would like to know how to make this work in 11V2..&lt;BR /&gt;&lt;BR /&gt;FYI, the dce version we have in 11i and 11V2 is : HP DCE/9000 1.8 PHSS_26394-96&lt;BR /&gt;Could you please confirm if we have to install DCE 1.9 version or we can keep 1.8 itself.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help.</description>
      <pubDate>Fri, 13 Apr 2007 04:56:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979969#M95895</guid>
      <dc:creator>sathis kumar</dc:creator>
      <dc:date>2007-04-13T04:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: hardware platform name in HP-UX 11V2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979970#M95896</link>
      <description>Thanks for the extra information.&lt;BR /&gt;&lt;BR /&gt;Is this code you have written, or from a third party?&lt;BR /&gt;&lt;BR /&gt;Do you need to know whether you are compiling on HP-PA, or merely HP-UX?  What is the value of _CMA_HARDWARE_ actually used for?&lt;BR /&gt;&lt;BR /&gt;As explained, the code WILL compile on 11iV2 on a PA system.  11iV2 runs on HP-PA systems, and on IA64 (Itanium) systems.  You are running it on an IA64 system, where it would not make sense for __hppa to be defined.&lt;BR /&gt;&lt;BR /&gt;There is surely an equivalent value to '__hppa' for IA64 systems (I believe it is '__ia64'), but even if we know what it is, what will happen with your code when it is defined?   &lt;BR /&gt;&lt;BR /&gt;Is it only used to display the hardware platform name, or for some more technical reason such as setting word sizes or byte order?&lt;BR /&gt;&lt;BR /&gt;Andrew</description>
      <pubDate>Fri, 13 Apr 2007 05:30:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979970#M95896</guid>
      <dc:creator>Andrew Merritt_2</dc:creator>
      <dc:date>2007-04-13T05:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: hardware platform name in HP-UX 11V2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979971#M95897</link>
      <description>Simply extend the "if defined" test to include the IPF line of servers too:&lt;BR /&gt;&lt;BR /&gt;replace...&lt;BR /&gt;# if defined(__hppa)&lt;BR /&gt;with...&lt;BR /&gt;# if defined(__hppa) || defined(__ia64)</description>
      <pubDate>Fri, 13 Apr 2007 09:45:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979971#M95897</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-04-13T09:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: hardware platform name in HP-UX 11V2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979972#M95898</link>
      <description>Yes, that's the sort of thing that needs to be done, but as proposed, you'd then be defining&lt;BR /&gt;&lt;BR /&gt;# define _CMA_HARDWARE_ _CMA__HPPA&lt;BR /&gt;&lt;BR /&gt;which is techically incorrect, since the HW is not HP-PA (though the code would compile).  Which is why I'm trying to make the point that in order to know the correct change to make, you need to understand what use is being made of the information.&lt;BR /&gt;&lt;BR /&gt;Andrew</description>
      <pubDate>Fri, 13 Apr 2007 09:48:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979972#M95898</guid>
      <dc:creator>Andrew Merritt_2</dc:creator>
      <dc:date>2007-04-13T09:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: hardware platform name in HP-UX 11V2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979973#M95899</link>
      <description>Correct Andrew I was only demonstrating how to compile the source code as sathis hasn't stated the purpose behind writing this code snippet which does nothing except print the string "Hai".</description>
      <pubDate>Fri, 13 Apr 2007 10:05:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979973#M95899</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-04-13T10:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: hardware platform name on HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979974#M95900</link>
      <description>&lt;P&gt;&amp;gt;Could you please let us know what is the hardware platform name in HP-UX 11.23?&lt;BR /&gt;&lt;BR /&gt;Please mention Integrity, IPF or IA for any of your 11.23 requests. HP-UX 11V2 is not precise enough to answer your questions.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;We believe _hppa refers to HP-PA RISC architecture and so we need to change the "if defined(__hppa)" in 11V2. Could you please help us on this issue?&lt;BR /&gt;&lt;BR /&gt;You need to add:&lt;BR /&gt;#if defined(__ia64)&lt;BR /&gt;_CMA_HARDWARE_ _CMA__IA64&lt;BR /&gt;&lt;BR /&gt;As Andrew says, you then need to find all places where _CMA_HARDWARE_ is tested and seem if it needs to check _CMA__IA64&lt;BR /&gt;&lt;BR /&gt;&amp;gt;#define _CMA__HPPA 4&lt;BR /&gt;&lt;BR /&gt;You would need a new number for IA64.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;the DCE version we have in 11.11 and 11.23 is: HP DCE/9000 1.8&lt;BR /&gt;&lt;BR /&gt;Is this a DCE header that HP supplies?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2011 03:06:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979974#M95900</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-10-06T03:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: hardware platform name in HP-UX 11V2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979975#M95901</link>
      <description>Btw, Satish, What is the purpose of this program, you can easily get the hardware details in 11.23 with 'machinfo' command.&lt;BR /&gt;And machinfo can be executed from nonroot user as well.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj.</description>
      <pubDate>Sat, 14 Apr 2007 00:30:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979975#M95901</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2007-04-14T00:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: hardware platform name in HP-UX 11V2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979976#M95902</link>
      <description>The model command will also show you machine details.&lt;BR /&gt;&lt;BR /&gt;BErd</description>
      <pubDate>Tue, 01 May 2007 10:48:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hardware-platform-name-in-hp-ux-11v2/m-p/3979976#M95902</guid>
      <dc:creator>Berd</dc:creator>
      <dc:date>2007-05-01T10:48:52Z</dc:date>
    </item>
  </channel>
</rss>

