update of ddd from 3.3.7 to 3.3.10 failed, unresolved symbol in motif lib Reproducible: Always Steps to Reproduce: 1.: emerge ddd Actual Results: configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. configure: WARNING: This DDD release requires LessTif 0.87 or later. Upgrade to a recent LessTif version or continue at own risk. + i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -I./.. -march=i686 -funroll- loops -pipe -c -g ./ctest.c -o ctest.o + i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I. -I./.. -Wall -W -Wwrite-stri ngs -march=i686 -funroll-loops -pipe -trigraphs -c ./cxxtest.C -o cxxtest.o ddd.C: In function `void setup_motif_version_warnings()': ddd.C:7745: error: `xmUseVersion' undeclared (first use this function) ddd.C:7745: error: (Each undeclared identifier is reported only once for each function it appears in.) make[2]: *** [ddd.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [all] Error 2 make: *** [all-recursive] Error 1 Expected Results: build without failure :-) lesstif not installed yet. same results after installation of lesstif. ---8<--- emerge info ---8<--- Gentoo Base System version 1.4.16 Portage 2.0.51.19 (default-linux/x86/2004.0, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.4.28-gentoo-r7 i686) ================================================================= System uname: 2.4.28-gentoo-r7 i686 AMD Athlon(tm) XP 1600+ Python: dev-lang/python-2.2.3-r1,dev-lang/python-2.3.4-r1 [2.3.4 (# 1, Feb 27 2005, 00:29:55)] dev-lang/python: 2.2.3-r1, 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.4.19-r1, 2.4.22-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=i686 -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/jetty/etc /usr/kde/2/share/config /usr/kde/3.3/env /us r/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X1 1/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/ config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr /share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" confCXXFLAGS="-O3 -march=i686 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X apm arts avi berkdb bitmap-fonts bonobo cdr crypt cups curl emboss en code esd fam font-server foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk 2 gtkhtml guile imagemagick imlib ipv6 java jpeg junit kde libg++ libwww mad mik mod motif mozilla mp3 mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib per l png python qt quicktime readline samba scanner sdl slang snmp spell sqlite ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts xml xml2 xmms xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
$ fgrep -r xmUseVersion /usr/include /usr/include/Xm/Xm.h:externalref int xmUseVersion; /usr/include/lesstif/Xm/Xm.h:XMLIBEXPORT extern int xmUseVersion; $ qpkg -f -v /usr/include/Xm/Xm.h x11-libs/openmotif-2.2.3-r3 *
try to remerge openmotif
I was able to solve the (my) problem. I first emerged ddd with openmotif 2.1.30-r4 installed. openmotif was instaled in /usr/X11R6 ... configure (of ddd-3.3.7) reported: checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include my current install of openmotif is 2.2.3-r1, which is installed into /usr/... ! now configure (of ddd-3.3.*) reported: checking for X... libraries , headers (IMO it should report 'checking for X... libraries /usr/lib, headers /usr/include') analyzing my istallation I found some (very) old lesstif files in /usr/local/... which made no problems until now. after deleting them ddd emerged properly. Thanks for the hints.
fixed that not-really-a-bug bug. (caused by old lesstif files in /usr/local; maybe configure should have told me about using files from /usr/local)