- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- AIX to HPUX porting
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2001 09:43 AM
тАО05-15-2001 09:43 AM
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.
Thanks in advance for the help
Gopal
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2001 09:52 AM
тАО05-15-2001 09:52 AM
Re: AIX to HPUX porting
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:
http://devrsrc.external.hp.com/devresource/Docs/DocLibrary.html
Check it out!
-> Brian Hackley
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2001 10:21 AM
тАО05-15-2001 10:21 AM
Re: AIX to HPUX porting
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.
Thanks again
Gopal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2001 10:30 AM
тАО05-15-2001 10:30 AM
Re: AIX to HPUX porting
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2001 10:39 AM
тАО05-15-2001 10:39 AM
Re: AIX to HPUX porting
Thanks
INSIGNIO_/u/quantum/aix42/clients/QFC46/QFC46% make
/u/quantum/aix42/include/GNU_rules_local:291: target `.buildAB.11.00/include/' given more than once in the same rule.
/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
Error (future) 129: "/usr/include/sys/stdsyms.h", line 49 # Redefinition of macro '_INCLUDE_POSIX_SOURCE' differs from
previous definition at [Exact position unknown; near ["QFC46/c_util.c", line 1].].
# define _INCLUDE_POSIX_SOURCE
^^^^^^^^^^^^^^^^^^^^^
Error 328: "QFC46/c_util.c", line 165 # Function 'inet_ntoa' has not been defined yet; cannot call.
sprintf(host_name, "%s", (h?h->h_name:(char *)inet_ntoa(IPAddr)));
^^^^^^^^^
Error 186: "QFC46/c_util.c", line 189 # Left side of '.' requires a class object; type found was 'char *'.
ipaddr2host(xprt->xp_raddr.sin_addr.s_addr), xprt_xid(xprt));
^^^^^^^^^^^^^^
Error 186: "QFC46/c_util.c", line 192 # Left side of '.' requires a class object; type found was 'char *'.
ipaddr2host(xprt->xp_raddr.sin_addr.s_addr));
^^^^^^^^^^^^^^
I get error on basic inet libraries errors. It starts with simple #include but cascades to structures used within there and all that
Thanks
gopal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2001 02:10 PM
тАО05-15-2001 02:10 PM
Re: AIX to HPUX porting
Any suggestions please
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2001 01:38 PM
тАО05-17-2001 01:38 PM
Re: AIX to HPUX porting
Back again...
I am reaching to bottomline.
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!!!!
Thanks in advance
Gopal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2001 01:54 PM
тАО05-17-2001 01:54 PM
Re: AIX to HPUX porting
I assume you have tried the '-Aa' and '-Ae' compiler options. I had not trouble in getting
aCC to handle the 'const char *' constructs.
I happen to have both aCC and HP ANSI/C products. If you can attach a SMALL piece of
code with your problems, I'll see if the ANSI/C compiler works.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2001 02:04 PM
тАО05-17-2001 02:04 PM
Re: AIX to HPUX porting
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.
The ANSI C/C++ compiler for HP-UX is a separate product which you will need to purchase and install.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2001 02:04 PM
тАО05-17-2001 02:04 PM
Re: AIX to HPUX porting
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.
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++
Thanks again
Gopal