Subject: pkg/34922: pkg: net/tightvnc not building on Solaris 10
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <vs@iist.unu.edu>
List: pkgsrc-bugs
Date: 10/26/2006 09:45:00
>Number:         34922
>Category:       pkg
>Synopsis:       pkg: net/tightvnc not building on Solaris 10
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 26 09:45:00 +0000 2006
>Originator:     Volker Stolz
>Release:        n/a
>Organization:
UNU-IIST
>Environment:
Solaris 10 i386
>Description:
tightvnc ships it's own set of config/cf and imake/makedepend. Even when I use symlinked version of them from /usr/openwin, the build process seems to be terminally confused about the platform it's building on ("forgets" to include unistd.h, sys/utsname.h etc.)

(cd Xvnc && ./configure && make)
mv -f Makefile Makefile.bak
imake -I../..//config/cf -DTOPDIR=../../ -DCURDIR=.
gcc -fpcc-struct-return DefaultGcc2i386Opt   -I../..//include -I../..//exports/include/X11  -I../../ -I../..//exports/include  -DNOSTDHDRS      -DNOSTDHDRS -DCPP_PROGRAM="\"/lib/cpp\"" -I/usr/pkg/include -c
 imake.c
gcc: DefaultGcc2i386Opt: No such file or directory
imake.c:232: warning: conflicting types for built-in function 'malloc'
imake.c: In function `FindImakefile':
imake.c:605: error: `R_OK' undeclared (first use in this function)
imake.c:605: error: (Each undeclared identifier is reported only once
imake.c:605: error: for each function it appears in.)
imake.c: In function `CheckImakefileC':
imake.c:677: error: `F_OK' undeclared (first use in this function)
imake.c: In function `optional_include':
imake.c:705: error: `R_OK' undeclared (first use in this function)
imake.c: In function `doit':
imake.c:720: error: storage size of 'status' isn't known
*** Error code 1
make: Fatal error: Command failed for target `imake.o'
Current working directory /export/home/pkgsrc/net/tightvnc/work/vnc_unixsrc/Xvnc/config/imake

>How-To-Repeat:
Build net/tightvnc from pkgsrc on Solaris 10.
>Fix:
Outside of pkgsrc PATH=/usr/openwin/bin:$PATH ./configure and make work fine (yeah, not a great help I guess)