Hi, I'm no FreeBSD-ers, just trying to help. Could you try this, put: #include <netinet/in_systm.h> right before #include <netinet/ip.h> in pjlib/include/pj/compat/socket.h and see if it compiles. Regards, nanang 2008/8/4 Stephen D. Strowes <stephen.strowes at nokia.com>: > Hi, > > I'm attempting to compile pjproject-0.9.0 on a FreeBSD box (7.0-STABLE); > on running ./configure, I get the following warnings: > > [...] > checking netinet/in.h usability... yes > checking netinet/in.h presence... yes > checking for netinet/in.h... yes > checking netinet/ip.h usability... no > checking netinet/ip.h presence... yes > aconfigure: WARNING: netinet/ip.h: present but cannot be compiled > aconfigure: WARNING: netinet/ip.h: check for missing prerequisite headers? > aconfigure: WARNING: netinet/ip.h: see the Autoconf documentation > aconfigure: WARNING: netinet/ip.h: section "Present But Cannot Be Compiled" > aconfigure: WARNING: netinet/ip.h: proceeding with the preprocessor's result > aconfigure: WARNING: netinet/ip.h: in the future, the compiler will take precedence > aconfigure: WARNING: ## ------------------------------------ ## > aconfigure: WARNING: ## Report this to the pjproject lists. ## > aconfigure: WARNING: ## ------------------------------------ ## > checking for netinet/ip.h... yes > [...] > > > I didn't notice it initially, and went ahead to do a gmake dep then > gmake. "gmake dep" runs just fine, but gmake fails with the following > errors: > > gcc -c -Wall -DPJ_AUTOCONF=1 -O2 -I../include \ > -o output/pjlib-i386-unknown-freebsd7.0/ioqueue_select.o \ > ../src/pj/ioqueue_select.c > In file included from ../include/pj/compat/socket.h:96, > from ../src/pj/ioqueue_select.c:37: > /usr/include/netinet/ip.h:162: error: expected specifier-qualifier-list before 'n_long' > gmake[2]: *** [output/pjlib-i386-unknown-freebsd7.0/ioqueue_select.o] Error 1 > gmake[2]: Leaving directory `/usr/home/strowes/pjproject-0.9.0/pjlib/build' > gmake[1]: *** [pjlib] Error 2 > gmake[1]: Leaving directory `/usr/home/strowes/pjproject-0.9.0/pjlib/build' > gmake: *** [all] Error 1 > > > I'm no FreeBSD guru, so pointers to a fix here would be appreciated... > > > Cheers, > -S. > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >