[maemo-developers] [maemo-developers] Missing library in the 2006 beta version?

From: Tim Teulings rael at edge.ping.de
Date: Wed Jul 5 22:10:16 EEST 2006

> Most likely this is Autotools issue.  At least older autoconf
> checked the existence of X libraries by checking for libXt
> and it added that also to the linker line.
> However, none of the modern (Gtk, Qt) UI toolkits use libXt
> nor require it.  Only something obsolete like Motif needs it.
> Does your program really use/require libXt?

The problem is the "AC_PATH_XTRA()" configure test. It defines the
X_PRE_LIBS variable, which - from the documentation - contains
libraries, which must be linked before you link the "regular" X11
libraries. The configure scripts for at least debian and maemo
distributions returns "-lSM -lICE" for this variable. Configure scripts
which try to be correct and portable and thus use this variable will
automatically link against this libraries - even if they do not use
them. I removed the use of X_PRE_LIBS temporary to avoid linking this

Note also that recent versions of Xorg offer pkg-cocnfig *.pc files for
the various X11 files. I plan to use them if available and fall back to
AC_PATH_XTRA if not. These *.pc files do not show above behaviour of
automatically adding -lSM and -lICE.

I do not have any problem with libXt.


More information about the maemo-developers mailing list