Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69244 - undefined reference to `XdmcpUnwrap' while compiling kdm
Summary: undefined reference to `XdmcpUnwrap' while compiling kdm
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: Highest critical (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 69245 69246 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-28 04:43 UTC by Alex
Modified: 2005-07-09 12:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex 2004-10-28 04:43:30 UTC
Portage 2.0.51-r2 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20041006-r0, 2.6.9-nitro1 i686)
=================================================================
System uname: 2.6.9-nitro1 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.6.4
distcc 2.17 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.4.3-r4
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -Os -pipe -fPIC"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -Os -pipe -fPIC"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distlocks"
GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://www.gigaload.org/gentoo.org/ ftp://ftp.heanet.ie/pub/gentoo/ http://gentoo.inode.at/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://mirror.hamakor.org.il/gentoo-portage"
USE="3dnow X acl acpi acpi4linux activefilter alsa apm arts artswrappersuid async avi bitmap-fonts cdr chroot crypt cups divx4linux f77 ffmpeg foomaticdb freetype freetype-version-1 gphoto2 gpm icq idea imlib java jpeg kde ldap libg++ mad mikmod mmx mpeg mpeg4 ncurses nls oggvorbis ooo-kde opengl oss pam pdflib png qt quicktime readline ruby scanner slang spell sse ssl tcltk tcpd transcode truetype type1 usb vim-with-x x86 xinexprint xv xvid zlib"




in\" -DXLIBDIR=\"/usr/lib\"  -DXDMCP -DHAVE_GETUSERSHELL -DUSE_SYSLOG -DUSE_PAM -I../kfrontend  -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DUNIXCONN -DTCPCONN  -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -DNDEBUG -O2  -march=athlon-xp -Os -pipe -fPIC -Wformat-security -Wmissing-format-attribute -c xdmcp.c
/bin/sh ../../libtool --silent --mode=link --tag=CC i686-pc-linux-gnu-gcc  -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DUNIXCONN -DTCPCONN  -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -DNDEBUG -O2  -march=athlon-xp -Os -pipe -fPIC -Wformat-security -Wmissing-format-attribute   -L/usr/lib -R /usr/lib   -o kdm  access.o auth.o choose.o client.o ctrl.o daemon.o dm.o dpylist.o error.o genauth.o inifile.o krb5auth.o mitauth.o netaddr.o policy.o process.o protodpy.o reset.o resource.o rpcauth.o server.o session.o socket.o streams.o util.o xdmauth.o xdmcp.o -lX11  -lXau -lXdmcp -lpam -ldl     -lresolv  -lutil
xdmauth.o(.text+0x562): In function `XdmCheckAuthentication':
: undefined reference to `XdmcpUnwrap'
collect2: ld returned 1 exit status
make[3]: *** [kdm] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdebase-3.3.1/work/kdebase-3.3.1/kdm/backend'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdebase-3.3.1/work/kdebase-3.3.1/kdm'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdebase-3.3.1/work/kdebase-3.3.1'
make: *** [all] Error 2

!!! ERROR: kde-base/kdebase-3.3.1 failed.
!!! Function kde_src_compile, Line 142, Exitcode 2
!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, NOT this status message.
Comment 1 Simone Gotti (RETIRED) gentoo-dev 2004-10-28 05:20:27 UTC
*** Bug 69245 has been marked as a duplicate of this bug. ***
Comment 2 Simone Gotti (RETIRED) gentoo-dev 2004-10-28 05:20:30 UTC
*** Bug 69246 has been marked as a duplicate of this bug. ***
Comment 3 Gregorio Guidi (RETIRED) gentoo-dev 2004-10-28 09:46:13 UTC
Are you using an experimental version of xorg-x11? It seems you have X installed in /usr...

Have you tried without ccache?
Comment 4 Alex 2004-10-30 01:52:38 UTC
I disabled ccache.
I am using xorg-x11 6.8.0-r1.
Still broken...
Comment 5 Alex 2004-10-30 06:17:28 UTC
Emering xorg 6.7.0-r2 and emerging KDE again seem to have solved the problem.
Would anyone please look into latest KDE and XORG-X11 ebuilds?
Thank you.
Comment 6 Matan Peled 2004-11-05 03:25:19 UTC
confirming bug, can't compile here either, same error...

I'm not going to emerge xorg-x11-6.8.0-r2, that has a big fat warning on compile (that requires me to set an env variable just to emerge!).

Aurora ~ # emerge -vp xorg-x11

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] x11-base/xorg-x11-6.8.0-r1  -3dfx -3dnow -bitmap-fonts -cjk -debug -dlloader -dmx +doc -hardened -insecure-drivers +ipv6 +mmx +nls +pam -sdk +sse -static -xprint* 0 kB 

