Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 63522

Summary: nx-x11 does not compile, libXp not found
Product: Gentoo Linux Reporter: Parker Dexter <bugzilla>
Component: New packagesAssignee: Stuart Herbert (RETIRED) <stuart>
Status: VERIFIED TEST-REQUEST    
Severity: normal CC: lionel-dev
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://packages.gentoo.org/ebuilds/?nx-x11-1.4.0-r1
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 63757    

Description Parker Dexter 2004-09-10 02:37:06 UTC
"cannot find -lXp"

gcc -o nxviewer -O2 -fno-strength-reduce -fno-strict-aliasing      -L../../nx-X11/exports/lib   argsresources.o   colour.o   cursor.o   desktop.o   dialogs.o   fullscreen.o   listen.o   misc.o   popup.o   rfbproto.o   selection.o   shm.o   sockets.o   tunnel.o   vncviewer.o -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXp -lXext -lX11 ./libvncauth.a -L/usr/local/lib -lz -L/usr/local/lib -ljpeg -L../../nxcomp -lXcomp -L../../nxcompext -lXcompext
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lXp
collect2: ld returned 1 exit status
make[2]: *** [nxviewer] Error 1
make[2]: Leaving directory `/var/tmp/portage/nx-x11-1.4.0-r1/work/nxviewer/nxviewer'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/nx-x11-1.4.0-r1/work/nxviewer'
make: *** [World] Error 2

!!! ERROR: net-misc/nx-x11-1.4.0-r1 failed.
!!! Function src_compile, Line 46, Exitcode 2
!!! unable to make nxviewer


Reproducible: Always
Steps to Reproduce:
1.emerge nx-x11




Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1,
2.6.8-gentoo-r3)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 AMD Athlon(TM) XP 1800+
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://mir.zyrianes.net/gentoo/ http://gentoo.zie.pg.gda.pl http://src.gentoo.pl
ftp://ftp.uninett.no/pub/linux/Gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bitmap-fonts bluetooth cdr crypt cups encode esd
fam foomaticdb gdbm gif gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad
maildir matrox mikmod motif mpeg mplayer ncurses nls oggvorbis opengl oss pam
pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd tetex
truetype v4l x86 xml2 xmms xprint xv zlib"
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2004-09-10 02:53:20 UTC
all you have to do is make sure "xprint" is in USE.  It should be default at this time, but please do emerge -pv xorg-x11 to make sure xprint is enabled.  If it isn't, add it to your USE set, remerge xorg-x11 and this problem with nx will go away.
Comment 2 Parker Dexter 2004-09-10 04:20:31 UTC
if you check the very last line in my original post, you see that xprint IS in the use flags. but xprint goes to /usr/X11R6/lib

ldconfig -p |grep libXp.so
   libXp.so.6 (libc6) => /usr/X11R6/lib/libXp.so.6
   libXp.so (libc6) => /usr/X11R6/lib/libXp.so

the compile looks only (as far as i can tell) in

-L../../nx-X11/exports/lib 
-L/usr/local/lib  
-L/usr/local/lib 
-L../../nxcomp  
-L../../nxcompext 

thus cannot find 'em.
Comment 3 Parker Dexter 2004-09-10 04:39:03 UTC
problem is: 

* /nx-x11-1.4.0-r1/work/nx-X11/lib/Xp : there is no library built here
* /nx-x11-1.4.0-r1/work/nx-X11/exports/lib : there is no libXp.so.6 linked here

again: xprint is in USE
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2004-09-10 11:04:52 UTC
oops, sorry about that then
Comment 5 Parker Dexter 2004-09-11 02:29:45 UTC
what i found out..

libXp is not built because in 
/nx-x11/lib/Imakefile, BuildXprintLib is undefined (line 159)

this is probably because of
/nx-x11/config/cf/X11.tmpl (line 471)

but i dont know how to go on from there
Comment 6 Stuart Herbert (RETIRED) gentoo-dev 2004-09-12 02:05:32 UTC
I've suddenly run into the same problem, although I'm not sure why I didn't have the problem before.  I'll hopefully have a new patch + ebuild in Portage for you later today.

Best regards,
Stu
Comment 7 Stuart Herbert (RETIRED) gentoo-dev 2004-09-12 02:19:50 UTC
I've added nx-x11-1.4.0-r2 to Portage, which should fix this problem for you.  It'll take about an hour for this new version to appear on your local rsync mirror.

Please test this version, and let me know how you get on.

Best regards,
Stu
Comment 8 Parker Dexter 2004-09-13 13:31:48 UTC
r2 works now for me 
(out of the box - can connect from 1.3.2 windows client)
Comment 9 Lionel Bouton 2006-09-27 09:43:23 UTC
A similar issue with a missing libXp occurs with nx-x11-1.5.0-r8. Adding the xprint flag doesn't seem to help (emerge -auvDN world doesn't want to emerge libXp after adding it).

Note that this is an headless Xen DomU, xorg is not installed per se. I'll try adding libXp manually. Shouldn't nx-x11 have a DEPEND on libXp or is there a way to avoid linking to it?

Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.16.28-xen i686)
=================================================================
System uname: 2.6.16.28-xen i686 Intel(R) Xeon(TM) CPU 3.40GHz
Gentoo Base System version 1.12.5
Last Sync: Thu, 21 Sep 2006 17:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=i686 -fomit-frame-pointer -ffast-math -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O3 -march=i686 -fomit-frame-pointer -ffast-math -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/  http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/  http://pandemonium.tiscali.de/pub/gentoo/"
LINGUAS=""
MAKEOPTS="-j21"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync-gentoo.inet6-interne.fr/gentoo-portage"
USE="x86 bash-completion berkdb bitmap-fonts cli crypt cups dlloader dri elibc_glibc gdbm gif input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kernel_linux libg++ mmx ncurses nls nptl nptlonly pam pcre perl ppds pppd python rdesktop readline reflection rtc session spl sse ssl threads truetype-fonts type1-fonts udev unicode userland_GNU video_cards_none vnc xft xorg xprint zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS