Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65797 - nxproxy-1.4.0 fails with: Main.c:28:16: NX.h: No such file or directory
Summary: nxproxy-1.4.0 fails with: Main.c:28:16: NX.h: No such file or directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Stuart Herbert (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-29 04:48 UTC by Paul Hannah
Modified: 2006-03-30 00:20 UTC (History)
0 users

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


Attachments
working ebuild (nxproxy-1.4.0.ebuild,1.16 KB, text/plain)
2004-12-10 07:46 UTC, Paul Hannah
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Hannah 2004-09-29 04:48:43 UTC
Trace:

Calculating world dependencies ...done!
>>> emerge (1 of 2) net-misc/nxproxy-1.4.0 to /
>>> md5 src_uri ;-) nxproxy-1.4.0-2.tar.gz
>>> Unpacking source...
>>> Unpacking nxproxy-1.4.0-2.tar.gz to /var/tmp/portage/nxproxy-1.4.0/work
>>> Source unpacked.
checking for C++ compiler default output... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /bin/install -c
checking how to run the C++ preprocessor... g++ -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for FreeBSD environment... no
checking for Cygwin32 environment... no
checking for Darwin environment... no
checking for SunOS environment... no
compiling version 1.4.0
disabling production of debug symbols
disabling info output in the log file
disabling valgrind memory checker workarounds
configure: creating ./config.status
config.status: creating Makefile
if [ -x /usr/X11R6/bin/makedepend ] ; then \
                /usr/X11R6/bin/makedepend -I. -I../nxcomp -I. -I../nxcomp \
                        -I/usr/include/g++ -I/usr/include/g++-3  -f Makefile Main.c   2>/dev/null; \
        fi
gcc -c -O3 -DVERSION=\"1.4.0\"  -I/usr/X11R6/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -I. -I../nxcomp  Main.c
touch depend.status
Main.c:28:16: NX.h: No such file or directory
Main.c: In function `main':
Main.c:183: error: `NX_FD_ANY' undeclared (first use in this function)
Main.c:183: error: (Each undeclared identifier is reported only once
Main.c:183: error: for each function it appears in.)
Main.c:183: error: `NX_MODE_ANY' undeclared (first use in this function)
Main.c:183: error: `NX_DISPLAY_ANY' undeclared (first use in this function)
make: *** [Main.o] Error 1

!!! ERROR: net-misc/nxproxy-1.4.0 failed.
!!! Function src_compile, Line 27, Exitcode 2
!!! compile problem
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1. emerge nxproxy-1.3.0
2.
3.

Actual Results:  
 

Expected Results:  
nxproxy installed. 

Portage 2.0.51_rc6 (default-x86-1.4, gcc-3.4.2, glibc-2.3.4.20040808-r0, 
2.6.8-gentoo-r4 i686) 
================================================================= 
System uname: 2.6.8-gentoo-r4 i686 AMD Athlon(tm) XP 2000+ 
Gentoo Base System version 1.5.3 
Autoconf: sys-devel/autoconf-2.59-r4 
Automake: sys-devel/automake-1.8.5-r1 
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 
Headers:  sys-kernel/linux-headers-2.4.22,sys-kernel/linux-headers-2.4.19-r1 
Libtools: sys-devel/libtool-1.5.2-r5 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-mtune=athlon-xp -O3 -pipe" 
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.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /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" 
CXXFLAGS="-mtune=athlon-xp -O3 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache distlocks sandbox" 
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ 
http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ 
ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ 
ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo 
http://ftp6.uni-erlangen.de/pub/mirrors/gentoo 
ftp://ftp.ipv6.uni-muenster.de/pub/linux/distributions/gentoo 
http://gentoo.mirror.sdv.fr http://ftp.easynet.nl/mirror/gentoo/ 
http://gentoo.tiscali.nl/gentoo/ http://gentoo.gg3.net/ 
http://gentoo.ynet.sk/pub http://gentoo.math.bme.hu 
http://mirror.switch.ch/mirror/gentoo/ 
http://www.zentek-international.com/mirrors/gentoo/ 
http://www.gigaload.org/gentoo.org/ 
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="3dfx 3dnow 3dnowex X Xaw3d activefilter alsa apache2 apm arts 
artswrappersuid atm avi bdf berkdb bitmap-fonts bootsplash cdparanoia cdr 
cpdflib crypt cups dba dga dhcp divx4linux doc dvb dvddvdr dvdread edl encode 
esd f77 flac flash foomaticdb gcj gd gdbm geoip gif gnome gphoto2 gpm graphviz 
gstreamer gtk gtk2 guile imagemagick imlib ipv6 jabber java javamail javascript 
jbig jikes jit jpeg kde kerberos krb4 lcms ldap libcaca libg++ libwww live lzo 
mad makecheck matroska mbox mikmod mmx mmx2 motif mozcalendar mozilla mozsvg 
mpeg mppe-m mysql nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses network 
nls nvidia oav oggvorbis opengl oss pam pdflib perl php png postgres python qt 
quicktime readline rtc ruby samba sasl scanner sdl slang slp snmp socks5 spell 
sse sse2 ssl svg svga tcltk tcpd tetex tga theora tiff truetype unicode usb v4l 
v4l2 wmf x86 xml xml2 xmms xprint xv xvid xvmc zlib"
Comment 1 Paul Hannah 2004-12-10 07:32:21 UTC
Same problem here, fixed easily by copying the nxcomp dir (containing NX.h) into the nxproxy parent dir before that line is reached. (see -I../nxcomp)

I have no idea though how to make an ebuild do this sorry, but it wants to expand the nxcomp source into that nxcomp dir before starting the build.
Comment 2 Paul Hannah 2004-12-10 07:46:52 UTC
Created attachment 45683 [details]
working ebuild

I've had a go at creating a working ebuild, using the nx-x11 one as an example.
 

Please be aware that I've never made one of these in my life, so someone look
it over well before it moves on.
Comment 3 Michael Imhof (RETIRED) gentoo-dev 2004-12-10 15:34:22 UTC
thanks for your submission.
Comment 4 Leo 2006-03-30 00:20:55 UTC
(In reply to comment #2)
> Created an attachment (id=45683) [edit]
> working ebuild
> 
> I've had a go at creating a working ebuild, using the nx-x11 one as an example.
>  
> 
> Please be aware that I've never made one of these in my life, so someone look
> it over well before it moves on.
Just a feedback... it compiles! ... now I will see about of the nx suite :-)