[Asterisk-Dev] FreeBSD compile problems (even with new changes)
Karl Brose
khb at brose.com
Thu May 13 15:19:50 MST 2004
The db1 code is now very old. with RH9 /gcc 3.3.2 is compiles still
without warnings.
with gcc 3.4.0 you get the same warnings at 111-185, but they can be ignored
The rest seem to be porting problems.
Is the btree code even used in Asterisk? perhaps just provide dummy
pointers to those routines and discard what's broken. Or you might be
able to replace this with db4 which is supposed to be compatible with
the v1 interface.
This probably didn't help much.
John Todd wrote:
> I see recent CVS updates in the last few hours that say "fix FreeBSD
> compile" but I'm still having problems with an extremely generic
> (totally generic, actually) FreeBSD 5.2.1 version. Any pointers from
> anyone? I have the Zaptel driver compiling (yaaaay!) but Asterisk
> doesn't compile, so my BSD testing is stalled.
>
> JT
>
>
>
> [lots of other stuff up here...]
> gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ihash -o
> hash_log2.o hash/hash_log2.c
> gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ihash -o
> hash_page.o hash/hash_page.c
> gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ihash -o
> ndbm.o hash/ndbm.c
> hash/ndbm.c: In function `dbm_fetch':
> hash/ndbm.c:111: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> hash/ndbm.c:111: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> hash/ndbm.c: In function `dbm_firstkey':
> hash/ndbm.c:131: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> hash/ndbm.c:131: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> hash/ndbm.c: In function `dbm_nextkey':
> hash/ndbm.c:149: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> hash/ndbm.c:149: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> hash/ndbm.c: In function `dbm_delete':
> hash/ndbm.c:166: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> hash/ndbm.c: In function `dbm_store':
> hash/ndbm.c:185: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> hash/ndbm.c:185: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> gcc -Wall -c -D__DBINTERFACE_PRIVATE -O2 -I. -Iinclude -Ibtree -o
> bt_close.o btree/bt_close.c
> In file included from btree/btree.h:44,
> from btree/bt_close.c:50:
> include/mpool.h:53: error: syntax error before "CIRCLEQ_ENTRY"
> include/mpool.h:64: error: syntax error before "CIRCLEQ_HEAD"
> gmake[1]: *** [bt_close.o] Error 1
> gmake[1]: Leaving directory `/usr/home/jtodd/asterisk/db1-ast'
> gmake: *** [db1-ast/libdb1.a] Error 2
> wheebsd# uname -a
> FreeBSD wheebsd.fox-den.com 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0:
> Mon Feb 23 20:45:55 GMT 2004
> root at wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386
> wheebsd#
>
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
>
More information about the asterisk-dev
mailing list