modular CVS building problem linking app 'ico'

Alan Coopersmith Alan.Coopersmith at Sun.COM
Tue Aug 16 08:21:56 PDT 2005

Hmm.  I was triggering off the XTHREADS defines in XlibConf.h for thread
support but forgot to add a library check.   (Worked for me because I
was testing on a system with threads functions in libc, and I forgot not
all systems have that.)

Unfortunately, the Xthreads support uses a variety of different functions,
so a simple check for pthread_create won't always work.   I'm not sure there's
any good way to do this other than setting the right set of libraries in the
x11.pc for other programs to pick up (or perhaps a new x11-threads.pc)?

Any have a better idea?


Carlos Eduardo Rodrigues Diogenes wrote:
> hi,
> I was building the modular tree of Xorg and get this error while compiling:
> gcc  -g -O2   -o ico  ico-ico.o -L/tmp/modular/lib -lX11 -ldl   -lm
> ico-ico.o(.text+0x1bee): In function `main':
> /home/kadu/cvs/xorg_modular_source/app/ico/ico.c:1314: undefined 
> reference to `pthread_create'
> collect2: ld returned 1 exit status
> where is declareted `pthread_create'... Anyone yet know how to resolve it?
> Thanks,
> Carlos.
> _______________________________________________
> xorg mailing list
> xorg at

	-Alan Coopersmith-           alan.coopersmith at
	 Sun Microsystems, Inc. - X Window System Engineering

More information about the xorg mailing list