HI,

I am still doing my homework building SER on RH/Fedora versions. I have a problem with avpops source from CVS head this morning 21 Apr 2008. I have had this issue on several prior builds from
CVS head.  I usually just skip over these modules.

I tried on on several RH/Fedora versions with the same results. Therefore, I assume it *may* be source code specific and not gcc version specific issue. Rather than hacking the source
modules, can some kind person give me any suggestions or pointers?

If avpops use has been deprecated or just not complete for 2.1.x I will just ignore it again.

Regards,  ..mike..

DETAILS BELOW:
----------------------------------------------------------------------------------------------------------------


HERE is the compiler version I am using.

[EMAIL PROTECTED] sip_router]# gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20070502 (Red Hat 4.1.2-12)


HERE is the actual compile statement for avpops_db.c which points to an issue with avpops_db.h.

make[1]: Entering directory `/usr/local/src/sip_router/modules/avpops'
gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -minline-all-stringops -falign-loops -ftree-vectorize -mtune=athlon64 -Wall -DNAME='"ser"' -DVERSION='"2.1.0-dev18-tcp"' -DARCH='"i386"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.1.2"' -D__CPU_i386 -D__OS_linux -DSER_VER=2001000 -DCFG_DIR='"/tmp/ser/etc/ser/"' -DMODS_DIR='"/tmp/ser/lib/ser/modules/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DUSE_TLS -DTLS_HOOKS -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT -c avpops.c -o avpops.o
In file included from avpops_impl.h:41,
                 from avpops_parse.h:38,
                 from avpops.c:50:
avpops_db.h:66: error: expected â)â before â*â token
make[1]: *** [avpops.o] Error 1
make[1]: Leaving directory `/usr/local/src/sip_router/modules/avpops'
make: *** [modules] Error 1


HERE ARE THE LINES from avpops_db.h (with the lines before and after the error line)

void db_close_query( db_res_t *res );

int db_store_avp( db_key_t *keys, db_val_t *vals, int n, char *table);

int db_delete_avp( str *uuid, str *username, str *domain, char *attr, char *table);

####  ONE CLUE THAT MAY BE HELPFUL ####
I cannot find a definition for   db_key_t  in the source from CVS head.
But in earlier versions it was defined as  typedef const char* db_key_t;


_______________________________________________
Serdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/serdev

Reply via email to