gcc -shared -Xlinker -x -o chan_mgcp.so chan_mgcp.o gcc -g -O2 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -march=i686 -DZAPTEL_OPTIMIZATIONS -fomit-frame-pointer -Wno-missing-prototypes -Wno-missing-declarations -DZAPATA_PRI -DIAX_TRUNKING -DCRYPTO -fPIC -c -o chan_iax2.o chan_iax2.c gcc -g -O2 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -march=i686 -DZAPTEL_OPTIMIZATIONS -fomit-frame-pointer -Wno-missing-prototypes -Wno-missing-declarations -DZAPATA_PRI -DIAX_TRUNKING -DCRYPTO -fPIC -c -o iax2-parser.o iax2-parser.c gcc -g -O2 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -march=i686 -DZAPTEL_OPTIMIZATIONS -fomit-frame-pointer -Wno-missing-prototypes -Wno-missing-declarations -DZAPATA_PRI -DIAX_TRUNKING -DCRYPTO -fPIC -c -o iax2-provision.o iax2-provision.c In file included from ../include/openpbx/cli.h:31, from iax2-provision.c:31: ../include/openpbx/time.h: In function `opbx_tvnow': ../include/openpbx/time.h:99: error: `NULL' undeclared (first use in this function) ../include/openpbx/time.h:99: error: (Each undeclared identifier is reported only once ../include/openpbx/time.h:99: error: for each function it appears in.) make[1]: *** [iax2-provision.o] Error 1 make[1]: Leaving directory `/code/trunk-w/channels' make: *** [subdirs] Error 1 [root@localhost trunk-w]# */ OPBX_INLINE_API( struct timeval opbx_tvnow(void), { struct timeval t; gettimeofday(&t, NULL); return t; } )