Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Problem trying to compile libXres


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Problem trying to compile libXres

Hello. I recently tried to build libXres from the source and I am encountering issues when trying to build from two different manners.

In the first I run the configure script with
Code:
./configure --prefix=/media/34GB/Arquivos-de-Programas-Linux/ PKG_CONFIG_PATH=/media/34GB/Arquivos-de-Programas-Linux/X11-1.6.7/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Xorgproto-2018.1/share/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/:/media/34GB/Arquivos-de-Programas-Linux/Xext-1.3.3/lib/pkgconfig/

Then I run make, which causes:

Quote:
make[2]: Entering directory `/media/34GB/Arquivos-de-Programas-Linux/libXres-1.2.0/src'
CC XRes.lo
XRes.c:9:25: error: X11/Xlibint.h: No such file or directory
XRes.c:10:23: error: X11/Xutil.h: No such file or directory
In file included from XRes.c:11:
/media/34GB/Arquivos-de-Programas-Linux/Xext-1.3.3/include/X11/extensions/Xext.h:34: error: expected ‘)’ before ‘*’ token
..............
In file included from XRes.c:12:
/media/34GB/Arquivos-de-Programas-Linux/Xext-1.3.3/include/X11/extensions/extutil.h:46: error: expected specifier-qualifier-list before ‘Display’
/media/34GB/Arquivos-de-Programas-Linux/Xext-1.3.3/include/X11/extensions/extutil.h:59: error: expected ‘)’ before ‘*’ token
.........
.........
In file included from XRes.c:13:
/media/34GB/Arquivos-de-Programas-Linux/Xorgproto-2018.1/include/X11/extensions/XResproto.h:28: error: expected specifier-qualifier-list before ‘CARD32’
error: expected specifier-qualifier-list before ‘CARD8’
/media/34GB/Arquivos-de-Programas-Linux/Xorgproto-2018.1/include/X11/extensions/XResproto.h:100: error: expected specifier-qualifier-list before ‘CARD8’
...........
/XResproto.h:213: error: expected specifier-qualifier-list before ‘CARD8’
In file included from XRes.c:14:
../include/X11/extensions/XRes.h:13: error: expected specifier-qualifier-list before ‘XID’
../include/X11/extensions/XRes.h:18: error: expected specifier-qualifier-list before ‘Atom’
../include/X11/extensions/XRes.h:36: error: expected specifier-qualifier-list before ‘XID’
../include/X11/extensions/XRes.h:47: error: expected specifier-qualifier-list before ‘XID’
../include/X11/extensions/XRes.h:68: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘XResQueryExtension’
../include/X11/extensions/XRes.h:119: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
............
‘XResQueryResourceBytes’
XRes.c:25: error: expected ‘)’ before ‘*’ token
XRes.c:28: warning: excess elements in struct initializer
...........
XRes.c:34: error: ‘close_display’ undeclared here (not in a function)
XRes.c:34: warning: excess elements in struct initializer
.......
XRes.c:41: error: expected ‘)’ before ‘*’ token
XRes.c:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘XResQueryExtension’
.........
XRes.c:264: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘XResQueryClientIds’
XRes.c: In function ‘XResGetClientIdType’:
.........
XRes.c:334: error: ‘Bool’ undeclared (first use in this function)
XRes.c: In function ‘XResGetClientPid’:
XRes.c:352: error: ‘XResClientIdSpec’ has no member named ‘mask’
XRes.c:353: error: ‘CARD32’ undeclared (first use in this function)
XRes.c:353: error: expected expression before ‘)’ token
XRes.c: At top level:
XRes.c:359: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ReadResourceSizeSpec’
............
make[2]: *** [XRes.lo] Error 1
make[2]: Leaving directory `/media/34GB/Arquivos-de-Programas-Linux/libXres-1.2.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/34GB/Arquivos-de-Programas-Linux/libXres-1.2.0'
make: *** [all] Error 2
The many ......... were introduced by me to short the error message.

The strange thing is that Xlibint.h: and XUtil.h are present in the aforementioned X11 dir. So I don't know what is causing the problem. Perhaps an error on x11.pc ? It seems normal for me and it did work with most of the other X libraries.

I had a similar issue with libXext and so decided to try the same approach. Deleted the current libXrender dir, unpacked the compressed bziped file libXres and after running the above configure command, tried a
Code:
export LDFLAGS=-L/media/34GB/Arquivos-de-Programas-Linux/X11-1.6.7/lib/

and a
Code:
export CPPFLAGS=-I/media/34GB/Arquivos-de-Programas-Linux/X11-1.6.7/include/

.

This time, instead a perfect compilation, I received:

Quote:
make[2]: Entering directory `/media/34GB/Arquivos-de-Programas-Linux/libXres-1.2.0/src'
CC XRes.lo
CCLD libXRes.la
libtool: warning: library '/media/34GB/Arquivos-de-Programas-Linux/X11-1.6.7/lib//libX11.la' was moved.
/bin/grep: /media/34GB/Arquivos-de-Programas-Linux/X11-1.2.1/lib/libX11.la: No such file or directory
/bin/sed: can't read /media/34GB/Arquivos-de-Programas-Linux/X11-1.2.1/lib/libX11.la: No such file or directory
libtool: error: '/media/34GB/Arquivos-de-Programas-Linux/X11-1.2.1/lib/libX11.la' is not a valid libtool archive
make[2]: *** [libXRes.la] Error 1
make[2]: Leaving directory `/media/34GB/Arquivos-de-Programas-Linux/libXres-1.2.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/34GB/Arquivos-de-Programas-Linux/libXres-1.2.0'
make: *** [all] Error 2
# 2  
Normally you need to do something like a "make clean" first and rerun configure after making any changes to the libs and file structure.
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Fortran compile problem
miriammiriam
Hello everyone, I am trying to compile a code under fedora14.Kernel Linux 2.6.35.6-45fc14.i686-GNOME 2.32.0. I use f77,g77 and gfortran to compile but I get the same error all ways. Unsupported OPEN control item at (^) -- ACTION=, ASSOCIATEVARIABLE=, BLOCKSIZE=, BUFFERCOUNT=,...... Linux
1
Linux
GNU GDB compile problem
untamed
I have to compile gnu-gdb 6.7 on HP-UX 11.11 with /usr/local/pa64/bin/gcc 64-bit compiler, but I'm having some problems during "make": ser-tcp.c: In function `net_open': ser-tcp.c:207: warning: passing arg 5 of `getsockopt' from incompatible pointer type make: *** Error 1 make: Leaving...... Programming
8
Programming
Compile Problem on AIX5.3
jbo
Hello, I try to compile apt-rpm on a AIX box. AIX: AIX 5300-05-03 make : 3.81 CC= VAC 8 I get the follwing error: make: Entering directory `/home/root/apt-0.5.15lorg3/apt-pkg' source='contrib/cmndline.cc' object='contrib/cmndline.lo' libtool=yes \ DEPDIR=.deps depmode=none...... AIX
1
AIX
compile problem on aix
rein
When compiling (a simple test program): #include <stdio.h> #include <sys/context.h> int main() { printf("Hello\n"); return 0; } on AIX 5.2 with gcc 3.2.2 from the IBM site I get the following error: /usr/include/sys/context.h:169: parse error before "sigset64_t"...... Programming
4
Programming
Compile problem.
alkyo
I am a newbie to unix environment and i am currently using bash. May i know how to compile a new c program.... Programming
1
Programming

Featured Tech Videos