[asterisk-bugs] [Asterisk 0014129]: [patch] FreeBSD asterisk compilation fail..

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Jan 13 16:50:12 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14129 
====================================================================== 
Reported By:                ys
Assigned To:                mvanbaak
====================================================================== 
Project:                    Asterisk
Issue ID:                   14129
Category:                   Core/BuildSystem
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 166566 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-12-23 06:25 CST
Last Modified:              2009-01-13 16:50 CST
====================================================================== 
Summary:                    [patch] FreeBSD asterisk compilation fail..
Description: 
Hello.

When I complie current asterisk trunk (r166566), i got an error:

gmake[1]: Entering directory `/usr/home/asterisk/src/asterisk/main'
gcc -o asterisk.i -E asterisk.c -D_THREAD_SAFE -pthread
-I/usr/home/asterisk/src/asterisk/include  -I/usr/local/include/libxml2
-I/usr/local/include -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -g3 -Werror -Wunused -Wdeclaration-after-statement
-D_FORTIFY_SOURCE=2 -Wundef  -Wmissing-format-attribute -Wformat=2
-I/usr/local/include -march=i386   -MD -MT asterisk.i -MF .asterisk.i.d
-MP
asterisk.c:84:22: sys/swap.h: No such file or directory
gmake[1]: *** [asterisk.i] Error 1
gmake[1]: Leaving directory `/usr/home/asterisk/src/asterisk/main'
gmake: *** [main] Error 2


If, i remove include "sys/swap.h", i got this error:

asterisk.c: In function `handle_show_sysinfo':
asterisk.c:568: error: storage size of 'vmtotal' isn't known
asterisk.c:584: error: `HW_PHYSMEM64' undeclared (first use in this
function)
asterisk.c:584: error: (Each undeclared identifier is reported only once
asterisk.c:584: error: for each function it appears in.)
asterisk.c:600: error: `VM_METER' undeclared (first use in this function)
asterisk.c:609: error: `KERN_NPROCS' undeclared (first use in this
function)
asterisk.c:568: warning: unused variable `vmtotal'

====================================================================== 

---------------------------------------------------------------------- 
 (0097667) mvanbaak (manager) - 2009-01-13 16:50
 http://bugs.digium.com/view.php?id=14129#c97667 
---------------------------------------------------------------------- 
ok, got a freebsd vm setup wih latest 7.1 setup

   [CC] asterisk.c -> asterisk.o
asterisk.c: In function 'handle_show_sysinfo':
asterisk.c:568: error: storage size of 'vmtotal' isn't known
asterisk.c:584: error: 'HW_PHYSMEM64' undeclared (first use in this
function)
asterisk.c:584: error: (Each undeclared identifier is reported only once
asterisk.c:584: error: for each function it appears in.)
asterisk.c:600: error: 'VM_METER' undeclared (first use in this function)
asterisk.c:609: error: 'KERN_NPROCS' undeclared (first use in this
function)
cc1: warnings being treated as errors
asterisk.c:568: warning: unused variable 'vmtotal'
asterisk.c: In function 'read_credentials':
asterisk.c:1154: warning: pointer targets in passing argument 2 of
'getpeereid' differ in signedness
asterisk.c:1154: warning: pointer targets in passing argument 3 of
'getpeereid' differ in signedness
gmake[1]: *** [asterisk.o] Error 1
gmake: *** [main] Error 2

I'm going to look into this. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-13 16:50 mvanbaak       Note Added: 0097667                          
======================================================================




More information about the asterisk-bugs mailing list