Subject: pkg/25895: www/amaya do not build on amd64
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <ole.hellqvist@spray.se>
List: pkgsrc-bugs
Date: 06/10/2004 21:19:22
>Number:         25895
>Category:       pkg
>Synopsis:       www/amaya do not build on amd64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 10 21:20:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Ole
>Release:        NetBSD 2.0F
>Organization:
home user
>Environment:
NetBSD amd64.oxen 2.0F NetBSD 2.0F (GENERIC) #0: Sat Jun  5 16:32:40 CEST 2004  ole@amd64.oxen:/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
Make stops with message below.
Strange thing is that it seems to find "build_done" although it runs into a compiling error. 

gmake[2]: Entering directory `/usr/pkgsrc/www/amaya/work/Amaya/work/thotlib'
g++ -O2 -Dunix -I/usr/pkg/include -I/usr/X11R6/include -I/usr/include -W -x c++ -D__cplusplus -D_UNIX  -D_GTK    -DHAVE_CONFIG_H -I.. -I../../amaya/xpm -I../../thotlib/include -I../../thotlib/internals/var -I../../thotlib/internals/h -I../../thotlib/internals/f    -I/usr/X11R6/include/gtk-1.2 -I/usr/pkg/include/glib/glib-1.2 -I/usr/pkg/lib/glib/include -I/usr/X11R6/include    -I/usr/X11R6/include  -c ../../thotlib/presentation/presvariables.c -o presentation/presvariables.o
../../thotlib/presentation/presvariables.c: In function `ThotBool 
   NewVariable(int, _StructSchema*, _PresentSchema*, _AbstractBox*, 
   _AttributeBlock*, _DocumentDescr*)':
../../thotlib/presentation/presvariables.c:1064: error: cannot convert `long 
   int*' to `const time_t*' for argument `1' to `tm* localtime(const time_t*)'
../../thotlib/presentation/presvariables.c:1084: error: cannot convert `long 
   int*' to `const time_t*' for argument `1' to `tm* localtime(const time_t*)'
gmake[2]: *** [presentation/presvariables.o] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/www/amaya/work/Amaya/work/thotlib'
gmake[1]: *** [../thotlib/libThotEditor.a] Error 2
gmake[1]: Leaving directory `/usr/pkgsrc/www/amaya/work/Amaya/work/amaya'
=> Fixing buildlink references in files-to-be-installed.
amd64: {388} ll work
total 1212
-rw-r--r--   1 ole  wheel       0 Jun 10 23:07 .build_done
drwxr-xr-x   7 ole  wheel    1024 Jun 10 23:04 .buildlink
-rw-r--r--   1 ole  wheel       0 Jun 10 23:04 .buildlink_done
-rw-r--r--   1 ole  wheel       0 Jun 10 23:04 .configure_done
-rw-r--r--   1 ole  wheel      10 Jun 10 23:04 .extract_done
drwxr-xr-x   3 ole  wheel     512 Jun 10 23:04 .gcc
-rw-r--r--   1 ole  wheel       0 Jun 10 23:04 .patch_done
-rw-r--r--   1 ole  wheel       0 Jun 10 23:07 .subst_unbuildlink_done
drwxr-xr-x   3 ole  wheel     512 Jun 10 23:04 .tools
-rw-r--r--   1 ole  wheel       0 Jun 10 23:04 .tools_done
-rw-r--r--   1 ole  wheel  601969 Jun 10 23:07 .work.log
lrwxr-xr-x   1 ole  wheel      37 Jun 10 23:04 .x11-buildlink -> /usr/pkgsrc/www/amaya/work/.buildlink
drwxr-xr-x  21 ole  wheel    1024 Jun 10 23:04 Amaya
drwxr-xr-x   5 ole  wheel     512 Jun 10 23:04 libwww

>How-To-Repeat:
cd /usr/pkgsrc/www/amaya
make
>Fix:
--- ../thotlib/presentation/presvariables.c.orig        2004-01-29 17:06:46.000000000 +0100
+++ ../thotlib/presentation/presvariables.c     2004-06-09 13:03:49.000000000 +0200
@@ -909,8 +909,8 @@
 {
    int                 f, l;
    int                 i;
-   long                tod;
-   long               *pt;
+   time_t              tod;
+   time_t             *pt;
    struct tm          *ptm;
    PtrTextBuffer       isOld, isNew;
    PtrAttribute        pA;

>Release-Note:
>Audit-Trail:
>Unformatted: