[Bug 140950] - compile fails on gcc-3.4.0 for dasher 3.2.10



http://bugzilla.gnome.org/show_bug.cgi?id=140950
dasher | general | Ver: 3.2





------- Additional Comments From tbuchan utdallas edu  2004-09-03 21:13 -------
I get this error as well on a Slackware 10.0 system when compiling
dasher-3.2.11.  It looks to me like the configure script checks for the
existence of XTestFakeKeyEvent in the XTest library before checking if -lXtst in
/usr/X11R6/lib:

from config.log:
configure:11130: checking for XTestFakeKeyEvent in -lXtst
configure:11160: gcc -o conftest -g -O2   conftest.c -lXtst  -lexpat  >&5
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin/ld:
cannot find -lXtst
collect2: ld returned 1 exit status
configure:11166: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "dasher"
| #define PACKAGE_TARNAME "dasher"
| #define PACKAGE_VERSION "3.2.11"
| #define PACKAGE_STRING "dasher 3.2.11"
| #define PACKAGE_BUGREPORT "dasher mrao cam ac uk"
| #define PACKAGE "dasher"
| #define VERSION "3.2.11"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_ICONV 1
| #define ICONV_CONST
| #define GETTEXT_PACKAGE "dasher"
| #define HAVE_LOCALE_H 1
| #define HAVE_LC_MESSAGES 1
| #define HAVE_BIND_TEXTDOMAIN_CODESET 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define ENABLE_NLS 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define HAVE_LIBEXPAT 1
| /* end confdefs.h.  */
|
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char XTestFakeKeyEvent ();
| int
| main ()
| {
| XTestFakeKeyEvent ();
|   ;
|   return 0;
| }
configure:11191: result: no
configure:11204: checking for -lXtst in /usr/X11R6/lib
configure:11222: gcc -o conftest -g -O2   conftest.c -L/usr/X11R6/lib -lXtst >&5
configure:11228: $? = 0

This causes -lXtst to not be included in the LDFLAGS, which causes the error
when linking.  Unfortunately, I lack the knowledge of autoconf to fix this.

Additionally, if I set the LDFLAG environment variable to "-L/usr/X11R6/lib
-lXtst" before running configure, then everything works just peachy.

from config.log with LDFLAGS set:
configure:11130: checking for XTestFakeKeyEvent in -lXtst
configure:11160: gcc -o conftest -g -O2  -L/usr/X11R6/lib -lXtst conftest.c
-lXtst  -lexpat  >&5
configure:11166: $? = 0
configure:11169: test -z                         || test ! -s conftest.err
configure:11172: $? = 0
configure:11175: test -s conftest
configure:11178: $? = 0

Compilation finishes successfully in this case.

------- You are receiving this mail because: -------
You are on the CC list for the bug.



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