[Expat-bugs] [ expat-Bugs-1033965 ] Building application fails with Intel C compiler (1.95.7)

SourceForge.net noreply at sourceforge.net
Fri Feb 24 04:05:53 CET 2006


Bugs item #1033965, was opened at 2004-09-24 04:12
Message generated for change (Comment added) made by mfhaigh
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1033965&group_id=10127

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build control
Group: Platform Specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Arjen Markus (arjenmarkus)
Assigned to: Greg Stein (gstein)
Summary: Building application fails with Intel C compiler (1.95.7)

Initial Comment:
I tried to build a small application using the Intel C
compiler under Linux. The compiler chokes on the use of
the macro XMLCALL:

../lib/include/expat.h(261): warning #1287: invalid
attribute for field "malloc_fcn"
    void *(XMLCALL *malloc_fcn)(size_t size);
                    ^

The macro seems to be set to an empty string, as there
is no specific information for that compiler in the
header file, but I have not thoroughly investigated
this.



----------------------------------------------------------------------

Comment By: Mark F. Haigh (mfhaigh)
Date: 2006-02-23 19:05

Message:
Logged In: YES 
user_id=1458985

I rolled up the compile fixes for 2.0.0 into patch #1437840.
 Use that instead of #1437014 (which has been deleted).

----------------------------------------------------------------------

Comment By: Mark F. Haigh (mfhaigh)
Date: 2006-02-22 13:34

Message:
Logged In: YES 
user_id=1458985

Patch #1437014 should fix the problem.  Unfortunately I am
not able to attach a patch directly to this bug.

----------------------------------------------------------------------

Comment By: Mark F. Haigh (mfhaigh)
Date: 2006-02-22 13:33

Message:
Logged In: YES 
user_id=1458985

Patch #1437014 should fix the problem.  Unfortunately I am
not able to attach a patch directly to this bug.

----------------------------------------------------------------------

Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2005-01-28 08:02

Message:
Logged In: YES 
user_id=3066

The second document refers to a compatibility guide which
hints at the right information, but doesn't contain the
specific details I'm looking for.  I'll try contacting Intel
or getting a copy of the compiler.  It notes that the
current version of the Intel compiler supports "most" of the
GCC function attributes, but it doesn't say which ones
specifically.

The download page for the compatibility guide is:
http://www.intel.com/software/products/compilers/techtopics/LinuxCompilersCompatibility.htm


----------------------------------------------------------------------

Comment By: Arjen Markus (arjenmarkus)
Date: 2005-01-28 05:59

Message:
Logged In: YES 
user_id=400048

Here are some comments on the Intel C compiler from a Linux
user that seem relevant:
http://www.mcsr.olemiss.edu/parallelogram/01_03/icc.html

>From the Intel site:
http://www.intel.com/software/products/compilers/clin/clinux.htm

I do not know whether this will actually help you solve the
problem. Perhaps a direct question to the Intel support
people might help.

----------------------------------------------------------------------

Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2005-01-27 20:42

Message:
Logged In: YES 
user_id=3066

I really don't like having bogus warnings being generated;
if those can be cleared up, I'd like to do so.

Is documentation for the Intel compiler available online? 
I'd be especially interested in material on compiler hints
and attributes.


----------------------------------------------------------------------

Comment By: Arjen Markus (arjenmarkus)
Date: 2004-09-27 02:41

Message:
Logged In: YES 
user_id=400048

I tried with Expat 1.95.8:
the result was two warnings only, but the C source was
compiled and the program that finally results does the job
correctly.

Here are the warnings:
../expat-1.95.8/lib/expat.h(501): warning #1287: invalid
attribute for field "convert"
    int (XMLCALL *convert)(void *data, const char *s);
                  ^

../expat-1.95.8/lib/expat.h(502): warning #1287: invalid
attribute for field "release"
    void (XMLCALL *release)(void *data);
                   ^
(As far as I am concerned: this version is okay :))



----------------------------------------------------------------------

Comment By: Karl Waclawek (kwaclaw)
Date: 2004-09-24 05:58

Message:
Logged In: YES 
user_id=290026

This might not be a problem with Expat 1.95.8.
Could you please try?

Karl

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1033965&group_id=10127


More information about the Expat-bugs mailing list