473,321 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

Compilation Problems on a AIX with XLC

Hello

I have got some problems of compilation on a AIX IBM,
I use the XLC compilator (And I can't install another one).

I try to compile code Pro*c ".pc" (oracle), I need do a pre-compilation
after the pre-compilation with the my makefile I get the files ".c"
After this a get also the objects files ".o", but no linkage ! and I can't have the exec file !

I have got some errors how I dont understand really :

make -f proc.mk all
506-507 (W) No licenses available. Contact your program supplier to add additional users. Compilation will proceed shortly.
"pmag.c", line 293.28: 1506-280 (W) Function argument assignment between types "const unsigned char*" and "int" is not allowed.
"pmag.c", line 355.35: 1506-280 (W) Function argument assignment between types "const unsigned char*" and "int" is not allowed.
"pmag.c", line 357.40: 1506-280 (W) Function argument assignment between types "const unsigned char*" and "int" is not allowed.
"pmag.c", line 359.40: 1506-280 (W) Function argument assignment between types "const unsigned char*" and "int" is not allowed.
"pmag.c", line 990.43: 1506-280 (W) Function argument assignment between types "unsigned char*" and "struct PRE*" is not allowed.
"pmag.c", line 990.47: 1506-280 (W) Function argument assignment between types "const unsigned char*" and "union GLB*" is not allowed.
"pmag.c", line 1002.43: 1506-280 (W) Function argument assignment between types "unsigned char*" and "struct QRY*" is not allowed.
"pmag.c", line 1002.47: 1506-280 (W) Function argument assignment between types "const unsigned char*" and "union GLB*" is not allowed.
"pmag.c", line 1157.33: 1506-280 (W) Function argument assignment between types "unsigned char*" and "struct STA*" is not allowed.
"pmag.c", line 1157.37: 1506-280 (W) Function argument assignment between types "const unsigned char*" and "union GLB*" is not allowed.
"pmag.c", line 1252.25: 1506-280 (W) Function argument assignment between types "unsigned char*" and "struct ACK*" is not allowed.
"pmag.c", line 1252.29: 1506-280 (W) Function argument assignment between types "const unsigned char*" and "union GLB*" is not allowed.
"pmag.c", line 1317.25: 1506-280 (W) Function argument assignment between types "unsigned char*" and "struct ACK*" is not allowed.
"pmag.c", line 1317.29: 1506-280 (W) Function argument assignment between types "const unsigned char*" and "union GLB*" is not allowed.
"pmag.c", line 1973.18: 1506-280 (W) Function argument assignment between types "const unsigned char*" and "int" is not allowed.
325 1500-010: (W) WARNING in scn_glb: Infinite loop. Program may not stop.
986 1500-010: (W) WARNING in bat_s115: Infinite loop. Program may not stop.
1117 1500-010: (W) WARNING in mag: Infinite loop. Program may not stop.
2417 1500-010: (W) WARNING in oto_s115: Infinite loop. Program may not stop.
cc -L/produits/oracle/v716/lib -o pmag pmag.o /produits/oracle/v716/lib/libsql.a /produits/oracle/v716/lib/osntab.o -lsqlnet -lora /produits/oracle/v716/lib/libpls.a -lsqlnet -lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6 -lcore -lm -lld -lm -lm -lld -lm pmis.o psto.o strategie.o mag.a wwin.a -lcurses
make : 1254-004 Code d'erreur de la dernière commande : 1.
Arrêt.
so the xlc compilator dont speak too mutch...

First: This Warning is very important ? or can I do my compilation ?
506-507 (W) No licenses available. Contact your program supplier to add additional users. Compilation will proceed shortly.
Ma deuxieme question est comment faire une bonne redirection des sorties standard et erreur sur IBM AIX ?

What I need to do to have a good error and standard out redirect on AIX IBM ?

After this I would like compile a simple code :

#include <stdio.h>
main()
{ printf("toto\n");
}
#cc toto.c -o toto
1506-507 (W) No licenses available. Contact your program supplier to add additional users. Compilation will proceed shortly.

#chmod 777 ./toto
#./toto
exec() : 0509-036 Impossible de charger le programme toto
en raison des erreurs suivantes :
0509-108 La section .loader n'existe pas. "can't find the .loader section"

it's a linker error too ? Can you give me some information THX

Alban
Feb 8 '06 #1
6 9748
On Wed, 08 Feb 2006 11:30:48 +0100, alban <ac******@cogelis.com>
wrote:
Hello

I have got some problems of compilation on a AIX IBM,
I use the XLC compilator (And I can't install another one).

I try to compile code Pro*c ".pc" (oracle), I need do a pre-compilation
after the pre-compilation with the my makefile I get the files ".c"
After this a get also the objects files ".o", but no linkage ! and I can't have the exec file !

I have got some errors how I dont understand really :

make -f proc.mk all
506-507 (W) No licenses available. Contact your program supplier to add additional users. Compilation will proceed shortly.
"pmag.c", line 293.28: 1506-280 (W) Function argument assignment between types "char*" and "int" is not allowed.
It sounds like you are passing a const unsigned char * to a function
which the compiler thinks needs an int. This may be because you have
omitted the header file which contains the prototype for the function.
<snip> 325 1500-010: (W) WARNING in scn_glb: Infinite loop. Program may not stop.
This seems self-explanatory. Do you understand what is meant by
"Infinite loop"? Without seeing the code causing the error, we can't
possibly help on this one.

<snip>
First: This Warning is very important ? or can I do my compilation ?
All warnings are important. Nearly always, they are errors in your
code, and need to be fixed. This is (obviously) especially true if you
don't understand what's causing them.
<snip>
it's a linker error too ? Can you give me some information THX

Most likely, the compiler, being more cautious than you, did not
produce linkable code.

--
Al Balmer
Sun City, AZ
Feb 8 '06 #2
alban wrote:
Hello

I have got some problems of compilation on a AIX IBM,
I use the XLC compilator (And I can't install another one).

I try to compile code Pro*c ".pc" (oracle), I need do a pre-compilation
after the pre-compilation with the my makefile I get the files ".c"
After this a get also the objects files ".o", but no linkage ! and I can't have the exec file !

I have got some errors how I dont understand really :

make -f proc.mk all
506-507 (W) No licenses available. Contact your program supplier to add additional users. Compilation will proceed shortly.
"pmag.c", line 293.28: 1506-280 (W) Function argument assignment between types "const unsigned char*" and "int" is not allowed.
"pmag.c", line 355.35: 1506-280 (W) Function argument assignment between types "const unsigned char*" and "int" is not allowed.
"pmag.c", line 357.40: 1506-280 (W) Function argument assignment between types "const unsigned char*" and "int" is not allowed.
"pmag.c", line 359.40: 1506-280 (W) Function argument assignment between types "const unsigned char*" and "int" is not allowed.
"pmag.c", line 990.43: 1506-280 (W) Function argument assignment between types "unsigned char*" and "struct PRE*" is not allowed.
"pmag.c", line 990.47: 1506-280 (W) Function argument assignment between types "const unsigned char*" and "union GLB*" is not allowed.
"pmag.c", line 1002.43: 1506-280 (W) Function argument assignment between types "unsigned char*" and "struct QRY*" is not allowed.
"pmag.c", line 1002.47: 1506-280 (W) Function argument assignment between types "const unsigned char*" and "union GLB*" is not allowed.
"pmag.c", line 1157.33: 1506-280 (W) Function argument assignment between types "unsigned char*" and "struct STA*" is not allowed.
"pmag.c", line 1157.37: 1506-280 (W) Function argument assignment between types "const unsigned char*" and "union GLB*" is not allowed.
"pmag.c", line 1252.25: 1506-280 (W) Function argument assignment between types "unsigned char*" and "struct ACK*" is not allowed.
"pmag.c", line 1252.29: 1506-280 (W) Function argument assignment between types "const unsigned char*" and "union GLB*" is not allowed.
"pmag.c", line 1317.25: 1506-280 (W) Function argument assignment between types "unsigned char*" and "struct ACK*" is not allowed.
"pmag.c", line 1317.29: 1506-280 (W) Function argument assignment between types "const unsigned char*" and "union GLB*" is not allowed.
"pmag.c", line 1973.18: 1506-280 (W) Function argument assignment between types "const unsigned char*" and "int" is not allowed.
325 1500-010: (W) WARNING in scn_glb: Infinite loop. Program may not stop.
986 1500-010: (W) WARNING in bat_s115: Infinite loop. Program may not stop.
1117 1500-010: (W) WARNING in mag: Infinite loop. Program may not stop.
2417 1500-010: (W) WARNING in oto_s115: Infinite loop. Program may not stop.
cc -L/produits/oracle/v716/lib -o pmag pmag.o /produits/oracle/v716/lib/libsql.a /produits/oracle/v716/lib/osntab.o -lsqlnet -lora /produits/oracle/v716/lib/libpls.a -lsqlnet -lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6 -lcore -lm -lld -lm -lm -lld -lm pmis.o psto.o strategie.o mag.a wwin.a -lcurses
make : 1254-004 Code d'erreur de la dernière commande : 1.
Arrêt.
so the xlc compilator dont speak too mutch...

First: This Warning is very important ? or can I do my compilation ?
506-507 (W) No licenses available. Contact your program supplier to add additional users. Compilation will proceed shortly.
Ma deuxieme question est comment faire une bonne redirection des sorties standard et erreur sur IBM AIX ?

What I need to do to have a good error and standard out redirect on AIX IBM ?

After this I would like compile a simple code :

#include <stdio.h>
main()
{ printf("toto\n");
}
#cc toto.c -o toto
1506-507 (W) No licenses available. Contact your program supplier to add additional users. Compilation will proceed shortly.

#chmod 777 ./toto
#./toto
exec() : 0509-036 Impossible de charger le programme toto
en raison des erreurs suivantes :
0509-108 La section .loader n'existe pas. "can't find the .loader section"

it's a linker error too ? Can you give me some information THX

Alban


Tyr xlc_r rather than just plain cc. cc is the old K&R1 compiler used
for backward compatibility. It does not like code from code generators,
which is what Pro*C essentially is.
Feb 9 '06 #3
alban wrote:
I have got some problems of compilation on a AIX IBM [...]


Your question is definitely off-topic for comp.lang.c

You might find someone more helpful in comp.unix.aix
Feb 9 '06 #4
On Thu, 09 Feb 2006 12:33:08 +0100, Nudge <ho******@kma.eu.org> wrote:
alban wrote:
I have got some problems of compilation on a AIX IBM [...]
Your question is definitely off-topic for comp.lang.c


No, it isn't. The fact that he is using a specific implementation is
irrelevant to at least part of the problem.
You might find someone more helpful in comp.unix.aix


--
Al Balmer
Sun City, AZ
Feb 9 '06 #5
On Wed, 08 Feb 2006 23:58:16 GMT, Stan Milam <st*****@swbell.net>
wrote:

Tyr xlc_r rather than just plain cc. cc is the old K&R1 compiler used
for backward compatibility. It does not like code from code generators,
which is what Pro*C essentially is.


Are you recommending the use of a compiler which accepts incorrect
code?

--
Al Balmer
Sun City, AZ
Feb 9 '06 #6
On 2006-02-09, Al Balmer <al******@att.net> wrote:
On Wed, 08 Feb 2006 23:58:16 GMT, Stan Milam <st*****@swbell.net>
wrote:

Tyr xlc_r rather than just plain cc. cc is the old K&R1 compiler used
for backward compatibility. It does not like code from code generators,
which is what Pro*C essentially is.


Are you recommending the use of a compiler which accepts incorrect
code?


I suspect that he's saying that "cc" does not accept correct code, not
that xlc_r accepts incorrect code

also note that there is NO code [other than which contains #error] that
a compiler is required by the standard to reject.
Feb 9 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ram Sundaram | last post by:
Hi, I am trying to port some linux code to windows under Visual studio. The regex package currently used is the GNU regex package which calls for <strings.h>. This is not found in visual studio....
12
by: wanghz | last post by:
Hi, Could I ask some questions about the conditional compilaion? Suppose I have three simple files: a.c, b.c and c.h /* --------a.c--------- */ #include <stdio.h> #include "c.h" int...
2
by: Tommy Vercetti | last post by:
In Visual Studio .NET 2003, I do the following 1) File->New->Project 2) Visual C++ Projects->.NET->Windows Forms Application 3) Project->Add New Item->C++ File 4) Clear the new C++ file and...
3
by: Dan | last post by:
Hi, I have a problem using an aspx page with a Control on it. I get the following error message Compiler Error Message: CS1595: 'Test.Class2' is defined in multiple places; using definition...
2
by: Kevin R. | last post by:
I have been ignoring this problem for a few weeks now, but it's becoming a bit annoying not to mention unproductive. Here it goes: I compile my project with no errors. Then after I debug/run it,...
2
by: Steve | last post by:
Hi I'm receiving the following error whenever a new build is placed onto our production server: Timed out waiting for a program to execute. The command being executed was...
35
by: mwelsh1118 | last post by:
Why doesn't C# allow incremental compilation like Java? Specifically, in Java I can compile single .java files in isolation. The resulting individual .class files can be grouped into .jar files....
1
by: BSand0764 | last post by:
I'm getting an error that I can't seem to resolve. When I compile the Functor related logic in a test program, the files compile and execute properly (see Listing #1). However, when I...
1
by: Roumen Petrov | last post by:
Hi list members, It seems to me that this is discussed many times in the past but without progress. As I understand in general there is no objections and preferred cross-compilation has to be...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.