[JDEV] building on solaris, porting question

Nicholas Blair nblair at doit.wisc.edu
Wed Dec 11 10:24:16 CST 2002


I don't know if anyone has experience with this, but I am building
jabber-1.4.2 on a solaris 8 machine using the latest Forte 7 compilers
(cc) and GNU-make. It will not build right off the bat, so I'm on the
job of porting.

This is what I've modified the platform-settings file to look like:

#!/bin/sh
CC=/opt/SUNWspro/bin/cc
CFLAGS= -I. -I..
-I/export/home/nblair/jabbert/jabber-1.4.2/jabberd/pth-1.4.0 -KPIC
-D_REENTRANT
CCFLAGS= -I. -I..
-I/export/home/nblair/jabbert/jabber-1.4.2/jabberd/pth-1.4.0 -KPIC
-D_REENTRANT
#MCFLAGS= -shared
MCFLAGS= -G
LDFLAGS=
LIBS= -ldl -lsocket -lnsl -lresolv
SLIBS= /usr/lib/libresolv.a
XLDFLAGS=
PSUBDIR=pth-1.4.0
PLINK=/export/home/nblair/jabbert/jabber-1.4.2/jabberd/pth-1.4.0/pth_*.o
JHOME=/export/home/nblair/jabbert/jabber-1.4.2
__CYGWIN__=


Pthsock and xdb_file directories build (with a few warnings, but nothing
too serious).
When it gets to dnsrv, this is the error I get:
gmake[1]: Entering directory
`/export/home/nblair/jabbert/jabber-1.4.2/dnsrv'
/opt/SUNWspro/bin/cc -I. -I..
-I/export/home/nblair/jabbert/jabber-1.4.2/jabberd/pth-1.4.0 -KPIC
-D_REENTRANT -I../jabberd/   -c -o dnsrv.o dnsrv.c
"dnsrv.c", line 228: syntax error before or at: {
"dnsrv.c", line 536: warning: argument #2 is incompatible with
prototype:
        prototype: pointer to function(pointer to void) returning
pointer to void :
"/export/home/nblair/jabbert/jabber-1.4.2/jabberd/pth-1.4.0/pth.h", line
392
        argument : pointer to void
cc: acomp failed for dnsrv.c
gmake[1]: *** [dnsrv.o] Error 2
gmake[1]: Leaving directory
`/export/home/nblair/jabbert/jabber-1.4.2/dnsrv'
gmake: *** [all-recursive] Error 1

The syntax error on line 228 is what is bothering me.
Can anyone see what is wrong with this line:
	jutil_error(pkt, (terror){502, "Unable to resolve hostname."});

Any ideas?

Thanks,
Nicholas Blair
nblair at doit.wisc.edu




More information about the JDev mailing list