pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/44584: comms/zaptel-netbsd from pkgsrc2010Q4 does not compile on amd64



>Number:         44584
>Category:       pkg
>Synopsis:       comms/zaptel-netbsd from pkgsrc2010Q4 does not compile on amd64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 16 14:15:00 +0000 2011
>Originator:     Dr. W. Stukenbrock
>Release:        NetBSD 4.0
>Organization:
Dr. Nagler & Company GmbH
>Environment:
        
        
System: NetBSD test-s0 4.0 NetBSD 4.0 (NSW-WS) #0: Tue Aug 17 17:28:09 CEST 
2010 wgstuken@test-s0:/usr/src/sys/arch/amd64/compile/NSW-WS amd64
Architecture: x86_64
Machine: amd64
>Description:
        When compiling comms/zaptel-netbsd on a amd64 system the following 
error messages caame up:
#   compile  zaptel/zaptel.o
cc -O2 -I/usr/pkg/include -g  -Werror  -ffreestanding  -fno-strict-aliasing 
-Wno-pointer-sign -mcmodel=kernel -I/usr/pkg/include  -nostdinc -I. 
-I/usr/pkgsrc-2010Q4/comms/zaptel-netbsd/work/zaptel-netbsd-20060127/zaptel 
-isystem /usr/src/sys -isystem /usr/src/sys/arch -isystem 
/usr/src/sys/../common/include -D_KERNEL -D_LKM -c    zaptel.c
In file included from zaptel.h:328,
                 from zaptel.c:134:
mec2.h: In function 'init_cc':
mec2.h:110: error: invalid lvalue in assignment
mec2.h:122: error: invalid lvalue in assignment
mec2.h:124: error: invalid lvalue in assignment
mec2.h:128: error: invalid lvalue in assignment
mec2.h:132: error: invalid lvalue in assignment
mec2.h:135: error: invalid lvalue in assignment
zaptel.c: In function 'zaptelattach':
zaptel.c:201: error: invalid storage class for function 'zt_initfiles'
cc1: warnings being treated as errors
zaptel.c: At top level:
zaptel.c:336: warning: initialization from incompatible pointer type
zaptel.c:337: warning: initialization from incompatible pointer type
zaptel.c: In function 'zt_clone':
zaptel.c:1964: warning: passing argument 1 of 'falloc' from incompatible 
pointer type
zaptel.c: In function 'ioctl_load_zone':
zaptel.c:2645: warning: cast to pointer from integer of different size
zaptel.c: In function 'zt_common_ioctl':
zaptel.c:3383: warning: cast from pointer to integer of different size
zaptel.c:3383: warning: cast from pointer to integer of different size
zaptel.c:3385: warning: cast from pointer to integer of different size
zaptel.c:3385: warning: cast from pointer to integer of different size
zaptel.c:3387: warning: cast from pointer to integer of different size
zaptel.c:3395: warning: cast from pointer to integer of different size
zaptel.c:3395: warning: cast from pointer to integer of different size
zaptel.c:3402: warning: cast from pointer to integer of different size
zaptel.c:3402: warning: cast from pointer to integer of different size
zaptel.c: In function 'zt_fcntl':
zaptel.c:4750: warning: cast from pointer to integer of different size
*** Error code 1

        In mec2.h line 100 "(u_char *)ptr += sizeof(echo_can_state_t);" seems 
to be
        the problem.
        in zaptel.c line 201 there is a "static int zt_initfiles();" inside the 
function body
        of zaptelattach().
        in zaptel.c line 2645 there is a cast from "unsigned long data" - 
parameter of the function
        ioctl_load_zone() - to caddr_t for copyin(). This looks like the 
unsigned long is used
        for a real pointer ...

        The other pointer to integer problem seems to be only in print 
statements - not optimal, but will
        blow up the software.
        The cast in zaptel.c line 4750 (pointer to integer) for flag 
assignement would also not break the
        application.

        It looks like this version is written for an older/other version of gcc 
and is not 64-bit
        clean.

        I'm looking for a (analog/isdn)-telefon-voip coupling sollution and I 
would like to test
        (the of cause old version 1.2 of) asterik. There I've stumbled over 
this problem.
>How-To-Repeat:
        Just try to compile this package on amd64 ...
>Fix:
        Not known - no time to go deeper into that - sorry.

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index