broken X headers in security patch from 2007-03-07?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
broken X headers in security patch from 2007-03-07?
I'm setting up a new system with Slackware 11. After downloading and installing all the official patches for Slackware 11 (stable) using slapt-get, I usually install a few programs. One of these is ddd (digital display debugger) which is basically a graphical frontend to gdb. However, this time, when I go to compile ddd, I get the following error:
/usr/X11R6/include/X11/VendorP.h:87: error: previous declaration of 'VendorShellClassRec vendorShellClassRec' with 'C++' linkage
/usr/X11R6/include/Xm/VendorSP.h:58: error: conflicts with new declaration with 'C' linkage
Does this mean that something broke in the header files during the last patch to X11? This is about the 15th program that I've compiled from source after all the updates and after installing gcc-4.1.2, and the first one to have problems. Even crazy libraries like ATLAS, LAPACK, and fftw have gone in painlessly.
In case it's a problem with something else I've done, I'm compiling this with a hand compiled gcc-4.1.2 compiled with the following options:
gcc it is. when I compile it with gcc-3.4.6 that comes with Slackware 11 everything goes nice and smooth. However, when I look at the two header files that gcc 4.1.2 complains about, there are different declarations in them:
They do LOOK different, but I don't know enough about the guts of X (x.org6.9.0) to tell if the difference is significant. Is there a flag for gcc-4.1.2 that makes it insensative to this sort of thing? Sorry, all I really know about programming is how to make C do some number crunching.
I notice that -current has moved up to gcc-4.1.1 ... is this sort of thing likely to become a common problem when I move on to 12 once it's released?
gcc it is. when I compile it with gcc-3.4.6 that comes with Slackware 11 everything goes nice and smooth. However, when I look at the two header files that gcc 4.1.2 complains about, there are different declarations in them:
I should also mention that I have another box that I goof around on that has bits of -current and bits of hand compiled stuff and I didn't run into this problem. The only difference is possibly the order that stuff was install when I put ddd on that one. I even toyed with installing the new modular x on that and decided to wait until Pat Volkerding figures it out since he's more likely to know what he's doing. Just to confirm what you said about the new x compiling with gcc 4 (or at least 4.1.1, which is what is currently in current). Can't wait for 12 - I've been waiting to tinker with compiz or beryl for a while now.
OK, now I just feel ignorant. Does upstream maintainers mean Patrick, the gcc team, or the x.org guys?
For example, if you're trying to compile wine [1], and it errors out with gcc4 but builds fine with gcc3, then you should complain to the wine developers.
[1] wine builds fine on gcc4, so don't anybody go complaining to them
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.