[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


C Compilation error in AIX

Posted on 2009-12-19
Medium Priority
Last Modified: 2013-11-17
I am getting a lot of a compilation error in AIX server :

"/usr/include/sys/vm_types.h", line 79.25: 1506-334 (S) Identifier vmhwkey_t has already been defined on line 1226 of "dcs_userprm.c".
"/usr/include/sys/vm_types.h", line 80.25: 1506-334 (S) Identifier vpn_t has already been defined on line 1227 of "dcs_userprm.c".
"/usr/include/sys/vm_types.h", line 81.25: 1506-334 (S) Identifier rpn_t has already been defined on line 1228 of "dcs_userprm.c".
"/usr/include/sys/vm_types.h", line 83.25: 1506-334 (S) Identifier ptex_t has already been defined on line 1230 of "dcs_userprm.c".

Is there a compiler flag to overwrite the indentifiers definition or something ?? How do I fix this issue?

The build command is :
xlc -c    -qlanglvl=ansi -D__unix  ....
Question by:prasen120998
1 Comment
LVL 46

Accepted Solution

Kent Olsen earned 200 total points
ID: 26087975
Hi prasen,

It's not a very good idea to try and over-ride system required definitions.  The system functions require the structure to be formatted exactly as the system definition states.  Changing the definition will certainly cause your program to fail.

Either use the system definitions, or rename your structure to be something different than the system name.

Good Luck,

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question