Compiling problems with 2.2.8a on Irix.

Jamie Bowden jamie at photon.com
Thu May 8 11:29:06 GMT 2003


I've been attempting to compile 2.2.8a on Irix 6.5.18m using MIPSpro 7.4
and gcc 2.95.3.  Both compilers fail at the same place.  I'll include
MIPSpro output as it is more informative.


7:13am wraith  /home/jamie/compile/6.5/samba-2.2.8a/source %cat
config.status
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host wraith:
#
# ./configure  --prefix=/usr/local/samba-2.2.8a --with-readline
--with-smbwrapper --with-automount --with-syslog --with-spinlocks
--with-acl-support --with-sendfile-support
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
<Snip rest>


7:15am wraith  /home/jamie/compile/6.5/samba-2.2.8a/source %cat /etc/compiler.defaults
-DEFAULT:abi=n32:isa=mips3:proc=r4k


7:15am wraith  /home/jamie/compile/6.5/samba-2.2.8a/source %cc -version
MIPSpro Compilers: Version 7.4


7:16am wraith  /home/jamie/compile/6.5/samba-2.2.8a/source %hinv
2 600 MHZ IP35 Processors
CPU: MIPS R14000 Processor Chip Revision: 2.4
FPU: MIPS R14010 Floating Point Chip Revision: 2.4
Main memory size: 1024 Mbytes
Instruction cache size: 32 Kbytes
Data cache size: 32 Kbytes
Secondary unified instruction/data cache size: 4 Mbytes
Integral SCSI controller 0: Version QL12160, low voltage differential
  Disk drive: unit 1 on SCSI controller 0
Integral SCSI controller 1: Version QL12160, single ended
  CDROM: unit 5 on SCSI controller 1
IOC3 serial port: tty3
IOC3 serial port: tty4
Integral Fast Ethernet: ef0, version 1, module 001c01, pci 4
IOC3 external interrupts: 1
USB controller: type OHCI


7:16am wraith  /home/jamie/compile/6.5/samba-2.2.8a/source %uname -aR
IRIX64 wraith 6.5 6.5.18m 10151453 IP35


Relevant env settings from printenv:

CFLAGS=-L/usr/local/lib -I/usr/local/include
CXXFLAGS=-L/usr/local/lib -I/usr/local/include
CPPFLAGS=-L/usr/local/lib -I/usr/local/include
LDFLAGS=-L/usr/local/lib
LD_LIBRARY_PATH=/usr/java/lib32/sgi/classic:/usr/java/lib32/sgi:/usr/java/lib32/sgi/native_threads:/usr/openwin/lib:/opt/iona/OrbixMT_2.3c/lib32:/opt/iona/OrbixMT_2.3c/lib:/usr/local/lib:/workspace/acads/lib
LD_LIBRARY64_PATH=/usr/java/lib32/sgi/classic:/usr/java/lib32/sgi:/usr/java/lib32/sgi/native_threads:/usr/openwin/lib:/opt/iona/OrbixMT_2.3c/lib32:/opt/iona/OrbixMT_2.3c/lib:

And output from gmake:

7:19am wraith  /home/jamie/compile/6.5/samba-2.2.8a/source %gmake
Using FLAGS =  -O -L/usr/local/lib -I/usr/local/include -I./popt -Iinclude
-I./include -I./ubiqx -I./smbwrapper -L/usr/local/lib -I/usr/local/include
-DLOGFILEBASE="/usr/local/samba-2.2.8a/var"
-DCONFIGFILE="/usr/local/samba-2.2.8a/lib/smb.conf"
-DLMHOSTSFILE="/usr/local/samba-2.2.8a/lib/lmhosts"
-DSWATDIR="/usr/local/samba-2.2.8a/swat"
-DSBINDIR="/usr/local/samba-2.2.8a/sbin"
-DLOCKDIR="/usr/local/samba-2.2.8a/var/locks"
-DCODEPAGEDIR="/usr/local/samba-2.2.8a/lib/codepages"
-DDRIVERFILE="/usr/local/samba-2.2.8a/lib/printers.def"
-DBINDIR="/usr/local/samba-2.2.8a/bin"
-DPIDDIR="/usr/local/samba-2.2.8a/var/locks"
-DLIBDIR="/usr/local/samba-2.2.8a/lib" -DHAVE_INCLUDES_H
-DPASSWD_PROGRAM="/bin/passwd"
-DSMB_PASSWD_FILE="/usr/local/samba-2.2.8a/private/smbpasswd"
-DTDB_PASSWD_FILE="/usr/local/samba-2.2.8a/private/smbpasswd.tdb"
Using FLAGS32 =  -O -L/usr/local/lib -I/usr/local/include -I./popt
-Iinclude -I./include -I./ubiqx -I./smbwrapper -L/usr/local/lib
-I/usr/local/include -DLOGFILEBASE="/usr/local/samba-2.2.8a/var"
-DCONFIGFILE="/usr/local/samba-2.2.8a/lib/smb.conf"
-DLMHOSTSFILE="/usr/local/samba-2.2.8a/lib/lmhosts"
-DSWATDIR="/usr/local/samba-2.2.8a/swat"
-DSBINDIR="/usr/local/samba-2.2.8a/sbin"
-DLOCKDIR="/usr/local/samba-2.2.8a/var/locks"
-DCODEPAGEDIR="/usr/local/samba-2.2.8a/lib/codepages"
-DDRIVERFILE="/usr/local/samba-2.2.8a/lib/printers.def"
-DBINDIR="/usr/local/samba-2.2.8a/bin"
-DPIDDIR="/usr/local/samba-2.2.8a/var/locks"
-DLIBDIR="/usr/local/samba-2.2.8a/lib" -DHAVE_INCLUDES_H
-DPASSWD_PROGRAM="/bin/passwd"
-DSMB_PASSWD_FILE="/usr/local/samba-2.2.8a/private/smbpasswd"
-DTDB_PASSWD_FILE="/usr/local/samba-2.2.8a/private/smbpasswd.tdb"
Using LIBS = -lgen
Compiling nsswitch/wb_common.c
cc-1204 cc: WARNING File = nsswitch/winbind_nss_config.h, Line = 85
  The indicated declaration is not visible outside of the function.

  NSS_STATUS _nss_winbind_getgrent_r(struct group* result, char* buffer,
                                            ^

cc-1204 cc: WARNING File = nsswitch/winbind_nss_config.h, Line = 88
  The indicated declaration is not visible outside of the function.

                                   struct group *result, char *buffer,
                                          ^

cc-1204 cc: WARNING File = nsswitch/winbind_nss_config.h, Line = 91
  The indicated declaration is not visible outside of the function.

                                   struct group *result, char *buffer,
                                          ^

cc-1020 cc: ERROR File = nsswitch/winbindd_nss.h, Line = 110
  The identifier "uint32" is undefined.

        uint32 length;
        ^

cc-1020 cc: ERROR File = nsswitch/winbindd_nss.h, Line = 146
  The identifier "uint32" is undefined.

                uint32 num_entries;  /* getpwent, getgrent */
                ^

cc-1020 cc: ERROR File = nsswitch/winbindd_nss.h, Line = 164
  The identifier "uint32" is undefined.

        uint32 length;                        /* Length of response */
        ^

cc-1020 cc: ERROR File = nsswitch/winbindd_nss.h, Line = 196
  The identifier "uint32" is undefined.

                uint32 num_entries; /* getpwent, getgrent */
                ^

cc-1020 cc: ERROR File = nsswitch/winbindd_nss.h, Line = 215
  The identifier "uint32" is undefined.

                        uint32 nt_status;
                        ^

cc-1020 cc: ERROR File = nsswitch/winbindd_nss.h, Line = 222
  The identifier "uint32" is undefined.

        uint32 nt_status;       /* Extended error information */
        ^

cc-1515 cc: ERROR File = nsswitch/wb_common.c, Line = 68
  A value of type "int" cannot be assigned to an entity of type "char *".

                domain_env = getenv(WINBINDD_DOMAIN_ENV);
                           ^

cc-1070 cc: ERROR File = nsswitch/wb_common.c, Line = 101
  The indicated type is incomplete.

        struct sockaddr_un sunaddr;
                           ^

cc-1020 cc: ERROR File = nsswitch/wb_common.c, Line = 138
  The identifier "AF_UNIX" is undefined.

        sunaddr.sun_family = AF_UNIX;
                             ^

cc-1020 cc: ERROR File = nsswitch/wb_common.c, Line = 158
  The identifier "SOCK_STREAM" is undefined.

        if ((winbindd_fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) {
                                           ^

cc-1515 cc: ERROR File = nsswitch/wb_common.c, Line = 298
  A value of type "int" cannot be assigned to an entity of type "void *".

                if (!(response->extra_data = malloc(extra_data_len))) {
                                           ^

11 errors detected in the compilation of "nsswitch/wb_common.c".
gmake: *** [nsswitch/wb_common.o] Error 2


If anyone has any clues they can toss my direction, I'd appreciate it.  I
have a current working 2.0.9 installation that I need to upgrade as we're
migrating our NT domains to AD.

Jamie Bowden
-- 
"It was half way to Rivendell when the drugs began to take hold"
Hunter S Tolkien "Fear and Loathing in Barad Dur"
Iain Bowen <alaric at alaric.org.uk>



More information about the samba-technical mailing list