Aurora ~ # emerge info
Portage 2.0.51-r2 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20041021-r0, 2.6.9-rc3-chaotic3 i686)
=================================================================
System uname: 2.6.9-rc3-chaotic3 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
Gentoo Base System version 1.6.5
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -fomit-frame-pointer -ftracer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /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"
CXXFLAGS="-march=pentium4 -O2 -fomit-frame-pointer -ftracer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distlocks sandbox usersandbox"
GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/trunk /usr/local/kdeoverlay /usr/local/bmg-main"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib acpi alsa apache2 apm avi beepmp berkdb bidi caps cdparanoia cdr crypt cups directfb divx4linux doc edl encode erandom ethereal f77 fam flac font-server foomaticdb freetype gd gdbm gif gimp gimpprint glx gnome gnomedb gpm gtk gtk2 icq imagemagick imap imlib imlib2 ipv6 jack java javamail jce jikes jpeg k3b lcms ldap libcaca libg++ libwww live m17n-lib mad matroska memlimit mikmod mmx mmx2 mng motif mozaccess mozctl mozdomi mozsvg mp3 mpeg mpeg4 mplayer mule mysql mysqli ncurses network nls nocd norhino nptl nptlonly ntlm nvidia oggvorbis openal opengl oscar pam pdflib perl php pic png ppds propolice pthreads python qt quicktime readline rtc samba sdl slang snmp speedo speex spell src sse sse2 ssl svg svga tcltk tcpd tetex theora threads truetype truetype-fonts unicode videos vim-with-x wifi x86 xinerama xml xml2 xmms xosd xv xvid xvmc zlib linguas_en linguas_he"

Comment 7 Andrew Bevitt 2004-11-29 16:06:31 UTC
Alex I think your case maybe related to -fPIC in your CFLAGS (can you try with out it).

Can you also (both alex and matan) while running 6.8.0 check for 
/usr/X11R6/lib/libXdmcp.a

If it exists run : nm /usr/X11R6/lib/libXdmcp.a | grep XdmcpUnwrap
And post your output.

KDE team do you have any thoughts?

I think it has something to do with the XDMCP / HASXDMAUTH macro definitions.
XDMCP is hard defined in xdm/dm.h but not in kdm/dm.h ; however if anything that would suggest kdm building without xdmcp support when infact the libraries exist to use it. Not the other way around.
If the above tests return negative it means that HASXDMAUTH was not defined in the xorg-x11 build, but is being defined in the kdebase build, which basically shouldnt happen.
Comment 8 Gregorio Guidi (RETIRED) gentoo-dev 2004-11-30 03:25:39 UTC
I think it's related to this define: -DXLIBDIR=\"/usr/lib\"
in the compile command.
Here I have -DXLIBDIR=\"/usr/X11R6/lib/X11\" and it's all working fine.
I don't know why it is so, the value of XLIBDIR should be read directly
form /usr/X11R6/lib/X11/config/*, which should give /usr/X11R6/lib/X11.

It goes like this:
./configure writes an Imakefile, then calls 'xmkmf' (which 
is /usr/X11R6/bin/xmkmf here), which calls
'imake -DUseInstalled -I/usr/X11R6/lib/X11/config', which produces
the Makefile containing -DXLIBDIR=...

you should check if something went wrong in this process, maybe looking
in /var/tmp/portage/kdebase.../work/kdebase.../config.log (stopping the build
process after configure has finished) and searching a snippet like this:

configure:45749: checking various X settings
imake -DUseInstalled -I/usr/X11R6/lib/X11/config
In file included from /usr/X11R6/lib/X11/config/Imake.tmpl:105,
                 from Imakefile.c:35:
/usr/X11R6/lib/X11/config/linux.cf:371: warning: "BuildLibGlxWithoutPIC" redefined
In file included from /usr/X11R6/lib/X11/config/site.def:44,
                 from /usr/X11R6/lib/X11/config/Imake.tmpl:46,
                 from Imakefile.c:35:
/usr/X11R6/lib/X11/config/host.def:63: warning: this is the location of the previous definition
configure:45860: result: done

or looking in /usr/X11R6/lib/X11/config/site.def, /usr/X11R6/lib/X11/config/site.def
for something like

/usr/X11R6/lib/X11/config/site.def:#define ProjectRoot /usr/X11R6

/usr/X11R6/lib/X11/config/X11.tmpl:#  define LibDir Concat(ProjectRoot,/lib/X11)

Comment 9 David Norris 2004-12-05 14:30:20 UTC
This may or may not be related to <http://bugs.gentoo.org/show_bug.cgi?id=73483>.
Comment 10 Gregorio Guidi (RETIRED) gentoo-dev 2005-07-09 12:09:47 UTC
Old bug, please reopen if it's still an issue.