AIX- xlc and cc


 
Thread Tools Search this Thread
Top Forums Programming AIX- xlc and cc
# 1  
Old 07-22-2004
AIX- xlc and cc

when i compile with Xlc i sometimes get the following Error:
(S) Initialization between types "int" and "struct MskTtimerData*" is not allowed.

when i compile with cc with the same Flags, i only get a (W) with the same message, but it compiles fine.

How can i get the Xlc to 'ignore' the above error like cc ?

Lazzar
# 2  
Old 07-22-2004
hey, thanks for the fast reply.

It is a kinda big already existing project wich we are updating.

And we just recently upgraded from 32 Aix4 to 64 bit Aix5 also.
So a (int) cast would prolly be a bad idea (truncating the pointer?).

but i see where the problem is now.

Thanks a lot.
Lazzar
# 3  
Old 07-23-2004
Found the Bugger now.
The Structure with the Pointer to MskTtimerData has changed.

old struct {
int;
MskTtimerData *
}

new struct {
int
int, <--- We tried to insert the Pointer here
int,
MskTtimerData *
}

oh well, i thought i have checked all the structures.

I just hope thats the only one who chnaged.
There might be other changes where the compiler wontt burp.

i have some testing to do now Smilie

Lazzar


edit
Quote:
However, if ALL of these warnings only occur in more or less dead and unimportant code passages that are not likely to be encountered by your users any time soon, what's preventing you from using ``cc'' instead of ``xlc'' to compile it anyway?
hehe, never think that way, users will always find your 'unimportant' code passages.
And then the truncated pointer would 99% result in a Sig 11
# 4  
Old 07-23-2004
I am not familiar with Xlc, except that it is an AIX thing.

It seems, from your conversation, that it behaves like lint, which should be part of any C development IMO.

Does someone know a little more about Xlc?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Open Source

/usr/bin/sh xlc not found

Hi Everyone, We are trying to compile Kerberos library using xlc and we get an error that xlc is not found in the system. We tried using gcc as well but it also fails with the same error. We could not find the compiler in the software media we received from IBM. Any inputs on how... (2 Replies)
Discussion started by: madhav.kunapa
2 Replies

2. Linux

Xlc compiler on Redhat Linux

Hi , Currently i have my c and pro*c code got compiled in IBM POWER - AIX machine with xlc compiler version 9. We are planning to migrate all our applications from IBM POWER - AIX to Redhat Linux. Can i use the same current (IBM AIX) xlc compiler with the same compiling... (3 Replies)
Discussion started by: mugunthanvh
3 Replies

3. AIX

AIX xlc compiler vs gcc

Hello, We are migrating some applications from previously running on an AIX system to a Linux RedHat system. I was tasked with recompiling some of the code. Unfortunatly I am a big novice on this. So i have the commands used to compile the code with xlc compiler in the AIX environment and i am... (0 Replies)
Discussion started by: spooksman
0 Replies

4. UNIX for Advanced & Expert Users

XLC compiler: enterprise edition VS XLC for AIX

Who can explain in a few words the difference between XLC for AIX and XLC enterprise Edition for AIX (0 Replies)
Discussion started by: fvaltat1
0 Replies

5. AIX

xlc question on AIX

Problem when compiling c-source with xlc it will generate some other files .lst .call. This kind of files is generated on the current directory. Question Can I influence the directory where the .lst and .call is generated. What i want is a dir stucture like this: project |---c-source... (0 Replies)
Discussion started by: corley
0 Replies

6. AIX

AIX Xlc compiler

Hi Team I have a native applicaiton built on AIX using the xLC v8 Which could be the possible impacts from a code change point of view if I'll compile with the xLC v10? Thanks Marco (0 Replies)
Discussion started by: antcos
0 Replies

7. AIX

Aix xlc interesting SEGV on exit

Hello all, One of the application we port to Aix from linux Segmentation faults when it exits. Here is part of backtrace of SEGV: (dbx) where splay(??, ??, ??) at free_y(??, ??) at free_common(??) at .... exit(??) at ... Application seem to perform everything expected well and... (1 Reply)
Discussion started by: qrio.qrio
1 Replies

8. AIX

Need help installing 'xlc' on AIX

Hello, I'm getting "xlc: not found" error compiling code using 'make oracle' command on IBM AIX. C/C++ compiler is installed, but 'xlc' still missing. Could you please tell me which OS package contains the 'xlc' executable? $ > make oracle xlc -qmkshrobj -e MQStart -L/usr/mqm/lib -lmqmcs_r... (4 Replies)
Discussion started by: safir29
4 Replies

9. AIX

Multiple xlC on the same LPAR

Guys, Is it possible to install two different xlC runtimes on the same LPAR. I have to run DB2 9.5 and an application in the same LPAR. DB2 9.5 requires xlC 9 but the application will only run in xlC 8.0.0.0 How to bit this? :confused: (2 Replies)
Discussion started by: firdousamir
2 Replies

10. AIX

aix xlc

Hi guys, I need to compile sap libraries, installed make, automake, gcc, libstc libgcc and everything I used to install on linux when compiling when i run make, it aborts with the error msg /usr/bin/sh: xlc: not found. I see the binary xlc is missing lslpp -l | grep -i xlc ... (3 Replies)
Discussion started by: funksen
3 Replies
Login or Register to Ask a Question