NetBSD Problem Report #45691

From oster@mickey.localdomain  Mon Dec  5 19:49:17 2011
Return-Path: <oster@mickey.localdomain>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 14F1F63DAAF
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  5 Dec 2011 19:49:17 +0000 (UTC)
From: oster@netbsd.org
Reply-To: oster@netbsd.org
To: gnats-bugs@gnats.NetBSD.org
Subject: textproc/libplist fails to build
X-Send-Pr-Version: 3.95

>Number:         45691
>Category:       pkg
>Synopsis:       textproc/libplist fails to build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    shattered
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 06 21:28:27 +0000 2011
>Closed-Date:    Mon Mar 05 14:08:34 +0000 2012
>Last-Modified:  Sun Dec 09 19:10:05 +0000 2012
>Originator:     Greg Oster
>Release:        NetBSD 5.1
>Organization:
>Environment:
System: NetBSD mickey 5.1 NetBSD 5.1 (MICKEY) #0: Sun Nov 7 08:21:58 CST 2010 oster@quad:/u1/builds/build184/src/obj/amd64/u1/builds/build184/src/sys/arch/amd64/compile/MICKEY amd64
Architecture: x86_64
Machine: amd64
>Description:
Message-Id: <20111205194915.3AA4E88AF7@mickey.localdomain>
Date: Mon,  5 Dec 2011 13:49:15 -0600 (CST)
Content-Length: 1236
Lines: 39

	libplist fails to build as follows:
...
[ 94%] Swig source
Scanning dependencies of target _plist
[100%] Building CXX object swig/CMakeFiles/_plist.dir/plistPYTHON_wrap.cxx.o
/usr/pkgsrc/textproc/libplist/work.mickey/libplist-1.4/swig/plistPYTHON_wrap.cxx: In function 'PyObject* _wrap_Date_get_value(PyObject*, PyObject*)':
/usr/pkgsrc/textproc/libplist/work.mickey/libplist-1.4/swig/plistPYTHON_wrap.cxx:9095: error: cannot convert 'long int*' to 'const time_t*' for argument '1' to 'tm* gmtime(const time_t*)'
--- swig/CMakeFiles/_plist.dir/plistPYTHON_wrap.cxx.o ---
*** [swig/CMakeFiles/_plist.dir/plistPYTHON_wrap.cxx.o] Error code 1
1 error

make: stopped in /usr/pkgsrc/textproc/libplist/work.mickey/libplist-1.4
--- swig/CMakeFiles/_plist.dir/all ---
*** [swig/CMakeFiles/_plist.dir/all] Error code 2
1 error

make: stopped in /usr/pkgsrc/textproc/libplist/work.mickey/libplist-1.4
--- all ---
*** [all] Error code 2
1 error

make: stopped in /usr/pkgsrc/textproc/libplist/work.mickey/libplist-1.4
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/textproc/libplist
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/textproc/libplist


>How-To-Repeat:

	cd /usr/pkgsrc/textproc/libplist
	make install

>Fix:
	Please :) 

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->shattered
Responsible-Changed-By: shattered@NetBSD.org
Responsible-Changed-When: Thu, 29 Dec 2011 10:54:49 +0000
Responsible-Changed-Why:
I'll handle this.


From: "Sergey Svishchev" <shattered@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45691 CVS commit: pkgsrc/textproc/libplist
Date: Sun, 1 Jan 2012 14:39:33 +0000

 Module Name:	pkgsrc
 Committed By:	shattered
 Date:		Sun Jan  1 14:39:33 UTC 2012

 Modified Files:
 	pkgsrc/textproc/libplist: Makefile distinfo
 Added Files:
 	pkgsrc/textproc/libplist/patches: patch-swig_plist.i

 Log Message:
 Fix build on 5.1/amd64 (PR 45691) -- cast long tv_sec to time_t.  Not
 a problem in -current, where tv_sec is time_t.


 To generate a diff of this commit:
 cvs rdiff -u -r1.2 -r1.3 pkgsrc/textproc/libplist/Makefile \
     pkgsrc/textproc/libplist/distinfo
 cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/libplist/patches/patch-swig_plist.i

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: shattered@NetBSD.org
State-Changed-When: Mon, 05 Mar 2012 14:08:34 +0000
State-Changed-Why:
Fix committed.


From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: PR/45691 CVS commit: pkgsrc/textproc/libplist
Date: Mon, 5 Mar 2012 17:36:52 +0000

 On Sun, Jan 01, 2012 at 02:40:03PM +0000, Sergey Svishchev wrote:
  >  Module Name:	pkgsrc
  >  Committed By:	shattered
  >  Date:		Sun Jan  1 14:39:33 UTC 2012
  >  
  >  Modified Files:
  >  	pkgsrc/textproc/libplist: Makefile distinfo
  >  Added Files:
  >  	pkgsrc/textproc/libplist/patches: patch-swig_plist.i
  >  
  >  Log Message:
  >  Fix build on 5.1/amd64 (PR 45691) -- cast long tv_sec to time_t.  Not
  >  a problem in -current, where tv_sec is time_t.

  > +-    struct tm* t = gmtime ( &$1.tv_sec );
  > ++    struct tm* t = gmtime ( (time_t*)&$1.tv_sec );

 That is not correct; you're trying to change the size of the integer
 the pointer points to.

 -- 
 David A. Holland
 dholland@netbsd.org

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: PR/45691 CVS commit: pkgsrc/textproc/libplist
Date: Sun, 9 Dec 2012 19:06:50 +0000

 On Mon, Mar 05, 2012 at 05:40:06PM +0000, David Holland wrote:
  >   >  Log Message:
  >   >  Fix build on 5.1/amd64 (PR 45691) -- cast long tv_sec to time_t.  Not
  >   >  a problem in -current, where tv_sec is time_t.
  >  
  >   > +-    struct tm* t = gmtime ( &$1.tv_sec );
  >   > ++    struct tm* t = gmtime ( (time_t*)&$1.tv_sec );
  >  
  >  That is not correct; you're trying to change the size of the integer
  >  the pointer points to.

 For the record, I fixed this later on.

 -- 
 David A. Holland
 dholland@netbsd.org

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.