FAQ addition (was Re: Another one with compiling problems :()



This one should be in the FAQ, it's a common problem and is caused
on at least all RH5.0 systems and probably all systems which use
precompiled X11R6 binaries.

Problem:
linking gtk-xmhtml fails with undefined references to
`uncompress' and `compress'

Cause:
XFree86. It installs a static libz.a in /usr/X11R6/lib/libz.a, and
when /usr/X11R6/lib is specified on the command line, ld will take
/usr/X11R6/lib/libz.a instead of /usr/lib/libz.[a|so]

Solution:
Simply remove /usr/X11R6/lib/libz.a as it serves no purpose whatsoever.

Cheers,
Koen D'Hondt



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]