On 2010-02-01 16:43:27 -0600, Prindle, Douglas E  wrote:
> Hello,
> 
> 
> 
> Being first time through this process when I did the make it was
> looking for the gcc compiler. My company has made that End Of Life due
> to it being a sunsetted product. So I switched to the Forte 11
> compiler from Sun which we have had no issues with compiling other
> existing c code.

Martin already commented that.

> However, when I try to make the DBI after pointing it to the new Forte
> compiler I am getting a series of errors that seem to point to the
> DBI.c and DBI.xs files as having issues.
[...]

Content-Description: Forte_Compiler_Errors.TXT
> sun4-cross: make
> /xenv/Forte/sun4/11.0/5.8p8/prod/bin/CC -c  /xenv/OS/sun4/5.8p8/sun4u/include 
>  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO -xO3 
> -xspace -xildoff    -DVERSION=\"1.53\"  -DXS_VERSION=\"1.53\" -KPIC 
> "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE"  -DDBI_NO_THREADS DBI.c

"CC" is a strange name for a C compiler. C compilers are normally called
"cc" (lower case) or "c89" or something similar. Is this maybe a C++
compiler? If so, please note that C++ is not a simple superset of C, it
is a different language.

> "DBI.xs", line 149: Warning: String literal converted to char* in 
> initialization.

One minor difference between C and C++ is the type of string literals
(char[] vs. const char[]). This warning supports the suspicion that you
are trying to compile C code with a C++ compiler. Don't do that.

        hp


-- 
   _  | Peter J. Holzer    | Auf jedem Computer sollte der Satz Ludwigs II
|_|_) | Sysadmin WSR       | eingeprägt stehen: "Ein ewig Rätsel will ich
| |   | h...@wsr.ac.at      | bleiben, mir und andern."
__/   | http://www.hjp.at/ |    -- Wolfram Heinrich in desd

Attachment: signature.asc
Description: Digital signature

Reply via email to