<?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 Re: AIX to HPUX porting in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528682#M728680</link>
    <description>Thanks Brian,&lt;BR /&gt;&lt;BR /&gt;I went to those resource sites before but the compatibilities that I am facing may be because I may be really be stuck in something really basic. My code was written much on POSIX standards so as to easily port hence when I migrated I got a lot of discrepancies on the compilation. Is there anything I need to check wether I am running an ANSI based C compiler as I presume that the aCC uses a lot of C libraries I guess. I dont see a lot of structs or even some basic structures look completly different. As I told you I am pretty new in HP and it is all appearing Green to me. Any direction for some closure between the 2 platforms could really help. &lt;BR /&gt;&lt;BR /&gt;Thanks again&lt;BR /&gt;&lt;BR /&gt;Gopal</description>
    <pubDate>Tue, 15 May 2001 17:21:00 GMT</pubDate>
    <dc:creator>Gopal_2</dc:creator>
    <dc:date>2001-05-15T17:21:00Z</dc:date>
    <item>
      <title>AIX to HPUX porting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528680#M728678</link>
      <description>Hi Guys&lt;BR /&gt;&lt;BR /&gt;I have a huge porting job to do with a very small time frame. I have purchased the aCC compiler to run on HPUX 11.0. The C compiler I have came with HPUX11.0. As I started to port I am starting to get a lot of compatibility issues. Do I have to get any special C compiler for the job. I thought the C compiler that tags along with the OS is ANSI compliant. Can you guys help me with some resource or help on porting between the platforms or extra pointers that I may need. I am very new to HP and that is making things even more worse.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for the help&lt;BR /&gt;&lt;BR /&gt;Gopal</description>
      <pubDate>Tue, 15 May 2001 16:43:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528680#M728678</guid>
      <dc:creator>Gopal_2</dc:creator>
      <dc:date>2001-05-15T16:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: AIX to HPUX porting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528681#M728679</link>
      <description>Gopal,&lt;BR /&gt;&lt;BR /&gt;I've referred many questions just like yours to the HP Developer's Resource website.  It contains useful, well-organized tips and forums that might actually help you with your Porting challenges:&lt;BR /&gt;&lt;A href="http://devrsrc.external.hp.com/devresource/Docs/DocLibrary.html" target="_blank"&gt;http://devrsrc.external.hp.com/devresource/Docs/DocLibrary.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Check it out!&lt;BR /&gt;&lt;BR /&gt;-&amp;gt; Brian Hackley</description>
      <pubDate>Tue, 15 May 2001 16:52:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528681#M728679</guid>
      <dc:creator>Brian Hackley</dc:creator>
      <dc:date>2001-05-15T16:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: AIX to HPUX porting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528682#M728680</link>
      <description>Thanks Brian,&lt;BR /&gt;&lt;BR /&gt;I went to those resource sites before but the compatibilities that I am facing may be because I may be really be stuck in something really basic. My code was written much on POSIX standards so as to easily port hence when I migrated I got a lot of discrepancies on the compilation. Is there anything I need to check wether I am running an ANSI based C compiler as I presume that the aCC uses a lot of C libraries I guess. I dont see a lot of structs or even some basic structures look completly different. As I told you I am pretty new in HP and it is all appearing Green to me. Any direction for some closure between the 2 platforms could really help. &lt;BR /&gt;&lt;BR /&gt;Thanks again&lt;BR /&gt;&lt;BR /&gt;Gopal</description>
      <pubDate>Tue, 15 May 2001 17:21:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528682#M728680</guid>
      <dc:creator>Gopal_2</dc:creator>
      <dc:date>2001-05-15T17:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: AIX to HPUX porting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528683#M728681</link>
      <description>Gopal,&lt;BR /&gt;&lt;BR /&gt;I think I would try compiling with the -D _INCLUDE_POSIX_SOURCE flag. I assume that you are using makefiles so I would add the define to your CFLAGS</description>
      <pubDate>Tue, 15 May 2001 17:30:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528683#M728681</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-05-15T17:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: AIX to HPUX porting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528684#M728682</link>
      <description>Hi Clay&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;INSIGNIO_/u/quantum/aix42/clients/QFC46/QFC46% make&lt;BR /&gt;/u/quantum/aix42/include/GNU_rules_local:291: target `.buildAB.11.00/include/' given more than once in the same rule.&lt;BR /&gt;/opt/aCC/bin/aCC -D_INCLUDE_POSIX_SOURCE -D_QFC46  -DHPUX    -I. -Iinclude -Ilicense -Iresource -Irpc_appmgr -Irpc_logdmn -Istdrpc -I/u/quantum/aix42/include  -c -o .objAB.11.00/QFC46/c_util.o QFC46/c_util.c&lt;BR /&gt;Error (future) 129: "/usr/include/sys/stdsyms.h", line 49 # Redefinition of macro '_INCLUDE_POSIX_SOURCE' differs from&lt;BR /&gt;    previous definition at [Exact position unknown; near ["QFC46/c_util.c", line 1].].&lt;BR /&gt;    #            define _INCLUDE_POSIX_SOURCE&lt;BR /&gt;                        ^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;Error 328: "QFC46/c_util.c", line 165 # Function 'inet_ntoa' has not been defined yet; cannot call.&lt;BR /&gt;        sprintf(host_name, "%s", (h?h-&amp;gt;h_name:(char *)inet_ntoa(IPAddr)));&lt;BR /&gt;                                                      ^^^^^^^^^           &lt;BR /&gt;Error 186: "QFC46/c_util.c", line 189 # Left side of '.' requires a class object; type found was 'char *'.&lt;BR /&gt;                  ipaddr2host(xprt-&amp;gt;xp_raddr.sin_addr.s_addr), xprt_xid(xprt));&lt;BR /&gt;                              ^^^^^^^^^^^^^^                                   &lt;BR /&gt;Error 186: "QFC46/c_util.c", line 192 # Left side of '.' requires a class object; type found was 'char *'.&lt;BR /&gt;                  ipaddr2host(xprt-&amp;gt;xp_raddr.sin_addr.s_addr));&lt;BR /&gt;                              ^^^^^^^^^^^^^^         &lt;BR /&gt;&lt;BR /&gt;I get error on basic inet libraries errors. It starts with simple #include but cascades to structures used within there and all that&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;gopal         &lt;BR /&gt;</description>
      <pubDate>Tue, 15 May 2001 17:39:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528684#M728682</guid>
      <dc:creator>Gopal_2</dc:creator>
      <dc:date>2001-05-15T17:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: AIX to HPUX porting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528685#M728683</link>
      <description>With a little more analysis I did found out that my C is not ANSI and C++ is ANSI and while trying to compile with the aCC with -Ae for all my c programs I getting errors on the /usr/includes which is not ANSI compliant. I cannot use /bin/cc as it does not like many of the ANSI stuff and so I am stuck. Is there anywhere I can force the application to look within the ANSI C++ (aCC) where I can get this done or do I have to get HP ANSI C compiler too&lt;BR /&gt;Any suggestions please</description>
      <pubDate>Tue, 15 May 2001 21:10:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528685#M728683</guid>
      <dc:creator>Gopal_2</dc:creator>
      <dc:date>2001-05-15T21:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: AIX to HPUX porting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528686#M728684</link>
      <description>Hi Guys&lt;BR /&gt;&lt;BR /&gt;Back again...&lt;BR /&gt;I am reaching to bottomline.&lt;BR /&gt;In AIX the C++ compiler comes with enhanced c compiler which is ANSI compliant but also extends the cc to run on an extended mode by placing a flag, which facilitates usage of const char * and all other cool stuff to go thru on compilation which are usually c++ friendly ones. Now that I got the aCC I dont seem to go anywhere. I need to get something which will give me atleast a cc which is going to be as close I can get to what AIX gives me and since my app has a lot of mix I want to know which is the one I need to buy so as to atleast get somewhere on this porting job. I called HP they keep bouncing me around. I have nowhere to go HELP!!!!&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;Gopal</description>
      <pubDate>Thu, 17 May 2001 20:38:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528686#M728684</guid>
      <dc:creator>Gopal_2</dc:creator>
      <dc:date>2001-05-17T20:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: AIX to HPUX porting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528687#M728685</link>
      <description>Hi Gopal,&lt;BR /&gt;&lt;BR /&gt;I assume you have tried the '-Aa' and '-Ae' compiler options. I had not trouble in getting&lt;BR /&gt;aCC to handle the 'const char *' constructs.&lt;BR /&gt;&lt;BR /&gt;I happen to have both aCC and HP ANSI/C products. If you can attach a SMALL piece of&lt;BR /&gt;code with your problems, I'll see if the ANSI/C compiler works.&lt;BR /&gt;&lt;BR /&gt;Clay&lt;BR /&gt;</description>
      <pubDate>Thu, 17 May 2001 20:54:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528687#M728685</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-05-17T20:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: AIX to HPUX porting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528688#M728686</link>
      <description>Gopal,&lt;BR /&gt;You say your compiler on HP "came with" 11.00.  Does that mean you are using the minimal compiler that is a part of the OS release?  If so, that is quite likely your problem.  This compiler is required for kernel compilations, but it is not designed to be a development compiler.&lt;BR /&gt;&lt;BR /&gt;The ANSI C/C++ compiler for HP-UX is a separate product which you will need to purchase and install.</description>
      <pubDate>Thu, 17 May 2001 21:04:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528688#M728686</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2001-05-17T21:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: AIX to HPUX porting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528689#M728687</link>
      <description>Hi Clay&lt;BR /&gt;&lt;BR /&gt;I do not have ANSI C compiler in the HP-End should I have to go ahead and Buy that is the question. Yes I did not have problems with aCC on const char * at all but for some especially the the c files I generate out of rpcgen the errors are thrown in /usr/include/rpc/rpcd_*.h files. Which forces me to think that I have to stop using the Bundled cc compiler and go ahead and bu y the ANSI C package.OK if at all I buy it do I still get rpcgen to generate code that is liked by the cc. &lt;BR /&gt;&lt;BR /&gt;I have module which has c files and some C++ files. The c files when compiled with Bundled cc it always kicks me out so I started using the aCC to compile c files with -Ae -Aa option for which it complained on /usr libraries. So I could not consistently finish compiling the module. Now I thot it because that I do not use the ANSI C (cc) but even if I do purchase and use with the -Aa option will make it accept const char and other cplusplus commenting I have in them. If not what should I buy to get that enhanced C++&lt;BR /&gt;&lt;BR /&gt;Thanks again&lt;BR /&gt;&lt;BR /&gt;Gopal</description>
      <pubDate>Thu, 17 May 2001 21:04:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528689#M728687</guid>
      <dc:creator>Gopal_2</dc:creator>
      <dc:date>2001-05-17T21:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: AIX to HPUX porting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528690#M728688</link>
      <description>Thanks alan&lt;BR /&gt;&lt;BR /&gt;I did think so... But I am not sure it is still going to like what I have. The combination of files is what is killing me. I am sure that I may need the package which one I didn't know. Do you think I need the C++ too as I have already bought the aCC.&lt;BR /&gt;&lt;BR /&gt;Did anyone face problems with AIX port before. I read some interesting e-mails on the mailing list. They seem to ask why do HP had to make their release package so complex to understand. When I go IBM and buy c++ I get the package whatever I need to compile with that. I am ready to go. HP maybe I am very new to this but it is driving me crazy!!!!&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Gopal &lt;BR /&gt;</description>
      <pubDate>Thu, 17 May 2001 21:13:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528690#M728688</guid>
      <dc:creator>Gopal_2</dc:creator>
      <dc:date>2001-05-17T21:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: AIX to HPUX porting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528691#M728689</link>
      <description>Hi Gopal,&lt;BR /&gt;&lt;BR /&gt;Yes, you get rpcgen with either one. I've never had a situation where aCC would not compile c but ANSI/C would (at least in the 11x world).&lt;BR /&gt;&lt;BR /&gt;I have no idea why you are even trying to compile with the bundled cc. You should be using aCC for both .C (C++) and .c (c).&lt;BR /&gt;&lt;BR /&gt;I don't think going to ANSI/C is going to fix your problem; I think the fundamental problem is that you (or the original developer) broke the cardinal rule of portable code - don't never ever use enhanced features - stick to the standards.&lt;BR /&gt;&lt;BR /&gt;You should at least be able to port your rpc source and rpcgen on the HP box.&lt;BR /&gt;&lt;BR /&gt;Clay&lt;BR /&gt;</description>
      <pubDate>Thu, 17 May 2001 21:25:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528691#M728689</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-05-17T21:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: AIX to HPUX porting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528692#M728690</link>
      <description>Thats right clay, I shouldn't have used extended cc and they said it is ANSI compliant.. (IBM)&lt;BR /&gt;&lt;BR /&gt;I just tried what you suggested, check this out.&lt;BR /&gt;&lt;BR /&gt;/opt/aCC/bin/aCC -Ae -Aa  -D_QFC46  -DHPUX    -I. -Iinclude -Ilicense -Iresource -Irpc_appmgr -Irpc_logdmn -Istdrpc -I/u/quantum/aix42/include  -c -o .objAB.11.00/QFC46/c_util.o QFC46/c_util.c&lt;BR /&gt;Warning (anachronism) 444: "/usr/include/rpc/auth.h", line 363 # The use of function&lt;BR /&gt;    declarators with empty parentheses is obsolete in ANSI C.&lt;BR /&gt;    extern int      authkerb_getucred(/* struct svc_req *, uid_t *, gid_t *,&lt;BR /&gt;                    ^^^^^^^^^^^^^^^^^                                       &lt;BR /&gt;Error 486: "/usr/include/rpc/rpcb_prot.h", line 137 # A typedef-name naming a struct is a&lt;BR /&gt;    class-name, but the synonym cannot be used after a struct prefix.&lt;BR /&gt;    struct rpcblist {&lt;BR /&gt;    ^^^^^^^^^^^^^^^  &lt;BR /&gt;Error 486: "/usr/include/rpc/rpcb_prot.h", line 139 # A typedef-name naming a struct is a&lt;BR /&gt;    class-name, but the synonym cannot be used after a struct prefix.&lt;BR /&gt;            struct rpcblist *rpcb_next;&lt;BR /&gt;            ^^^^^^^^^^^^^^^            &lt;BR /&gt;Do I have to point to some special include place. I do not rpc includes anywhere else other than /usr/include. The includes that came with aCC do not seem to go through it and throws these kinds of errors. If I remove all the flags on aCC except -Aa it stops on rpcgen gthe rpcgen generated files like below&lt;BR /&gt;/opt/aCC/bin/aCC -Ae +DA1.0 -O +Onolimit  -Aa  -D_QFC46  -DHPUX    -I. -Iinclude -Ilicense -Iresource -Irpc_appmgr -Irpc_logdmn -Istdrpc -I/u/quantum/aix42/include  -c -o .objAB.11.00/QFC46/c_util.o QFC46/c_util.c&lt;BR /&gt;Warning (anachronism) 444: "/usr/include/rpc/auth.h", line 363 # The use of function&lt;BR /&gt;    declarators with empty parentheses is obsolete in ANSI C.&lt;BR /&gt;    extern int      authkerb_getucred(/* struct svc_req *, uid_t *, gid_t *,&lt;BR /&gt;                    ^^^^^^^^^^^^^^^^^                                       &lt;BR /&gt;Error 486: "/usr/include/rpc/rpcb_prot.h", line 137 # A typedef-name naming a struct is a&lt;BR /&gt;    class-name, but the synonym cannot be used after a struct prefix.&lt;BR /&gt;    struct rpcblist {&lt;BR /&gt;    ^^^^^^^^^^^^^^^  &lt;BR /&gt;Error 486: "/usr/include/rpc/rpcb_prot.h", line 139 # A typedef-name naming a struct is a&lt;BR /&gt;    class-name, but the synonym cannot be used after a struct prefix.&lt;BR /&gt;            struct rpcblist *rpcb_next;&lt;BR /&gt;            ^^^^^^^^^^^^^^^            &lt;BR /&gt;&lt;BR /&gt;Do I have to put some special flags. Is there special aCC rpcgen which I can use to generate code which is likable to aCC. There I got stuck&lt;BR /&gt;&lt;BR /&gt;Any suggestions&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Gopal</description>
      <pubDate>Thu, 17 May 2001 22:06:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528692#M728690</guid>
      <dc:creator>Gopal_2</dc:creator>
      <dc:date>2001-05-17T22:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: AIX to HPUX porting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528693#M728691</link>
      <description>Sorry clay&lt;BR /&gt;&lt;BR /&gt;I pasted the wrong clipboard&lt;BR /&gt;This is the error I got when I removed all the flags and then retained -Aa only, the rpcgen generated files totally started throwing errors&lt;BR /&gt;like these&lt;BR /&gt;rpcgen -m -o rpc_appmgr/appmgr_svc.c rpc_appmgr/appmgr.x&lt;BR /&gt;/opt/aCC/bin/aCC -Aa +z -w -DDEBUG  -D_QFC46  -DHPUX    -I. -Iinclude -Ilicense -Iresource -Irpc_appmgr -Irpc_logdmn -Istdrpc -I/u/quantum/aix42/include  -c -o .objAB.11.00/rpc_appmgr/appmgr_svc.o rpc_appmgr/appmgr_svc.c&lt;BR /&gt;Error 43: "rpc_appmgr/appmgr_svc.c", line 32 # C++ does not allow Old-style (non-prototype)&lt;BR /&gt;    function definitions.&lt;BR /&gt;    static&lt;BR /&gt;    ^^^^^^&lt;BR /&gt;Error 43: "rpc_appmgr/appmgr_svc.c", line 46 # C++ does not allow Old-style (non-prototype)&lt;BR /&gt;    function definitions.&lt;BR /&gt;    void&lt;BR /&gt;    ^^^^&lt;BR /&gt;Error 212: "rpc_appmgr/appmgr_svc.c", line 61 # Argument type 'int ()' does not match&lt;BR /&gt;    expected parameter type 'int (*)(XDR *,...)'.&lt;BR /&gt;                    (void) svc_sendreply(transp, xdr_void,&lt;BR /&gt;                                                 ^^^^^^^^ &lt;BR /&gt;Error 203: "rpc_appmgr/appmgr_svc.c", line 68 # Cannot assign 'int (*)()' with 'int (*)(XDR&lt;BR /&gt;    *,char **)'.&lt;BR /&gt;                    xdr_argument = xdr_wrapstring;&lt;BR /&gt;                                   ^^^^^^^^^^^^^^ &lt;BR /&gt;Error 203: "rpc_appmgr/appmgr_svc.c", line 69 # Cannot assign 'int (*)()' with 'int (*)(XDR&lt;BR /&gt;    *,char **)'.&lt;BR /&gt;                    xdr_result = xdr_wrapstring;&lt;BR /&gt;                                 ^^^^^^^^^^^^^^ &lt;BR /&gt;&lt;BR /&gt;Do I have to use some specail rpcgen or a flag to bypass these errors. If I compile this by /bin/cc (bundled cc) it seems to compile!!!!&lt;BR /&gt;&lt;BR /&gt;Also all of the includes had like weird differences in the struct definitions and stuff like that...&lt;BR /&gt;&lt;BR /&gt;Any help&lt;BR /&gt;&lt;BR /&gt;Gopal</description>
      <pubDate>Thu, 17 May 2001 22:13:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528693#M728691</guid>
      <dc:creator>Gopal_2</dc:creator>
      <dc:date>2001-05-17T22:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: AIX to HPUX porting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528694#M728692</link>
      <description>Ok Gopal,&lt;BR /&gt;&lt;BR /&gt;I was able to reproduce your problem.&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;&lt;BR /&gt;#include &lt;RPC&gt;&lt;BR /&gt;#include &lt;RPC&gt;&lt;BR /&gt;&lt;BR /&gt;int main(int argc, char *argv[])&lt;BR /&gt;{&lt;BR /&gt;  const char *p = "My String";&lt;BR /&gt;  (void) printf("Hello world %d %s\n",argc,p);&lt;BR /&gt;  return(0);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;-------------&lt;BR /&gt;This produced the same header file errors you saw. Now the fix was simple:&lt;BR /&gt;add #include &lt;RPC&gt; before the #include &lt;RPC&gt; and it compiles just fine.&lt;BR /&gt;&lt;BR /&gt;By the way, I compiled it with NO flags&lt;BR /&gt;aCC myfile.c -o myfile&lt;BR /&gt;&lt;BR /&gt;I would strip the -I args down to bare minimums.&lt;BR /&gt;&lt;BR /&gt;At least 10 points worth, Clay&lt;BR /&gt;&lt;/RPC&gt;&lt;/RPC&gt;&lt;/RPC&gt;&lt;/RPC&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Thu, 17 May 2001 22:43:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528694#M728692</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-05-17T22:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: AIX to HPUX porting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528695#M728693</link>
      <description>Yep Clay you are to dot and you are close but not yet!!! and thanks a ton I really appreciate this....&lt;BR /&gt;&lt;BR /&gt;The rpcgen problem still do not work.&lt;BR /&gt;I have a simple x file and I am using the /bin/rpcgen - Bundled one and i am getting c code that do not compile.&lt;BR /&gt;&lt;BR /&gt;I am doing rpcgen -h and rpcgen -m and trying yto compile with -Ae flags too and I have rpc.h included I getting all sort of problems&lt;BR /&gt;&lt;BR /&gt;Try this&lt;BR /&gt;X File&lt;BR /&gt;&lt;BR /&gt;#ifdef RPC_HDR&lt;BR /&gt;%#ifndef _appmgr_H&lt;BR /&gt;%#define _appmgr_H&lt;BR /&gt;%#include &lt;RPC&gt;&lt;BR /&gt;#endif /* RPC_HDR */&lt;BR /&gt;&lt;BR /&gt;program APPMGR {&lt;BR /&gt;        version APPMGRVERS {&lt;BR /&gt;                string run_command(string)=1;&lt;BR /&gt;        } = 1;&lt;BR /&gt;} = 1;&lt;BR /&gt;&lt;BR /&gt;#ifdef RPC_HDR&lt;BR /&gt;%#endif /* _appmgr_H */&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;Ofcourse the module is just compile leave alone the linker problems.&lt;BR /&gt;&lt;BR /&gt;Any help&lt;BR /&gt;&lt;BR /&gt;Gopal&lt;/RPC&gt;</description>
      <pubDate>Fri, 18 May 2001 14:43:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528695#M728693</guid>
      <dc:creator>Gopal_2</dc:creator>
      <dc:date>2001-05-18T14:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: AIX to HPUX porting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528696#M728694</link>
      <description>Clay I missed out the rpcgen option to create ANSI C code. I am going to my linker problems now....&lt;BR /&gt;&lt;BR /&gt;Thanks I will start troubling with that soon</description>
      <pubDate>Fri, 18 May 2001 14:52:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528696#M728694</guid>
      <dc:creator>Gopal_2</dc:creator>
      <dc:date>2001-05-18T14:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: AIX to HPUX porting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528697#M728695</link>
      <description>Hi Gopal,&lt;BR /&gt;&lt;BR /&gt;Looks like you found the '-C' option for rpcgen. That will produce code that aCC can handle just fine.&lt;BR /&gt;&lt;BR /&gt;Good luck, Clay&lt;BR /&gt;</description>
      <pubDate>Fri, 18 May 2001 16:13:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528697#M728695</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-05-18T16:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: AIX to HPUX porting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528698#M728696</link>
      <description>Now to Loader/Linker problem&lt;BR /&gt;&lt;BR /&gt;Ok Got it compiled  and then starting to use the ld for the ld option. I get a weird error complaining about the text space. Has anyone seen it yet.&lt;BR /&gt;&lt;BR /&gt;/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (.objAB.11.00/QFC46/Afx.o) was detected. The linked output may not run on a PA 1.x system.&lt;BR /&gt;/usr/ccs/bin/ld: Invalid loader fixup in text space needed in output file for symbol "$0000040D" in input file ".objAB.11.00/QFC46/abc.o"&lt;BR /&gt;&lt;BR /&gt;I got a lot of warings about the char * not being type casted while compiled....&lt;BR /&gt;&lt;BR /&gt;Any help guys</description>
      <pubDate>Fri, 18 May 2001 18:18:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528698#M728696</guid>
      <dc:creator>Gopal_2</dc:creator>
      <dc:date>2001-05-18T18:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: AIX to HPUX porting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528699#M728697</link>
      <description>Ok,&lt;BR /&gt;&lt;BR /&gt;First warning is about machine compatability.&lt;BR /&gt;You can add the +DAportable compiler flag to your makefile to make the code compatable across all 11x platforms.&lt;BR /&gt;&lt;BR /&gt;Second error - you have a problem in abc.c; without seeing that no way to know&lt;BR /&gt;&lt;BR /&gt;The cast warnings are telling you that you should have done explicit type casting in your code. e.g.&lt;BR /&gt;&lt;BR /&gt;char *cp = NULL;&lt;BR /&gt;&lt;BR /&gt;cp = (char *) malloc((size_t) 1024);&lt;BR /&gt;&lt;BR /&gt;rather than simply&lt;BR /&gt;cp = malloc((size_t) 1024);&lt;BR /&gt;&lt;BR /&gt;because malloc's base type is *void not *char.&lt;BR /&gt;&lt;BR /&gt;Clay&lt;BR /&gt;</description>
      <pubDate>Fri, 18 May 2001 18:31:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/aix-to-hpux-porting/m-p/2528699#M728697</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-05-18T18:31:35Z</dc:date>
    </item>
  </channel>
</rss>

