slopjong / automake-example

Example files for a GNU Autotools tutorial
3 stars 1 forks source link

[x11-example] No lines and rectangles in archlinux and fedora #1

Open slopjong opened 11 years ago

slopjong commented 11 years ago

Environment:

archlinux: xlib 1.5 fedora: xlib 1.4.3

In ubuntu 10.04 LTS (xlib 1.4.?) it works.

strace on fedora: http://pastie.org/5090941 ltrace on fedora: http://pastie.org/5090957

Important note: by ltracing the binary in fedora, the lines and rectangles were drawn. In archlinux this behaviour couldn't be reproduced.

slopjong commented 11 years ago

If somebody wants to help me to find out what causes the described behavior, follow these steps:

git clone git://github.com/slopjong/automake-example.git /tmp/automake-x11-example
cd /tmp/automake-x11-example
gcc -o test x11-example/src/main.c -lX11

Now run the binary one time without ltrace ./test and one time with ltrace ltrace ./test.

Let me know in what case you see a white window and when you don't. Let me also know your system environment such as the operating system (version), xlib version etc.

In fedora you most probably need to have the package libX11-devel installed.