Hey folks,

I give up to find the solution myself and really hope that anybody here can help me.

I'm just trying to recompile a program, which was formerly compiled on another computer with another Linux distribution. I'm now working (or trying to work) with Suse 11.1. The Makefile I use looks like follows:

Code:
CC = gcc
# -----------
# -- Linux ------
#CFLAGS = -O2 -DUF -DHP -DSTD
CFLAGS = -O2 -DUF -DHP -DSTD -I/usr/X11R6/include/X11
LDFLAGS = -L/usr/lib64 -L/usr/X11R6/lib -static
LIBS = -lf2c -lm -lX11
# ----------- 
# -- Sylt ---
#CFLAGS = -DUF -DHP -DSTD -I/usr/include -I/usr/libold
#LDFLAGS = -s
#LIBS = -lf2c -lm -lX11
# -----------
#
######
SRCS = plox_n.c RubberWin.c RubberLin.c 
OBJS = $(SRCS:.c=.o)
TARGET = plox.e
#
#
####### Implicit rules
.SUFFIXES: .o.c
.c.o:
	$(CC) -c $(CFLAGS) $<
#
#
####### Build rules
all: $(TARGET)
#
$(TARGET): $(OBJS)
	$(CC) $(OBJS) $(LDFLAGS) -o $(TARGET) $(LIBS)
#
clean:
	rm -f *.e *.o
And the result after the successful creation of the object files (examplarily shown, in real there are many of those statements):

Code:
/usr/lib64/libX11.a(xcb_io.o): In function 'condition wait': 
/usr/src/packages/Build/libX11-1.1.5/src/xcb_io.c:76: undefined reference to 'xcb_xlib_lock'
Where is my mistake?

Thank you in advance.