Bug 74711 - dcopperl/DCOP.cpp compile fails with C++ linkage errors.
Summary: dcopperl/DCOP.cpp compile fails with C++ linkage errors.
Status: RESOLVED INTENTIONAL
Alias: None
Product: bindings
Classification: Developer tools
Component: general (show other bugs)
Version: 3.2.x
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: kde-bindings
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-09 15:11 UTC by steve
Modified: 2008-08-01 13:29 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description steve 2004-02-09 15:11:24 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    Compiled From Sources
Compiler:          gcc 3.3.1 
OS:          Solaris

Compilation of dcopperl/DCOP.cpp fails with syntax errors in included headers:-

gcc -c  -I/usr/local/kde-3.2.0/qt/include -I/usr/local/kde-3.2.0/include -x c++ -O4 -mcpu=supersparc   -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC "-I/usr/local/lib/perl5/5.6.1/sun4-solaris-thread-multi/CORE"   DCOP.cpp
In file included from /usr/local/lib/perl5/5.6.1/sun4-solaris-thread-multi/CORE/perl.h:2821,
                 from DCOP.xs:3:
/usr/local/lib/perl5/5.6.1/sun4-solaris-thread-multi/CORE/perl.h:538: error: previous
   declaration of `void* Perl_malloc(unsigned int)' with C++ linkage
/usr/local/lib/perl5/5.6.1/sun4-solaris-thread-multi/CORE/proto.h:28: error: conflicts
   with new declaration with C linkage
/usr/local/lib/perl5/5.6.1/sun4-solaris-thread-multi/CORE/perl.h:539: error: previous
   declaration of `void* Perl_calloc(unsigned int, unsigned int)' with C++ 
   linkage
/usr/local/lib/perl5/5.6.1/sun4-solaris-thread-multi/CORE/proto.h:29: error: conflicts
   with new declaration with C linkage
/usr/local/lib/perl5/5.6.1/sun4-solaris-thread-multi/CORE/perl.h:540: error: previous
   declaration of `void* Perl_realloc(void*, unsigned int)' with C++ linkage
/usr/local/lib/perl5/5.6.1/sun4-solaris-thread-multi/CORE/proto.h:30: error: conflicts
   with new declaration with C linkage
/usr/local/lib/perl5/5.6.1/sun4-solaris-thread-multi/CORE/perl.h:543: error: previous
   declaration of `void Perl_mfree(void*)' with C++ linkage
/usr/local/lib/perl5/5.6.1/sun4-solaris-thread-multi/CORE/proto.h:31: error: conflicts
   with new declaration with C linkage
gmake[2]: *** [DCOP.o] Error 1
gmake[2]: Leaving directory `/opt/local/kde-3.2.0/src/kdebindings-3.2.0/dcopperl'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/opt/local/kde-3.2.0/src/kdebindings-3.2.0'
gmake: *** [all] Error 2
Comment 1 A. Spehr 2008-08-01 13:29:52 UTC
bug is in the sun perl headers and it's an old kde version; sorry for not touching this sooner! We'll be better with future reports. ;)