Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
tightvnc and vnc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
chris84ae
n00b
n00b


Joined: 19 Apr 2003
Posts: 40

PostPosted: Sat May 03, 2003 2:31 am    Post subject: tightvnc and vnc Reply with quote

Whenever Xvnc is complided I get the same error for both vnc and tighvnc

Code:
fileserver Xserver # gcc -o Xvnc -mcpu=k6 -O2 -pipe -fomit-frame-pointer -ansi -pedantic   -L../.././/exports/lib  dix/libdix.a os/libos.a ../.././/lib/Xau/libXau.a ../.././/lib/Xdmcp/libXdmcp.a ../.././/exports/lib/libfont.a  hw/vnc/libvnc.a ../.././/../libvncauth/libvncauth.a cfb/libcfb.a cfb16/libcfb.a cfb24/libcfb.a cfb32/libcfb.a mfb/libmfb.a dix/libxpstubs.a mi/libmi.a Xext/libext.a -lwrap -lnss_nis -lz -lm  -rdynamic -ldl -L/usr/local/lib -ljpeg -lz -Wl,-rpath-link,../.././/exports/lib
/usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.2/../../../../i586-pc-linux-gnu/bin/ld: cannot find -lnss_nis
collect2: ld returned 1 exit status
fileserver Xserver #


Whats wrongs with the nss_nis library, how can I fix this?
Back to top
View user's profile Send private message
dma
Guru
Guru


Joined: 31 Jan 2003
Posts: 437
Location: Charlotte, NC, USA

PostPosted: Sat May 03, 2003 3:53 am    Post subject: Reply with quote

It should be part of glibc!

Code:
root@laureate:~# qpkg -f /lib/libnss_nis.so.2
sys-libs/glibc *


Verify that you can see this:
Code:
root@laureate:~# /sbin/ldconfig -p | grep nss_nis
        libnss_nisplus.so.2 (libc6, OS ABI: Linux 2.4.0) => /lib/libnss_nisplus.so.2
        libnss_nisplus.so (libc6, OS ABI: Linux 2.4.0) => /usr/lib/libnss_nisplus.so
        libnss_nis.so.2 (libc6, OS ABI: Linux 2.4.0) => /lib/libnss_nis.so.2
        libnss_nis.so (libc6, OS ABI: Linux 2.4.0) => /usr/lib/libnss_nis.so


Here's the relevant part of the ebuild (for tightvnc):
Code:
src_compile() {
        xmkmf -a || die "xmkmf failed"

        make CDEBUGFLAGS="$CFLAGS" World || die "make World failed"
        cd Xvnc && ./configure || die "Configure failed."

        if use tcpd; then
                make EXTRA_LIBRARIES="-lwrap -lnss_nis" CDEBUGFLAGS="$CFLAGS" EXTRA_DEFINES="-DUSE_LIBWRAP=1"
        else
                make CDEBUGFLAGS="$CFLAGS"
        fi
}


So in theory you could disable tcpd support I suppose. But you SHOULD have these libraries.
Back to top
View user's profile Send private message
chris84ae
n00b
n00b


Joined: 19 Apr 2003
Posts: 40

PostPosted: Sat May 03, 2003 7:58 am    Post subject: Reply with quote

Code:
bash-2.05b# qpkg -f /lib/libnss_nis.so.2
sys-libs/glibc *         
bash-2.05b# /sbin/ldconfig -p | grep nss_nis
        libnss_nisplus.so.2 (libc6, OS ABI: Linux 2.4.0) => /lib/libnss_nisplus.so.2
        libnss_nis.so.2 (libc6, OS ABI: Linux 2.4.0) => /lib/libnss_nis.so.2
bash-2.05b#


appears to be no libnss_nis.so libraries
I did manage to compile Xvnc by removing the -lnss_nis but am not exactly sure what it does
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum