Floating point exception when compiling libX11 1.0
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
So, you're already doing something outside of the normal setup. That's okay, but you should probably understand how it works in a normal setup before trying to modify it for something customized.
Perhaps
Quote:
What you have already done is irrelevant if it doesn't allow you to move forward.
It didn't. At least until now, neither package was required fortunatelly
Quote:
Seems? Your feelings about it are also irrelevant. I'm going to assume that because you're trying to build libX11 that the end goal is to build xorg-server. Building libX11 by itself makes little sense, because the library is useless without the server itself. That said, building a functionally useful xorg-server requires most, if not all of what is shown in that list, except for maybe the Wayland stuff. Follow this link and look at the packages listed as required dependencies. Then follow the links to those dependencies and see that they too have dependencies. That's why I referred to X11 as a software stack. It is not just one or two packages to build before it is ready to use.
I did not mentioned my feelings, just mentioned a fact. My ultimate goal is not xorg-server, only a couple libraries of it.
Anyway I was able to build X11. However, trying to compile libRes I am receiving it:
Quote:
make[2]: Entering directory `/media/34GB/Arquivos-de-Programas-Linux/libXext-1.3.3/src'
CC DPMS.lo
DPMS.c:36:25: error: X11/Xlibint.h: No such file or directory
In file included from DPMS.c:37:
../include/X11/extensions/dpms.h:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
../include/X11/extensions/dpms.h:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DPMSGetVersion'
../include/X11/extensions/dpms.h:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DPMSCapable'
../include/X11/extensions/dpms.h:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DPMSSetTimeouts'
../include/X11/extensions/dpms.h:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DPMSGetTimeouts'
../include/X11/extensions/dpms.h:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DPMSEnable'
../include/X11/extensions/dpms.h:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DPMSDisable'
../include/X11/extensions/dpms.h:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DPMSForceLevel'
../include/X11/extensions/dpms.h:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DPMSInfo'
In file included from DPMS.c:38:
/media/34GB/Arquivos-de-Programas-Linux/Xorgproto-2018.1/include/X11/extensions/dpmsproto.h:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
In file included from DPMS.c:39:
../include/X11/extensions/Xext.h:34: error: expected ')' before '*' token
../include/X11/extensions/Xext.h:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'XSetExtensionErrorHandler'
../include/X11/extensions/Xext.h:44: error: expected ')' before '*' token
In file included from DPMS.c:40:
../include/X11/extensions/extutil.h:46: error: expected specifier-qualifier-list before 'Display'
../include/X11/extensions/extutil.h:59: error: expected ')' before '*' token
../include/X11/extensions/extutil.h:63: error: expected ';' before 'int'
../include/X11/extensions/extutil.h:125: error: expected declaration specifiers or '...' before 'Display'
../include/X11/extensions/extutil.h:129: error: expected declaration specifiers or '...' before 'XPointer'
../include/X11/extensions/extutil.h:133: error: expected declaration specifiers or '...' before 'Display'
../include/X11/extensions/extutil.h:137: error: expected declaration specifiers or '...' before 'Display'
DPMS.c:56: error: expected ')' before '*' token
DPMS.c:58: warning: excess elements in struct initializer
DPMS.c:58: warning: (near initialization for 'dpms_extension_hooks')
DPMS.c:59: warning: excess elements in struct initializer
DPMS.c:59: warning: (near initialization for 'dpms_extension_hooks')
DPMS.c:60: warning: excess elements in struct initializer
DPMS.c:60: warning: (near initialization for 'dpms_extension_hooks')
DPMS.c:61: warning: excess elements in struct initializer
DPMS.c:61: warning: (near initialization for 'dpms_extension_hooks')
DPMS.c:62: warning: excess elements in struct initializer
DPMS.c:62: warning: (near initialization for 'dpms_extension_hooks')
DPMS.c:63: warning: excess elements in struct initializer
DPMS.c:63: warning: (near initialization for 'dpms_extension_hooks')
DPMS.c:64: error: 'close_display' undeclared here (not in a function)
DPMS.c:64: warning: excess elements in struct initializer
DPMS.c:64: warning: (near initialization for 'dpms_extension_hooks')
DPMS.c:65: warning: excess elements in struct initializer
DPMS.c:65: warning: (near initialization for 'dpms_extension_hooks')
DPMS.c:66: warning: excess elements in struct initializer
DPMS.c:66: warning: (near initialization for 'dpms_extension_hooks')
DPMS.c:67: warning: excess elements in struct initializer
DPMS.c:67: warning: (near initialization for 'dpms_extension_hooks')
DPMS.c:69: warning: excess elements in struct initializer
DPMS.c:69: warning: (near initialization for 'dpms_extension_hooks')
DPMS.c:71: error: expected ')' before '*' token
DPMS.c:76: error: expected ')' before '*' token
DPMS.c:85: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DPMSQueryExtension'
DPMS.c:99: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DPMSGetVersion'
DPMS.c:124: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DPMSCapable'
DPMS.c:148: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DPMSSetTimeouts'
DPMS.c:177: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DPMSGetTimeouts'
DPMS.c:204: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DPMSEnable'
DPMS.c:221: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DPMSDisable'
DPMS.c:239: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DPMSForceLevel'
DPMS.c:264: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DPMSInfo'
make[2]: *** [DPMS.lo] Error 1
make[2]: Leaving directory `/media/34GB/Arquivos-de-Programas-Linux/libXext-1.3.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/34GB/Arquivos-de-Programas-Linux/libXext-1.3.3'
make: *** [all] Error 2
Quote:
That is why I told you to use the latest versions. There have been lots of changes since the versions you chose to download. If you start by grabbing all the latest versions you'll side step a huge number of potential issues, including packages that may not compile at all in 2019.
Well, seems to be better. Unfortunately this time I am using them and this problem still appeared. I am using the blfs link: http://www.linuxfromscratch.org/blfs...d/x/x7lib.html. There it mentions xcb 1.13.1 that is the version I am using and the Xext version I am trying to biuld is also the same 1.3.3.
It is complaining
Quote:
DPMS.c:36:25: error: X11/Xlibint.h: No such file or directory
as far as I know -L<dir> is not required for CPP. From the other hand export CPPFLAGS="anything" will overwrite the content of CPPFLAGS (the previous settings will be lost).
FPE stands for Floating Point Exception.
as far as I know -L<dir> is not required for CPP. From the other hand export CPPFLAGS="anything" will overwrite the content of CPPFLAGS (the previous settings will be lost).
FPE stands for Floating Point Exception.
Well, I guess I typed something wrong. Tried again with these flags and now worked.
*******EDITED2********
No, I probably did not type anything wrong. Problem happens if I export CPPFLAGS and LDFLAGS after a compilation that went wrong. Setting both variables before trying the compilation worked. I wonder what is the difference.............
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.