[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Solaris 7 compile problems - getaddrinfo_hostspec.c
I need to integrate samba with ADS in native mode. I have read that I need heimdal 0.6x or above. Samba must run on a Solaris 7 (sparc) box, we can't upgrade it and do not have anything newer to use (cross mount, etc).
Tried to complile heimdal-0.6.6 and heimdal-0.7.1 but both fail with a similar error (both pass the configure okay):
/bin/ksh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../lib/roken -I../../lib/roken -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -g -O2 -c -o ewrite.lo ewrite.c
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../lib/roken -I../../lib/roken -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -g -O2 -c ewrite.c -o ewrite.o
/bin/ksh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../lib/roken -I../../lib/roken -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -g -O2 -c -o getaddrinfo_hostspec.lo getaddrinfo_hostspec.c
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../lib/roken -I../../lib/roken -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -g -O2 -c getaddrinfo_hostspec.c -o getaddrinfo_hostspec.o
getaddrinfo_hostspec.c: In function `roken_getaddrinfo_hostspec2':
getaddrinfo_hostspec.c:51: error: `MAXHOSTNAMELEN' undeclared (first use in this function)
getaddrinfo_hostspec.c:51: error: (Each undeclared identifier is reported only once
getaddrinfo_hostspec.c:51: error: for each function it appears in.)
getaddrinfo_hostspec.c:51: warning: unused variable `host'
make[3]: *** [getaddrinfo_hostspec.lo] Error 1
make[3]: Leaving directory `/tmp/micks/heimdal-0.6.6/lib/roken'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/micks/heimdal-0.6.6/lib/roken'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/micks/heimdal-0.6.6/lib'
make: *** [all-recursive] Error 1
***
/bin/ksh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../include -DBUILD_ROKEN_LIB -D_FILE_OFFSET_BITS=64 -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -g -O2 -c -o libroken_la-getaddrinfo_hostspec.lo `test -f 'getaddrinfo_hostspec.c' || echo './'`getaddrinfo_hostspec.c
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -DBUILD_ROKEN_LIB -D_FILE_OFFSET_BITS=64 -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -g -O2 -c getaddrinfo_hostspec.c -o libroken_la-getaddrinfo_hostspec.o
getaddrinfo_hostspec.c: In function `roken_getaddrinfo_hostspec2':
getaddrinfo_hostspec.c:51: error: `MAXHOSTNAMELEN' undeclared (first use in this function)
getaddrinfo_hostspec.c:51: error: (Each undeclared identifier is reported only once
getaddrinfo_hostspec.c:51: error: for each function it appears in.)
getaddrinfo_hostspec.c:51: warning: unused variable `host'
make[3]: *** [libroken_la-getaddrinfo_hostspec.lo] Error 1
make[3]: Leaving directory `/tmp/micks/heimdal-0.7.1/lib/roken'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/micks/heimdal-0.7.1/lib/roken'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/micks/heimdal-0.7.1/lib'
make: *** [all-recursive] Error 1
I saw this post in the archives:
setenv CC "gcc -B/path/to/gnuld/"
but that failed.
Also tried ./configure --with-ld=/usr/local/bin/ld
but that seemed to have been ignored during configure. system used the solaris ld since that is what gcc has been complied with. (got gcc from sunfreeware)
I am using: gcc (GCC) 3.3.2
Any ideas?...
Thanks
Craig Cook
Technical Consultant
****************************
Priority One Solutions Pty Ltd
Level 3, 5 Gardner Close
Milton QLD 4064
Ph: 07 3512 9230 (direct)
Fax: (07) 3512 9200
****************************