Visit The New, Modern Unix Linux Community


Problem trying to compile libXres


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Problem trying to compile libXres
# 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.

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #540
Difficulty: Medium
In dynamically typed programming languages. instead of declaring a variable to have a particular type, the type of a variable is determined by an A.I. in the operating system.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to compile this?

I want to compile cryptsetup keyslot_checker , but I get error gcc -lm -lcryptsetup chk_luks_keyslots.c -o chk_luks_keyslots chk_luks_keyslots.c:39:27: fatal error: libcryptsetup.h: No such file or directory #include <libcryptsetup.h>in FAQ they say There is a tool that automatizes this in the... (0 Replies)
Discussion started by: zognadal
0 Replies

2. Debian

Program compile problem (glib pkg-config)

I need to compile a program which uses glib-2.0. I installed the package libglib2.0-0 but the configure script can't find it because the libglib package doesn't provide a .pc file which pkg-config looks for. How can I resolve this? Debian 6.0 (SPARC) (3 Replies)
Discussion started by: snorkack59
3 Replies

3. Linux

Fortran compile problem

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=,... (1 Reply)
Discussion started by: miriammiriam
1 Replies

4. UNIX for Dummies Questions & Answers

Compiling gcc to compile make to compile yaboot

I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
Discussion started by: t04st3r
0 Replies

5. Programming

GNU GDB compile problem

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... (8 Replies)
Discussion started by: untamed
8 Replies

6. AIX

Compile Problem on AIX5.3

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... (1 Reply)
Discussion started by: jbo
1 Replies

7. Solaris

Help to compile

Hi everybody, I have a small opensource project http://hpaftpd.sourceforge.net (single-threaded ftp-server for heavy network traffic). It tested with FreeBSD and Linux. Can anybody try it with another Unix system? I'm interesting about HP/UX and Solaris. Thanks. (1 Reply)
Discussion started by: wwwdev
1 Replies

8. Programming

help to compile

Hello everybody, I have a small opensource project http://hpaftpd.sourceforge.net (single-threaded ftp-server). It tested with FreeBSD and Linux. Can anybody try it with another UNIX system ? I'm interesting about HP/UX and Solaris. I would very much appreciate receiving any results about it. ... (2 Replies)
Discussion started by: wwwdev
2 Replies

9. Programming

compile problem on aix

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"... (4 Replies)
Discussion started by: rein
4 Replies

10. Programming

Compile problem.

I am a newbie to unix environment and i am currently using bash. May i know how to compile a new c program. (1 Reply)
Discussion started by: alkyo
1 Replies

Featured Tech Videos