[Xastir] Compile error on OS X

Jeff Wigal jeffw at wigaldesign.com
Wed Jan 19 18:07:58 EST 2005


Still would not compile...  edited version below... full version at

www.wigaldesign.com/xastir3.txt 



Last login: Wed Jan 19 17:50:47 on console
Welcome to Darwin!
[Eleanor-Ois-Computer:~] jeff% cd xastir
[Eleanor-Ois-Computer:~/xastir] jeff% setenv CFLAGS -D_BSD_SOCKLEN_T=int
[Eleanor-Ois-Computer:~/xastir] jeff% ./configure

g for runpath switch... none
checking if db.h is exists and is usable... no
checking for Magick-config... yes
checking magick/api.h usability... yes
checking magick/api.h presence... yes
checking for magick/api.h... yes
checking for WriteImage in -lMagick... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating callpass/Makefile
config.status: creating config/Makefile
config.status: creating help/Makefile
config.status: creating m4/Makefile
config.status: creating scripts/Makefile
config.status: creating src/Makefile
config.status: creating src/rtree/Makefile
config.status: creating symbols/Makefile
config.status: creating xastir.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
===========================================
xastir 1.4.2 has been configured using the
following external libraries.


Building with AX25 .............................. : no
Building with Festival .......................... : no
Building with GPSMan ............................ : no
Building with ImageMagick ....................... : yes
Building with libproj ........................... : yes
Building with GeoTiff ........................... : yes
Building with GDAL/OGR .......................... : no
Building with ShapeLib .......................... : yes
Building with pcre .............................. : yes
Building with dbfawk ............................ : yes
Building with map caching ....................... : no
Building with ErrorPopups ....................... : no
Building with libgc (Debug) ..................... : no
Building with profiling (Debug) ................. : no
Building with rtree indexing (experimental) ..... : no

xastir will be installed in /usr/local/bin.
Type 'make' to build Xastir (Use 'gmake' instead on some systems).
[Eleanor-Ois-Computer:~/xastir] jeff% make clean
Making clean in callpass
test -z "callpass" || rm -f callpass
rm -f *.o core *.core
Making clean in symbols
make[1]: Nothing to be done for `clean'.
Making clean in scripts
make[1]: Nothing to be done for `clean'.
Making clean in help
make[1]: Nothing to be done for `clean'.
Making clean in config
make[1]: Nothing to be done for `clean'.
Making clean in m4
make[1]: Nothing to be done for `clean'.
Making clean in src
Making clean in .
test -z "xastir" || rm -f xastir
test -z "testawk" || rm -f testawk
rm -f *.o core *.core
Making clean in .
make[1]: Nothing to be done for `clean-am'.
[Eleanor-Ois-Computer:~/xastir] jeff% make
make  all-recursive
Making all in src
source='alert.c' object='alert.o' libtool=no \
depfile='.deps/alert.Po' tmpdepfile='.deps/alert.TPo' \
depmode=gcc /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include -I/sw/include
-I/opt/local/include -I/usr/X11R6/include -I/sw/include/freetype2
-D_REENTRANT -I/usr/X11R6/include/X11 -I/sw/include/libxml2
-DXASTIR_DATA_BASE=\"/usr/local/share/xastir\"  -D_BSD_SOCKLEN_T=int -O2
-pipe -Wall -c `test -f 'alert.c' || echo './'`alert.c
source='awk.c' object='awk.o' libtool=no \
depfile='.deps/awk.Po' tmpdepfile='.deps/awk.TPo' \
depmode=gcc /bin/sh ../depcomp \
source='x_spider.c' object='x_spider.o' libtool=no \
depfile='.deps/x_spider.Po' tmpdepfile='.deps/x_spider.TPo' \
depmode=gcc /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include -I/sw/include
-I/opt/local/include -I/usr/X11R6/include -I/sw/include/freetype2
-D_REENTRANT -I/usr/X11R6/include/X11 -I/sw/include/libxml2
-DXASTIR_DATA_BASE=\"/usr/local/share/xastir\"  -D


gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include -I/sw/include
-I/opt/local/include -I/usr/X11R6/include -I/sw/include/freetype2
-D_REENTRANT -I/usr/X11R6/include/X11 -I/sw/include/libxml2
-DXASTIR_DATA_BASE=\"/usr/local/share/xastir\"  -D_BSD_SOCKLEN_T=int -O2
-pipe -Wall -c `test -f 'xa_config.c' || echo './'`xa_config.c
source='x_spider.c' object='x_spider.o' libtool=no \
depfile='.deps/x_spider.Po' tmpdepfile='.deps/x_spider.TPo' \
depmode=gcc /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include -I/sw/include
-I/opt/local/include -I/usr/X11R6/include -I/sw/include/freetype2
-D_REENTRANT -I/usr/X11R6/include/X11 -I/sw/include/libxml2
-DXASTIR_DATA_BASE=\"/usr/local/share/xastir\"  -D_BSD_SOCKLEN_T=int -O2
-pipe -Wall -c `test -f 'x_spider.c' || echo './'`x_spider.c
x_spider.c:857: undefined type, found `socklen_t'
x_spider.c:920: illegal statement, missing `;' after `)'
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
x_spider.c: In function `Server':
x_spider.c:857: `socklen_t' undeclared (first use in this function)
x_spider.c:857: (Each undeclared identifier is reported only once
x_spider.c:857: for each function it appears in.)
x_spider.c:857: parse error before "clilen"
x_spider.c:920: `clilen' undeclared (first use in this function)
x_spider.c:920: parse error before "sizeof"
make[3]: *** [x_spider.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
[Eleanor-Ois-Computer:~/xastir] jeff% 

> -----Original Message-----
> From: Derrick J Brashear [mailto:shadow at dementia.org] 
> Sent: Tuesday, January 18, 2005 11:10 AM
> To: Jeff Wigal
> Cc: 'Xastir Mailing List'
> Subject: RE: [Xastir] Compile error on OS X
> 
> 
> On Mon, 17 Jan 2005, Jeff Wigal wrote:
> 
> > OK, I think i'm missing something...  complete log is here:
> >
> > http://www.wigaldesign.com/xastir2.txt
> >
> >
> > Last login: Sun Jan 16 15:02:41 on ttyp1
> > Welcome to Darwin!
> > [Eleanor-Ois-Computer:~] jeff% CFLAGS="-D_BSD_SOCKLEN_T=int"
> > CFLAGS=-D_BSD_SOCKLEN_T=int: Command not found. 
> > [Eleanor-Ois-Computer:~] jeff% CFLAGS="-D_BSD_SOCKLEN_T=int" 
> > ./configure
> >
> > CFLAGS=-D_BSD_SOCKLEN_T=int: Command not found. 
> > [Eleanor-Ois-Computer:~] jeff% ./configure 
> > CFLAGS="-D_BSD_SOCKLEN_T=int"
> 
> 
> 
> you're missing a sh-derived shell
> 
> run bash first, or use csh syntax for environment variables.
> 
> (setenv CFLAGS -D_BSD_SOCKLEN_T=int; ./configure --whatever)
> 




More information about the Xastir mailing list