NetBSD Problem Report #34922

From www@NetBSD.org  Thu Oct 26 09:43:52 2006
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
	id 95D1263B9FB; Thu, 26 Oct 2006 09:43:52 +0000 (UTC)
Message-Id: <20061026094352.95D1263B9FB@narn.NetBSD.org>
Date: Thu, 26 Oct 2006 09:43:52 +0000 (UTC)
From: vs@iist.unu.edu
Reply-To: vs@iist.unu.edu
To: gnats-bugs@NetBSD.org
Subject: pkg: net/tightvnc not building on Solaris 10
X-Send-Pr-Version: www-1.0

>Number:         34922
>Category:       pkg
>Synopsis:       pkg: net/tightvnc not building on Solaris 10
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    solaris-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 26 09:45:00 +0000 2006
>Last-Modified:  Wed Jun 16 22:20:00 +0000 2021
>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)

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: snj@netbsd.org
Responsible-Changed-When: Mon, 30 Oct 2006 17:37:28 +0000
Responsible-Changed-Why:
Solaris-specific problem.


From: Aleksey Cheusov <cheusov@tut.by>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/34922 net/tightvnc not building on Solaris 10
Date: Sat, 17 Dec 2011 15:32:05 +0300

 With pkgsrc bootstrapped with gcc net/tightvnc fails like the following

    /opt/SUNWspro/bin/cc -xO3 -Xa    -I../.././ -I../.././/exports/include  -Dsun -DSVR4      -I/usr/include -I/usr/pkg/include -c  makestrs.c
    sh: /opt/SUNWspro/bin/cc: not found
    *** Error code 1
    make: Fatal error: Command failed for target `makestrs.o'
    Current working directory /tmp/obj_pkgsrc/net/tightvnc/work/vnc_unixsrc/Xvnc/config/util
    *** Error code 1

 The package completely ignores pkgsrc settings. It tries to use sunpro
 which is not installed on my system while pkgsrc was bootstrapped with gcc.
 What is the correct way to configure imake-based project for pkgsrc?
 Addition of

 	 #define CcCmd ${CC}

 to Xvnc/config/cf/site.def solves this immediate problem but I'm not
 sure this is the correct fix. I need a full list of variables to modify
 (CcCmd, DefaultCCOptions etc.).

 -- 
 Best regards, Aleksey Cheusov.

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/34922 net/tightvnc not building on Solaris 10
Date: Sun, 22 Jan 2012 17:05:14 +0000

 On Sat, Dec 17, 2011 at 12:35:02PM +0000, Aleksey Cheusov wrote:
  >  The package completely ignores pkgsrc settings. It tries to use sunpro
  >  which is not installed on my system while pkgsrc was bootstrapped with gcc.
  >  What is the correct way to configure imake-based project for pkgsrc?
  >  Addition of
  >  
  >  	 #define CcCmd ${CC}
  >  
  >  to Xvnc/config/cf/site.def solves this immediate problem but I'm not
  >  sure this is the correct fix. I need a full list of variables to modify
  >  (CcCmd, DefaultCCOptions etc.).

 If it really (still) ships its own copy of imake as the original PR
 says, the chances of it working are ... limited.

 Best bet is probably to try to get it to use pkgsrc imake, or patch it
 to rip out imake entirely.

 If it "just" wants to use some of its own imake templates, that's
 usually less of a problem; e.g. xview-config does this without
 (mostly) dying horribly.

 -- 
 David A. Holland
 dholland@netbsd.org

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/34922 net/tightvnc not building on Solaris 10
Date: Wed, 16 Jun 2021 22:16:13 +0000

 On Sun, Jan 22, 2012 at 05:10:05PM +0000, David Holland wrote:
  >  If it really (still) ships its own copy of imake as the original PR
  >  says, the chances of it working are ... limited.
  >  
  >  Best bet is probably to try to get it to use pkgsrc imake, or patch it
  >  to rip out imake entirely.

 As of 2021, tightvnc is in fact still shipping its own copy of imake
 and the imake templates, the latter being quite old even by imake
 standards and therefore quite broken.

 That it builds anywhere is a surprise. If anyone cares about making it
 build anywhere else, the first thing to do is forcibly delete the
 included imake and get it to use pkgsrc imake.

 -- 
 David A. Holland
 dholland@netbsd.org

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.