samba 2.2.6 - HPUX 11i - GCC 3.1 ERROR LINKING SHARED libnss_winbind.so

shpowa shpowa at chez.com
Thu Oct 31 10:46:00 GMT 2002


./configure  --with-acl-support --with-winbind  --with-libsmbclient

1/  configure modified
http://marc.theaimsgroup.com/?t=101309056900005&r=1&w=2

BEFORE :
if test $ac_cv_prog_cc_Ae = yes; then
        CPPFLAGS="$CPPFLAGS -Ae"
fi

AFTER
if test $ac_cv_prog_cc_Ae = yes; then
                                 BLDSHARED="true"
                                 SHLD="/usr/bin/ld"
                                 LDSHFLAGS="-B symbolic -b -z +h \$@"
                                 PICFLAG="+z"
fi

2/ modified /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.1/include/stdio.h
BEFORE
  extern int snprintf(char *, _hpux_size_t, char *,...);
AFTER
      extern int snprintf(char *, _hpux_size_t, const char *,...);

3/ modified 
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.1/include/sys/types.h
http://gcc.gnu.org/ml/gcc-bugs/2001-09/msg00139.html

#ifndef _LABEL_T
#define _LABEL_T
      typedef struct label_t {
#ifdef __LP64__
         int64_t     lbl_rp;
         int64_t     lbl_sp;
         int64_t     lbl_s[17];
         int64_t     lbl_ss[1];
         int64_t     lbl_sf[10];
#else
         int32_t     lbl_rp;
         int32_t     lbl_sp;
         int32_t     lbl_s[17];
         int32_t     lbl_ss[1];
         double      lbl_sf[10];
#endif
     } label_t;
#endif /* _LABEL_T */


...........

/*  ADD FOR PROFTP ET SAMBA */
#ifndef _BSIZE32_T
#    define _BSIZE32_T
      typedef int32_t   sbsize32_t;
      typedef uint32_t  bsize32_t;
#endif /* _BSIZE32_T */


#  ifndef _BSIZE64_T
#    define _BSIZE64_T
#    if !defined(__STDC_32_MODE__)
         typedef int64_t  sbsize64_t;
         typedef uint64_t bsize64_t;
#    endif
#  endif /* _BSIZE64_T */



#  ifndef _BSIZE_T
#    define _BSIZE_T
#    if defined(_APP32_64BIT_OFF_T) || defined(_KERNEL)
         typedef int64_t  sbsize_t;      /* signed length in bytes */
         typedef uint64_t bsize_t;       /* unsigned length in bytes */
#    else
         typedef long  sbsize_t;
         typedef unsigned long bsize_t;
#    endif
#  endif /* _BSIZE_T */

/*  ADD FOR PROFTP ET SAMBA */



4/ configure works well but make is still stopping

Using FLAGS =  -O -O -g -I./popt -Iinclude -I./include -I./ubiqx 
-I./smbwrapper -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE 
-D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4 
-DLOGFILEBASE="/usr/local/samba/var" 
-DCONFIGFILE="/usr/local/samba/lib/smb.conf" 
-DLMHOSTSFILE="/usr/local/samba/lib/lmhosts" 
-DSWATDIR="/usr/local/samba/swat" -DSBINDIR="/usr/local/samba/bin" 
-DLOCKDIR="/usr/local/samba/var/locks" 
-DCODEPAGEDIR="/usr/local/samba/lib/codepages" 
-DDRIVERFILE="/usr/local/samba/lib/printers.def" 
-DBINDIR="/usr/local/samba/bin" -DPIDDIR="/usr/local/samba/var/locks" 
-DLIBDIR="/usr/local/samba/lib" -DHAVE_INCLUDES_H 
-DPASSWD_PROGRAM="/usr/bin/passwd" 
-DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd" 
-DTDB_PASSWD_FILE="/usr/local/samba/private/smbpasswd.tdb"
Using FLAGS32 =  -O -O -g -I./popt -Iinclude -I./include -I./ubiqx 
-I./smbwrapper -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE 
-D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4 
-DLOGFILEBASE="/usr/local/samba/var" 
-DCONFIGFILE="/usr/local/samba/lib/smb.conf" 
-DLMHOSTSFILE="/usr/local/samba/lib/lmhosts" 
-DSWATDIR="/usr/local/samba/swat" -DSBINDIR="/usr/local/samba/bin" 
-DLOCKDIR="/usr/local/samba/var/locks" 
-DCODEPAGEDIR="/usr/local/samba/lib/codepages" 
-DDRIVERFILE="/usr/local/samba/lib/printers.def" 
-DBINDIR="/usr/local/samba/bin" -DPIDDIR="/usr/local/samba/var/locks" 
-DLIBDIR="/usr/local/samba/lib" -DHAVE_INCLUDES_H 
-DPASSWD_PROGRAM="/usr/bin/passwd" 
-DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd" 
-DTDB_PASSWD_FILE="/usr/local/samba/private/smbpasswd.tdb"
Using LIBS = -lgen -lsec  -lnsl
Linking nsswitch/libnss_winbind.so
/usr/ccs/bin/ld: DP relative code in file /var/tmp//ccAL8Ncd.o - shared 
library must be position
     independent.  Use +z or +Z to recompile.
collect2: ld returned 1 exit status
*** Error exit code 1

Stop.





More information about the samba-technical mailing list