LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 06-05-2019, 05:56 PM   #16
coltson
Member
 
Registered: Oct 2010
Posts: 149

Original Poster
Rep: Reputation: 3

Quote:
Originally Posted by Luridis View Post
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
but this time the file it is present at
Code:
X11-1.6.7/include/X11/Xlibint.h
So I do not know why he is not finding it.
 
Old 06-06-2019, 11:10 AM   #17
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
This is why I asked if you've tried to build software before. Are you using the same --prefix= for both packages?
 
Old 06-08-2019, 03:59 PM   #18
coltson
Member
 
Registered: Oct 2010
Posts: 149

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by Luridis View Post
This is why I asked if you've tried to build software before. Are you using the same --prefix= for both packages?
Sorry I was confused. The problem arises when trying to compile libXExt (that I will need to compile libXres). The configure command is
Code:
./configure --prefix=/media/34GB/Arquivos-de-Programas-Linux/Xext-1.3.3/ PKG_CONFIG_PATH=/media/34GB/Arquivos-de-Programas-Linux/Xorgproto-2018.1/share/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/X11-1.6.7/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Xcb-1.13/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Pthread-stubs-0.1/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Xau-1.0.9/lib/pkgconfig/
I also tried to add a
Code:
export CPPFLAGS=-I"/media/34GB/Arquivos-de-Programas-Linux/X11-1.6.7/include/"
and a
Code:
export LDFLAGS=-L"/media/34GB/Arquivos-de-Programas-Linux/X11-1.6.7/lib/"
but it did not changed the outcome

Last edited by coltson; 06-11-2019 at 06:03 PM.
 
Old 06-09-2019, 11:38 AM   #19
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,792

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
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.
 
Old 06-11-2019, 06:04 PM   #20
coltson
Member
 
Registered: Oct 2010
Posts: 149

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by pan64 View Post
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.
My mistake, I meant LDFLAGS, not CPPFLAGS.


******EDITED*******

Quote:
Originally Posted by coltson View Post
I also tried to add a
Code:
export CPPFLAGS=-I"/media/34GB/Arquivos-de-Programas-Linux/X11-1.6.7/include/"
and a
Code:
export LDFLAGS=-L"/media/34GB/Arquivos-de-Programas-Linux/X11-1.6.7/lib/"
but it did not changed the outcome
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.............

Last edited by coltson; 06-12-2019 at 09:48 AM.
 
  


Reply

Tags
compile error, libx11, xorglibs, xproto


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Floating point exception compiling on Mandriva, run on Debian digdas Linux - Distributions 3 04-24-2007 11:18 AM
LILO 'Floating point Exception' error? fallout Slackware 17 07-27-2006 01:03 PM
Floating point exception error while starting parted drdosman Linux - Software 1 10-27-2004 11:11 AM
Depmod -> floating point exception Wynd Linux - General 0 06-26-2004 08:21 PM
[Kingpin] Floating Point Exception SiQDiZ Linux - Games 1 06-14-2004 02:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration