Bug 5730 - Unable to compile Samba 3.2.3 - errors out on linking of libtalloc.so.1
Summary: Unable to compile Samba 3.2.3 - errors out on linking of libtalloc.so.1
Status: RESOLVED DUPLICATE of bug 5361
Alias: None
Product: Samba 3.2
Classification: Unclassified
Component: Build environment (show other bugs)
Version: unspecified
Hardware: Sparc Solaris
: P3 normal
Target Milestone: ---
Assignee: Michael Adam
QA Contact: Samba QA Contact
URL:
Keywords:
: 5639 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-31 19:58 UTC by taren
Modified: 2009-05-17 18:00 UTC (History)
4 users (show)

See Also:


Attachments
Multiple configure & attempted gmake attempts, with requested LD arguments. (548.96 KB, text/plain)
2008-09-09 18:19 UTC, taren
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description taren 2008-08-31 19:58:31 UTC
I am unable to get Samba 3.2.3 to compile.  It generates an ld error.  The following is from the configure & make (including errors) on a Sunblade 1000, running Solaris 10.  I am unsure what needs to be done to fix this.  I tried commenting out all references to libtalloc, and it began erroring on libtdb.


./configure gave the following:

SAMBA VERSION: 3.2.3
LIBREPLACE_LOCATION_CHECKS: START
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking target system type... sparc-sun-solaris2.10
LIBREPLACE_LOCATION_CHECKS: END
LIBREPLACE_CC_CHECKS: START
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for version of gcc... 3.4.3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep
checking for egrep... /usr/sfw/bin/ggrep -E
checking for AIX... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether byte ordering is bigendian... yes
checking for inline... inline
checking for C99 designated initializers... yes
checking for a BSD-compatible install... /opt/sfw/bin/install -c
checking for library containing strerror... none required
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking standards.h usability... no
checking standards.h presence... no
checking for standards.h... no
checking for long long... yes
checking for int... yes
checking size of int... 4
checking for char... yes
checking size of char... 1
checking for short... yes
checking size of short... 2
checking for long... yes
checking size of long... 4
checking for long long... (cached) yes
checking size of long long... 8
checking for uint_t... yes
checking for int8_t... yes
checking for uint8_t... yes
checking for int16_t... yes
checking for uint16_t... yes
checking for int32_t... yes
checking for uint32_t... yes
checking for int64_t... yes
checking for uint64_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for off_t... yes
checking size of off_t... 8
checking for size_t... (cached) yes
checking size of size_t... 4
checking for ssize_t... (cached) yes
checking size of ssize_t... 4
checking for intptr_t... yes
checking for uintptr_t... yes
checking for ptrdiff_t... yes
checking for immediate structures... yes
LIBREPLACE_CC_CHECKS: END
checking for size_t... (cached) yes
checking size of size_t... (cached) 4
checking for void *... yes
checking size of void *... 4
checking that the C compiler understands -Wdeclaration-after-statement... yes
checking that the C compiler understands -Werror-implicit-function-declaration... yes
checking whether to use profiling... no
checking for a BSD-compatible install... /opt/sfw/bin/install -c
checking for gawk... gawk
checking for perl... /usr/local/bin/perl
checking for ar... ar
checking if the linker (ld) is GNU ld... yes
checking GNU ld release date... 
checking GNU ld release version... 2.18
checking GNU ld release version major... 2
checking GNU ld release version minor... 18
checking whether gcc and cc understand -c and -o together... yes
checking that the C compiler understands -Werror... yes
checking that the C compiler understands volatile... yes
checking that the C compiler understands negative enum values... yes
checking for C99 designated initializers... yes
checking uname -s... SunOS
checking uname -r... 5.10
checking uname -m... sun4u
checking uname -p... sparc
checking uname -i... SUNW,Sun-Blade-1000
enabling large file support
LIBREPLACE_BROKEN_CHECKS: START
checking return type of signal handlers... void
checking for uid_t in sys/types.h... yes
checking for mode_t... yes
checking for off_t... (cached) yes
checking for size_t... (cached) yes
checking for pid_t... yes
checking for struct stat.st_rdev... yes
checking for ino_t... yes
checking for loff_t... no
checking for offset_t... yes
checking for working memcmp... yes
checking for pipe... yes
checking for strftime... yes
checking for srandom... yes
checking for random... yes
checking for srand... yes
checking for rand... yes
checking for usleep... yes
checking for setbuffer... yes
checking for lstat... yes
checking for getpgrp... yes
checking stdbool.h usability... no
checking stdbool.h presence... no
checking for stdbool.h... no
checking for stdint.h... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking for stdint.h... (cached) yes
checking for stdbool.h... (cached) no
checking for bool... no
checking for _Bool... yes
checking for working mmap... yes
checking sys/syslog.h usability... yes
checking sys/syslog.h presence... yes
checking for sys/syslog.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking vararg.h usability... no
checking vararg.h presence... no
checking for vararg.h... no
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking mntent.h usability... no
checking mntent.h presence... no
checking for mntent.h... no
checking stropts.h usability... yes
checking stropts.h presence... yes
checking for stropts.h... yes
checking for seteuid... yes
checking for setresuid... no
checking for setegid... yes
checking for setresgid... no
checking for chroot... yes
checking for bzero... yes
checking for strerror... yes
checking for vsyslog... yes
checking for setlinebuf... yes
checking for mktime... yes
checking for ftruncate... yes
checking for chsize... no
checking for rename... yes
checking for waitpid... yes
checking for strlcpy... yes
checking for strlcat... yes
checking for initgroups... yes
checking for memmove... yes
checking for strdup... yes
checking for pread... yes
checking for pwrite... yes
checking for strndup... no
checking for strcasestr... no
checking for strtok_r... yes
checking for mkdtemp... no
checking for isatty... yes
checking for setresuid declaration... no
checking for setresgid declaration... no
checking for errno declaration... yes
checking for secure mkstemp... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for strings.h... (cached) yes
checking whether snprintf is declared... yes
checking whether vsnprintf is declared... yes
checking whether asprintf is declared... no
checking whether vasprintf is declared... no
checking for snprintf... yes
checking for vsnprintf... yes
checking for asprintf... no
checking for vasprintf... no
checking for C99 vsnprintf... no
checking for va_copy... yes
checking for __FUNCTION__ macro... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for comparison_fn_t... no
checking for setenv declaration... yes
checking for setenv... yes
checking for unsetenv... yes
checking for strnlen... no
checking for strtoull... yes
checking for __strtoull... no
checking for strtouq... no
checking for strtoll... yes
checking for __strtoll... no
checking for strtoq... no
checking for sig_atomic_t type... yes
checking for O_DIRECT flag to open(2)... no
checking that the C compiler understands volatile... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/fcntl.h usability... yes
checking sys/fcntl.h presence... yes
checking for sys/fcntl.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mode.h usability... yes
checking sys/mode.h presence... yes
checking for sys/mode.h... yes
checking sys/filio.h usability... yes
checking sys/filio.h presence... yes
checking for sys/filio.h... yes
checking sys/fs/s5param.h usability... no
checking sys/fs/s5param.h presence... no
checking for sys/fs/s5param.h... no
checking sys/filsys.h usability... no
checking sys/filsys.h presence... no
checking for sys/filsys.h... no
checking sys/acl.h usability... yes
checking sys/acl.h presence... yes
checking for sys/acl.h... yes
checking acl/libacl.h usability... no
checking acl/libacl.h presence... no
checking for acl/libacl.h... no
checking for sys/select.h... (cached) yes
checking for sys/time.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for utime... yes
checking for utimes... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking sys/capability.h usability... no
checking sys/capability.h presence... no
checking for sys/capability.h... no
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking sys/id.h usability... no
checking sys/id.h presence... no
checking for sys/id.h... no
checking compat.h usability... no
checking compat.h presence... no
checking for compat.h... no
checking shadow.h usability... yes
checking shadow.h presence... yes
checking for shadow.h... yes
checking sys/priv.h usability... yes
checking sys/priv.h presence... yes
checking for sys/priv.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking sys/security.h usability... no
checking sys/security.h presence... no
checking for sys/security.h... no
checking for getpwnam_r... yes
checking for getpwuid_r... yes
checking for getpwent_r... yes
checking for getpwent_r declaration... yes
checking for prototype struct passwd *getpwent_r(struct passwd *src, char *buf, int buflen)... yes
checking for prototype struct passwd *getpwent_r(struct passwd *src, char *buf, size_t buflen)... no
checking for getgrnam_r... yes
checking for getgrgid_r... yes
checking for getgrent_r... yes
checking for getgrent_r declaration... yes
checking for prototype struct group *getgrent_r(struct group *src, char *buf, int buflen)... yes
checking for prototype struct group *getgrent_r(struct group *src, char *buf, size_t buflen)... no
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking fnmatch.h usability... yes
checking fnmatch.h presence... yes
checking for fnmatch.h... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking termio.h usability... yes
checking termio.h presence... yes
checking for termio.h... yes
checking sys/termio.h usability... yes
checking sys/termio.h presence... yes
checking for sys/termio.h... yes
checking for library containing dlopen... none required
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for dlopen... yes
checking for dlsym... yes
checking for dlerror... yes
checking for dlclose... yes
checking for library containing shl_load... no
checking dl.h usability... no
checking dl.h presence... no
checking for dl.h... no
checking for shl_load... no
checking for shl_unload... no
checking for shl_findsym... no
checking for prototype void *dlopen(const char* filename, unsigned int flags)... no
checking for getpass... yes
checking for getpassphrase... yes
checking whether strptime is available and works... no
checking direct.h usability... no
checking direct.h presence... no
checking for direct.h... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking winsock2.h usability... no
checking winsock2.h presence... no
checking for winsock2.h... no
checking ws2tcpip.h usability... no
checking ws2tcpip.h presence... no
checking for ws2tcpip.h... no
checking whether mkdir supports mode... yes
checking for timegm... no
checking for broken readdir... no
checking a usable readdir()... yes
checking for syslog... yes
checking for printf... yes
checking for memset... yes
checking for memcpy... yes
LIBREPLACE_BROKEN_CHECKS: END
LIBREPLACE_NETWORK_CHECKS: START
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/ip.h usability... no
checking netinet/ip.h presence... yes
checking for netinet/ip.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking netinet/in_systm.h usability... yes
checking netinet/in_systm.h presence... yes
checking for netinet/in_systm.h... yes
checking netinet/in_ip.h usability... no
checking netinet/in_ip.h presence... no
checking for netinet/in_ip.h... no
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking for usable net/if.h... yes
checking for socklen_t... yes
checking for sa_family_t... yes
checking for struct addrinfo... yes
checking for struct sockaddr... yes
checking for struct sockaddr_storage... yes
checking for struct sockaddr_in6... yes
checking for struct sockaddr_storage.ss_family... yes
checking for sin_len in sock... no
checking for unix domain sockets... yes
checking for connect... no
checking for connect in -lnsl_s... no
checking for connect in -lnsl... no
checking for connect in -lsocket... yes
checking for connect in -linet... no
checking for gethostbyname... no
checking for gethostbyname in -lnsl_s... no
checking for gethostbyname in -lnsl... yes
checking for gethostbyname in -lsocket... yes
checking for if_nametoindex... no
checking for if_nametoindex in -lipv6... no
checking for socketpair... yes
checking for broken inet_ntoa... no
checking for inet_ntoa... yes
checking for inet_aton... yes
checking for inet_ntop... yes
checking for inet_pton... yes
checking for getaddrinfo... yes
checking ifaddrs.h usability... no
checking ifaddrs.h presence... no
checking for ifaddrs.h... no
checking for struct sockaddr.sa_len... no
checking for getifaddrs and freeifaddrs... no
checking for iface getifaddrs... no
checking for iface AIX... no
checking for iface ifconf... eri0:1     IP=192.168.52.2 NETMASK=255.255.255.0
eri0       IP=75.146.80.177 NETMASK=255.255.255.248
lo0        IP=127.0.0.1 NETMASK=255.0.0.0
yes
checking for ipv6 support... yes
LIBREPLACE_NETWORK_CHECKS: END
checking aio.h usability... yes
checking aio.h presence... yes
checking for aio.h... yes
checking for sys/fcntl.h... (cached) yes
checking for sys/select.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/time.h... (cached) yes
checking sys/unistd.h usability... yes
checking sys/unistd.h presence... yes
checking for sys/unistd.h... yes
checking rpc/nettype.h usability... yes
checking rpc/nettype.h presence... yes
checking for rpc/nettype.h... yes
checking for unistd.h... (cached) yes
checking for utime.h... (cached) yes
checking for grp.h... (cached) yes
checking for sys/id.h... (cached) no
checking for memory.h... (cached) yes
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
checking for limits.h... (cached) yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking rpc/rpc.h usability... yes
checking rpc/rpc.h presence... yes
checking for rpc/rpc.h... yes
checking rpcsvc/nis.h usability... yes
checking rpcsvc/nis.h presence... yes
checking for rpcsvc/nis.h... yes
checking rpcsvc/ypclnt.h usability... yes
checking rpcsvc/ypclnt.h presence... yes
checking for rpcsvc/ypclnt.h... yes
checking for sys/param.h... (cached) yes
checking for ctype.h... (cached) yes
checking for sys/wait.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for sys/ipc.h... (cached) yes
checking sys/prctl.h usability... no
checking sys/prctl.h presence... no
checking for sys/prctl.h... no
checking for sys/mman.h... (cached) yes
checking for sys/filio.h... (cached) yes
checking for sys/priv.h... (cached) yes
checking for sys/shm.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for sys/mount.h... (cached) yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking for sys/fs/s5param.h... (cached) no
checking for sys/filsys.h... (cached) no
checking for termios.h... (cached) yes
checking for termio.h... (cached) yes
checking for sys/termio.h... (cached) yes
checking sys/statfs.h usability... yes
checking sys/statfs.h presence... yes
checking for sys/statfs.h... yes
checking sys/dustat.h usability... no
checking sys/dustat.h presence... no
checking for sys/dustat.h... no
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking for stdarg.h... (cached) yes
checking sys/sysmacros.h usability... yes
checking sys/sysmacros.h presence... yes
checking for sys/sysmacros.h... yes
checking for sys/syslog.h... (cached) yes
checking for syslog.h... (cached) yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking for locale.h... (cached) yes
checking xfs/libxfs.h usability... no
checking xfs/libxfs.h presence... no
checking for xfs/libxfs.h... no
checking netgroup.h usability... no
checking netgroup.h presence... no
checking for netgroup.h... no
checking for rpcsvc/yp_prot.h... yes
checking for sys/mode.h... (cached) yes
checking CoreFoundation/CFStringEncodingConverter.h usability... no
checking CoreFoundation/CFStringEncodingConverter.h presence... no
checking for CoreFoundation/CFStringEncodingConverter.h... no
checking CFStringEncodingConverter.h usability... no
checking CFStringEncodingConverter.h presence... no
checking for CFStringEncodingConverter.h... no
checking valgrind.h usability... no
checking valgrind.h presence... no
checking for valgrind.h... no
checking valgrind/valgrind.h usability... no
checking valgrind/valgrind.h presence... no
checking for valgrind/valgrind.h... no
checking valgrind/memcheck.h usability... no
checking valgrind/memcheck.h presence... no
checking for valgrind/memcheck.h... no
checking for shadow.h... (cached) yes
checking nss.h usability... no
checking nss.h presence... no
checking for nss.h... no
checking nss_common.h usability... yes
checking nss_common.h presence... yes
checking for nss_common.h... yes
checking nsswitch.h usability... yes
checking nsswitch.h presence... yes
checking for nsswitch.h... yes
checking ns_api.h usability... no
checking ns_api.h presence... no
checking for ns_api.h... no
checking for sys/security.h... (cached) no
checking syscall.h usability... no
checking syscall.h presence... no
checking for syscall.h... no
checking sys/syscall.h usability... yes
checking sys/syscall.h presence... yes
checking for sys/syscall.h... yes
checking sys/attributes.h usability... no
checking sys/attributes.h presence... no
checking for sys/attributes.h... no
checking attr/xattr.h usability... no
checking attr/xattr.h presence... no
checking for attr/xattr.h... no
checking sys/xattr.h usability... no
checking sys/xattr.h presence... no
checking for sys/xattr.h... no
checking sys/extattr.h usability... no
checking sys/extattr.h presence... no
checking for sys/extattr.h... no
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/ea.h usability... no
checking sys/ea.h presence... no
checking for sys/ea.h... no
checking sys/proplist.h usability... no
checking sys/proplist.h presence... no
checking for sys/proplist.h... no
checking sys/cdefs.h usability... no
checking sys/cdefs.h presence... no
checking for sys/cdefs.h... no
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking utmp.h usability... yes
checking utmp.h presence... yes
checking for utmp.h... yes
checking utmpx.h usability... yes
checking utmpx.h presence... yes
checking for utmpx.h... yes
checking lastlog.h usability... yes
checking lastlog.h presence... yes
checking for lastlog.h... yes
checking for int... (cached) yes
checking size of int... (cached) 4
checking for long... (cached) yes
checking size of long... (cached) 4
checking for long long... (cached) yes
checking size of long long... (cached) 8
checking for short... (cached) yes
checking size of short... (cached) 2
checking for an ANSI C-conforming const... yes
checking for inline... (cached) inline
checking whether byte ordering is bigendian... (cached) yes
checking whether char is unsigned... no
checking return type of signal handlers... (cached) void
checking for uid_t in sys/types.h... (cached) yes
checking for mode_t... (cached) yes
checking for off_t... (cached) yes
checking for size_t... (cached) yes
checking for pid_t... (cached) yes
checking for struct stat.st_rdev... (cached) yes
checking for d_off in dirent... yes
checking for ssize_t... (cached) yes
checking for wchar_t... yes
checking for cups-config... no
checking if the compiler will optimize out function calls... yes
checking for fd passing via msg_control... no
checking for fd passing via msg_acctrights... no
checking for dirfd... no
checking for sig_atomic_t type... yes
checking for struct timespec type... yes
checking for errno declaration... (cached) yes
checking for setresuid declaration... (cached) no
checking for setresgid declaration... (cached) no
checking for real setresuid... no
checking for real setresgid... no
checking for working memcmp... (cached) yes
checking whether to use readline... yes
checking readline.h usability... no
checking readline.h presence... no
checking for readline.h... no
checking history.h usability... no
checking history.h presence... no
checking for history.h... no
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking for readline.h... (cached) no
checking for readline/readline.h... (cached) yes
checking for tgetent in -lncurses... yes
checking for rl_callback_handler_install in -lreadline... yes
checking for rl_completion_matches in -lreadline... yes
checking whether rl_event_hook is declared... no
checking for history_list in -lreadline... yes
checking for library containing yp_get_default_domain... none required
checking for yp_get_default_domain... yes
checking for execl... yes
checking for waitpid... (cached) yes
checking for getcwd... yes
checking for strdup... (cached) yes
checking for strndup... (cached) no
checking for strnlen... (cached) no
checking for strerror... (cached) yes
checking for chown... yes
checking for fchown... yes
checking for lchown... yes
checking for chmod... yes
checking for fchmod... yes
checking for chroot... (cached) yes
checking for link... yes
checking for mknod... yes
checking for mknod64... no
checking for strtol... yes
checking for strtoll... (cached) yes
checking for strtoul... yes
checking for strtoull... (cached) yes
checking for strtouq... (cached) no
checking for __strtoull... (cached) no
checking for fstat... yes
checking for strchr... yes
checking for utime... (cached) yes
checking for utimes... (cached) yes
checking for chflags... no
checking for getrlimit... yes
checking for fsync... yes
checking for fdatasync... no
checking for memset... (cached) yes
checking for strlcpy... (cached) yes
checking for strlcat... (cached) yes
checking for setpgid... yes
checking for memmove... (cached) yes
checking for setsid... yes
checking for glob... yes
checking for strpbrk... yes
checking for pipe... (cached) yes
checking for crypt16... no
checking for getauthuid... no
checking for strftime... (cached) yes
checking for sigprocmask... yes
checking for sigblock... no
checking for sigaction... yes
checking for sigset... yes
checking for innetgr... yes
checking for setnetgrent... yes
checking for getnetgrent... yes
checking for endnetgrent... yes
checking for initgroups... (cached) yes
checking for select... yes
checking for poll... yes
checking for rdchk... no
checking for getgrnam... yes
checking for getgrent... yes
checking for pathconf... yes
checking for realpath... yes
checking for setpriv... no
checking for setgidx... no
checking for setuidx... no
checking for setgroups... yes
checking for sysconf... yes
checking for mktime... (cached) yes
checking for rename... (cached) yes
checking for ftruncate... (cached) yes
checking for chsize... (cached) no
checking for stat64... yes
checking for fstat64... yes
checking for lstat64... yes
checking for fopen64... yes
checking for atexit... yes
checking for grantpt... yes
checking for dup2... yes
checking for lseek64... yes
checking for ftruncate64... yes
checking for fseek64... no
checking for fseeko64... yes
checking for ftell64... no
checking for ftello64... yes
checking for setluid... no
checking for getpwanam... no
checking for setlinebuf... (cached) yes
checking for opendir64... no
checking for readdir64... yes
checking for seekdir64... no
checking for telldir64... no
checking for rewinddir64... no
checking for closedir64... no
checking for getpwent_r... (cached) yes
checking for getdents... yes
checking for getdents64... yes
checking for srandom... (cached) yes
checking for random... (cached) yes
checking for srand... (cached) yes
checking for rand... (cached) yes
checking for setenv... (cached) yes
checking for usleep... (cached) yes
checking for strcasecmp... yes
checking for fcvt... yes
checking for fcvtl... no
checking for symlink... yes
checking for readlink... yes
checking for syslog... (cached) yes
checking for vsyslog... (cached) yes
checking for timegm... (cached) no
checking for setlocale... yes
checking for nl_langinfo... yes
checking for nanosleep... no
checking for mlock... yes
checking for munlock... yes
checking for mlockall... yes
checking for munlockall... yes
checking for memalign... yes
checking for posix_memalign... no
checking for hstrerror... no
checking for sys/mman.h... (cached) yes
checking for setbuffer... (cached) yes
checking for shmget... yes
checking for shm_open... no
checking execinfo.h usability... no
checking execinfo.h presence... no
checking for execinfo.h... no
checking libexc.h usability... no
checking libexc.h presence... no
checking for libexc.h... no
checking libunwind.h usability... no
checking libunwind.h presence... no
checking for libunwind.h... no
checking for backtrace_symbols... no
checking for trace_back_stack in -lexc... no
checking for GPFS GPL libs... no
checking for libunwind... no
checking for _dup... yes
checking for _dup2... yes
checking for _opendir... yes
checking for _readdir... yes
checking for _seekdir... yes
checking for _telldir... yes
checking for _closedir... yes
checking for __dup... no
checking for __dup2... no
checking for __opendir... no
checking for __readdir... no
checking for __seekdir... no
checking for __telldir... no
checking for __closedir... no
checking for __getcwd... no
checking for _getcwd... yes
checking for __xstat... no
checking for __fxstat... no
checking for __lxstat... no
checking for _stat... yes
checking for _lstat... yes
checking for _fstat... yes
checking for __stat... no
checking for __lstat... no
checking for __fstat... no
checking for _acl... yes
checking for __acl... no
checking for _facl... yes
checking for __facl... no
checking for _open... yes
checking for __open... no
checking for _chdir... yes
checking for __chdir... no
checking for _close... yes
checking for __close... no
checking for _fchdir... yes
checking for __fchdir... no
checking for _fcntl... yes
checking for __fcntl... no
checking for getdents... (cached) yes
checking for __getdents... no
checking for _lseek... yes
checking for __lseek... no
checking for _read... yes
checking for __read... no
checking for getdirentries... no
checking for _write... yes
checking for __write... no
checking for _fork... yes
checking for __fork... no
checking for _stat64... yes
checking for __stat64... no
checking for _fstat64... yes
checking for __fstat64... no
checking for _lstat64... yes
checking for __lstat64... no
checking for __sys_llseek... no
checking for llseek... yes
checking for _llseek... yes
checking for __llseek... no
checking for readdir64... (cached) yes
checking for _readdir64... yes
checking for __readdir64... no
checking for pread... (cached) yes
checking for _pread... yes
checking for __pread... no
checking for pread64... yes
checking for _pread64... yes
checking for __pread64... no
checking for pwrite... (cached) yes
checking for _pwrite... yes
checking for __pwrite... no
checking for pwrite64... yes
checking for _pwrite64... yes
checking for __pwrite64... no
checking for open64... yes
checking for _open64... yes
checking for __open64... no
checking for creat64... yes
checking for prctl... no
checking for getgrouplist... no
checking whether struct stat has sub-second timestamps... yes
checking whether struct stat has sub-second timestamps without struct timespec... 
checking for dn_expand in -lresolv... yes
checking for _dn_expand in -lresolv... no
checking for __dn_expand in -lresolv... no
checking for putprpwnam... no
checking for putprpwnam in -lsecurity... no
checking for putprpwnam... (cached) no
checking for putprpwnam in -lsec... no
checking for set_auth_parameters... no
checking for set_auth_parameters in -lsecurity... no
checking for set_auth_parameters... (cached) no
checking for set_auth_parameters in -lsec... no
checking for getspnam... yes
checking for getspnam... (cached) yes
checking for getspnam... (cached) yes
checking for bigcrypt... no
checking for bigcrypt in -lsecurity... no
checking for bigcrypt... (cached) no
checking for bigcrypt in -lsec... no
checking for getprpwnam... no
checking for getprpwnam in -lsecurity... no
checking for getprpwnam... (cached) no
checking for getprpwnam in -lsec... no
checking for strsignal... yes
checking for library containing getxattr... no
checking for getxattr... no
checking for lgetxattr... no
checking for fgetxattr... no
checking for listxattr... no
checking for llistxattr... no
checking for getea... no
checking for fgetea... no
checking for lgetea... no
checking for listea... no
checking for flistea... no
checking for llistea... no
checking for removeea... no
checking for fremoveea... no
checking for lremoveea... no
checking for setea... no
checking for fsetea... no
checking for lsetea... no
checking for flistxattr... no
checking for removexattr... no
checking for lremovexattr... no
checking for fremovexattr... no
checking for setxattr... no
checking for lsetxattr... no
checking for fsetxattr... no
checking for attr_get... no
checking for attr_list... no
checking for attr_set... no
checking for attr_remove... no
checking for attr_getf... no
checking for attr_listf... no
checking for attr_setf... no
checking for attr_removef... no
checking for attropen... yes
checking for extattr_delete_fd... no
checking for extattr_delete_file... no
checking for extattr_delete_link... no
checking for extattr_get_fd... no
checking for extattr_get_file... no
checking for extattr_get_link... no
checking for extattr_list_fd... no
checking for extattr_list_file... no
checking for extattr_list_link... no
checking for extattr_set_fd... no
checking for extattr_set_file... no
checking for extattr_set_link... no
checking for -pie and -fPIE... yes
checking for -Wl,-z,relro... no
checking ability to build shared libraries... true
checking LDFLAGS...  -lthread -L./bin
checking DYNEXP... -Wl,-E
checking SHLD... ${CC} ${CFLAGS}
checking LDSHFLAGS... -G
checking SHLIBEXT... so
checking SONAMEFLAG... -Wl,-soname=
checking PICFLAG... -fPIC
checking NSSSONAMEVERSIONSUFFIX... 
checking whether building shared libraries actually works... yes
checking used PICFLAG... -fPIC
checking for long long... yes
checking for intptr_t... (cached) yes
checking for LL suffix on long long integers... yes
checking for 64 bit time_t... no
checking for 64 bit off_t... yes
checking for off64_t... no
checking for 64 bit ino_t... yes
checking for ino64_t... no
checking for 64 bit dev_t... no
checking for dev64_t... no
checking for struct dirent64... no
checking for struct dirent64... yes
checking for major macro... no
checking for minor macro... no
checking for makedev macro... no
checking for unsigned char... no
checking whether seekdir returns void... yes
checking for __FUNCTION__ macro... yes
checking if gettimeofday takes tz argument... yes
checking for broken readdir name... no
checking for utimbuf... yes
checking for pututline... yes
checking for pututxline... yes
checking for updwtmp... yes
checking for updwtmpx... yes
checking for getutmpx... yes
checking for ut_name in utmp... yes
checking for ut_user in utmp... yes
checking for ut_id in utmp... yes
checking for ut_host in utmp... no
checking for ut_time in utmp... yes
checking for ut_tv in utmp... no
checking for ut_type in utmp... yes
checking for ut_pid in utmp... yes
checking for ut_exit in utmp... yes
checking for ut_addr_v6 in utmp... no
checking for ut_addr in utmp... no
checking whether pututline returns pointer... yes
checking for ut_syslen in utmpx... yes
checking for iconv in /usr/lib... yes
checking can we convert from CP850 to UCS2-LE?... CP850
checking can we convert from ASCII to UCS2-LE?... ASCII
checking can we convert from UTF-8 to UCS2-LE?... UTF-8
checking for Linux kernel oplocks... no
checking for kernel change notify support... no
checking for inotify support... checking linux/inotify.h usability... no
checking linux/inotify.h presence... no
checking for linux/inotify.h... no
checking asm/unistd.h usability... no
checking asm/unistd.h presence... no
checking for asm/unistd.h... no
checking for inotify_init... no
checking for __NR_inotify_init declaration... no

checking fam.h usability... no
checking fam.h presence... no
checking for fam.h... no
checking for dm_get_eventlist in -ldm... no
checking for dm_get_eventlist in -ljfsdm... no
checking for dm_get_eventlist in -lxdsm... no
checking for dm_get_eventlist in -ldmapi... no
configure: DMAPI support not present
checking for kernel share modes... no
checking for IRIX kernel oplock type definitions... no
checking for sys/capability.h... (cached) no
checking for int16 typedef included by rpc/rpc.h... no
checking for uint16 typedef included by rpc/rpc.h... no
checking for int32 typedef included by rpc/rpc.h... no
checking for uint32 typedef included by rpc/rpc.h... no
checking for conflicting AUTH_ERROR define in rpc/rpc.h... no
checking for test routines... yes
checking for ftruncate extend... yes
checking for broken getgroups... no
checking for sysconf(_SC_NGROUPS_MAX)... yes
checking for sysconf(_SC_NPROC_ONLN)... no
checking for sysconf(_SC_NPROCESSORS_ONLN)... yes
checking for sysconf(_SC_PAGESIZE)... yes
checking for getpagesize... yes
checking for setresuid... no
checking for setreuid... OK
yes
checking for the Darwin initgroups system call... no
checking for fcntl locking... yes
checking for broken (glibc2.1/x86) 64 bit fcntl locking... no
checking for 64 bit fcntl locking... yes
checking for st_blocks in struct stat... yes
checking for st_blksize in struct stat... yes
checking for st_flags in struct stat... no
checking for broken nisplus include files... yes
checking if the realpath function allows a NULL argument... no
checking whether to use AFS clear-text auth... no
checking whether to use AFS fake-kaserver... no
checking whether to use AFS ACL mapping module... no
checking whether to use DFS clear-text auth... no
checking for LDAP support... auto
checking ldap.h usability... yes
checking ldap.h presence... yes
checking for ldap.h... yes
checking lber.h usability... yes
checking lber.h presence... yes
checking for lber.h... yes
checking for ber_tag_t... yes
checking for ber_scanf in -llber... yes
checking for ber_sockbuf_add_io... yes
checking for LDAP_OPT_SOCKBUF... no
checking for LBER_OPT_LOG_PRINT_FN... no
checking for ldap_init in -lldap... yes
checking for ldap_set_rebind_proc... yes
checking whether ldap_set_rebind_proc takes 3 arguments... 3
checking for ldap_initialize... no
checking whether LDAP support is used... yes
checking for Active Directory and krb5 support... auto
checking for ldap_initialize... (cached) no
checking for ldap_add_result_entry... no
checking for nscd_flush_cache in -lnscd... no
checking whether to enable DNS Updates support... no
checking whether to use automount... no
checking whether to build mount.cifs and umount.cifs... no
checking keyutils.h usability... no
checking keyutils.h presence... no
checking for keyutils.h... no
checking whether to build cifs.upcall... no
checking whether to try PAM support... no
checking whether to use pam_smbpass... no
checking for library containing crypt... none required
checking for a crypt that needs truncated salt... no
checking whether to use NISPLUS_HOME... no
checking whether to use syslog logging... no
checking whether to try disk-quotas support... no
checking whether to try the new lib/sysquotas.c interface... auto
checking whether to try the lib/sysquotas.c interface on solaris2.10... no
checking asm/types.h usability... no
checking asm/types.h presence... no
checking for asm/types.h... no
checking sys/fs/vx_quota.h usability... no
checking sys/fs/vx_quota.h presence... no
checking for sys/fs/vx_quota.h... no
checking linux/dqblk_xfs.h usability... no
checking linux/dqblk_xfs.h presence... no
checking for linux/dqblk_xfs.h... no
checking sys/quota.h usability... no
checking sys/quota.h presence... no
checking for sys/quota.h... no
checking for XFS QUOTA in <sys/quota.h>... no
checking if struct dqblk has .dqb_fsoftlimit... no
checking for long quotactl(int cmd, char *special, qid_t id, caddr_t addr)... no
checking for int quotactl(const char *path, int cmd, int id, char *addr)... no
checking for CRAY int quotactl (char *spec, int request, char *arg)... no
checking for mntent.h... (cached) no
checking for setmntent... no
checking for getmntent... yes
checking for endmntent... no
checking devnm.h usability... no
checking devnm.h presence... no
checking for devnm.h... no
checking for devnm... no
checking whether the old quota support works... yes
checking whether to use the old quota support... no
checking whether to support utmp accounting... yes
checking whether to use shared libraries internally... true
checking whether to build the libtalloc shared library... yes
checking whether to build the libtdb shared library... yes
checking whether to build the libnetapi shared library... yes
checking whether to build the libsmbclient shared library... yes
checking whether to build the libsmbsharemodes shared library... yes
checking whether to build the libaddns shared library... yes
shared library not selected
configure: checking how to get filesystem space usage...
checking statvfs64 function (SVR4)... yes
checking that statvfs.f_fsid is an integer... yes
checking if large file support can be enabled... yes
checking whether to include cluster support... no
checking whether to support ACLs... auto
configure: checking whether ACL support is available:
configure: Using solaris ACLs
checking whether to support asynchronous io... no
checking whether to check to support sendfile... yes
checking for sendfilev in -lsendfile... yes
checking for solaris sendfilev64 support... yes
checking for solaris sendfilev support... yes
checking for Linux readahead... no
checking for readahead declaration... no
checking for posix_fadvise... no
checking for Linux splice... no
checking for splice declaration... no
checking whether to build winbind... yes
checking for pthread_mutex_lock in -lpthread... yes
checking for union nss_XbyY_key.ipnode.af_family... yes
checking for struct passwd.pw_comment... yes
checking for struct passwd.pw_age... yes
checking for struct secmethod_table.method_attrlist... no
checking for struct secmethod_table.method_version... no
checking for SO_PEERCRED... no
checking for poptGetContext in -lpopt... yes
checking whether to use included popt... no
checking dns_sd.h usability... no
checking dns_sd.h presence... no
checking for dns_sd.h... no
checking for DNSServiceRegister... no
checking for DNSServiceRegister in -ldns_sd... no
checking for iniparser_load in -liniparser... no
checking whether to use included iniparser... yes
checking for getmntent... (cached) yes
checking for sys/statfs.h... (cached) yes
checking vfs_fileid: checking for statfs() and struct statfs.f_fsid)... no
checking how to build pdb_ldap... static
checking how to build pdb_smbpasswd... static
checking how to build pdb_tdbsam... static
checking how to build rpc_lsarpc... static
checking how to build rpc_winreg... static
checking how to build rpc_initshutdown... static
checking how to build rpc_dssetup... static
checking how to build rpc_wkssvc... static
checking how to build rpc_svcctl2... static
checking how to build rpc_ntsvcs2... static
checking how to build rpc_netlogon... static
checking how to build rpc_netdfs... static
checking how to build rpc_srvsvc... static
checking how to build rpc_spoolss... static
checking how to build rpc_eventlog2... static
checking how to build rpc_samr... static
checking how to build rpc_rpcecho... not
checking how to build idmap_ldap... static
checking how to build idmap_tdb... static
checking how to build idmap_tdb2... not
checking how to build idmap_passdb... static
checking how to build idmap_nss... static
checking how to build idmap_rid... not
checking how to build idmap_ad... not
checking how to build nss_info_template... static
checking how to build charset_weird... not
checking how to build charset_CP850... shared
checking how to build charset_CP437... shared
checking how to build charset_macosxfs... not
checking how to build auth_sam... static
checking how to build auth_unix... static
checking how to build auth_winbind... static
checking how to build auth_server... static
checking how to build auth_domain... static
checking how to build auth_builtin... static
checking how to build auth_script... shared
checking how to build vfs_default... static
checking how to build vfs_recycle... shared
checking how to build vfs_audit... shared
checking how to build vfs_extd_audit... shared
checking how to build vfs_full_audit... shared
checking how to build vfs_netatalk... shared
checking how to build vfs_fake_perms... shared
checking how to build vfs_default_quota... shared
checking how to build vfs_readonly... shared
checking how to build vfs_cap... shared
checking how to build vfs_expand_msdfs... shared
checking how to build vfs_shadow_copy... shared
checking how to build vfs_shadow_copy2... shared
checking how to build vfs_afsacl... not
checking how to build vfs_xattr_tdb... shared
checking how to build vfs_posixacl... not
checking how to build vfs_aixacl... not
checking how to build vfs_aixacl2... not
checking how to build vfs_solarisacl... static
checking how to build vfs_irixacl... not
checking how to build vfs_hpuxacl... not
checking how to build vfs_tru64acl... not
checking how to build vfs_catia... not
checking how to build vfs_streams_xattr... shared
checking how to build vfs_streams_depot... not
checking how to build vfs_cacheprime... not
checking how to build vfs_prealloc... not
checking how to build vfs_commit... not
checking how to build vfs_gpfs... not
checking how to build vfs_readahead... shared
checking how to build vfs_tsmsm... not
checking how to build vfs_fileid... not
checking how to build vfs_aio_fork... not
checking how to build vfs_syncops... not
checking how to build vfs_zfsacl... not
checking how to build vfs_notify_fam... not
checking whether to enable build farm hacks... no
Using libraries:
    LIBS = -lsendfile -lresolv -lnsl -lsocket -liconv
    LDAP_LIBS = -lldap -llber 
    AUTH_LIBS = 
checking configure summary... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating script/findsmb
config.status: creating smbadduser
config.status: creating script/gen-8bit-gap.sh
config.status: creating script/installbin.sh
config.status: creating script/uninstallbin.sh
config.status: creating lib/netapi/examples/Makefile
config.status: creating pkgconfig/smbclient.pc
config.status: creating pkgconfig/wbclient.pc
config.status: creating pkgconfig/netapi.pc
config.status: creating pkgconfig/smbsharemodes.pc
config.status: creating include/config.h
config.status: executing rm-stdint.h commands
config.status: executing mk-stdbool.h commands

I used 'gmake >>errs.out 2>&1' to compile:

Using FLAGS      =  -O -D_SAMBA_BUILD_=3  -I/arch/source/samba-3.2.3/source/iniparser/src -Iinclude -I./include  -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H  -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt -DLDAP_DEPRECATED -DSUNOS5   -I/include -I/arch/source/samba-3.2.3/source/lib -D_SAMBA_BUILD_=3
      PICFLAG    = -fPIC
      LIBS       = -lsendfile -lresolv -lnsl -lsocket -liconv
      LDFLAGS    = -pie  -lthread -L./bin
      DYNEXP     = -Wl,-E
      LDSHFLAGS  = -G  -lthread -L./bin
      SHLIBEXT   = so
      SONAMEFLAG = -Wl,-soname=
Generating smbd/build_options.c
Building include/proto.h
creating /arch/source/samba-3.2.3/source/include/proto.h
Building include/build_env.h
creating /arch/source/samba-3.2.3/source/winbindd/winbindd_proto.h
creating /arch/source/samba-3.2.3/source/web/swat_proto.h
creating /arch/source/samba-3.2.3/source/libnet/libnet_proto.h
creating /arch/source/samba-3.2.3/source/client/client_proto.h
creating /arch/source/samba-3.2.3/source/utils/net_proto.h
creating /arch/source/samba-3.2.3/source/utils/ntlm_auth_proto.h
Compiling lib/talloc/talloc.c
Linking non-shared library bin/libtalloc.a
Compiling lib/replace/replace.c
Compiling lib/replace/snprintf.c
Compiling lib/replace/getpass.c
Compiling lib/replace/strptime.c
Compiling lib/replace/timegm.c
Compiling lib/replace/getifaddrs.c
creating /arch/source/samba-3.2.3/source/exports/libtalloc.syms
Linking shared library bin/libtalloc.so.1
/usr/ccs/bin/ld: illegal option -- version-script
ld: warning: option -o appears more than once, first setting taken
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?] file(s)
        [-64]           enforce a 64-bit link-edit
        [-a]            create an absolute file
        [-b]            do not do special PIC relocations in a.out
        [-B direct | nodirect]
                        establish direct bindings, or inhibit direct binding
                        to, the object being created
        [-B dynamic | static]
                        search for shared libraries|archives
        [-B eliminate]  eliminate unqualified global symbols from the
                        symbol table
        [-B group]      relocate object from within group
        [-B local]      reduce unqualified global symbols to local
        [-B reduce]     process symbol reductions
        [-B symbolic]   bind external references to definitions when creating
                        shared objects
        [-c name]       record configuration file `name'
        [-C]            demangle C++ symbol name diagnostics
        [-d y | n]      operate in dynamic|static mode
        [-D token,...]  print diagnostic messages
        [-e epsym]      use `epsym' as entry point address
        [-f name]       specify library for which this file is an auxiliary
                        filter
        [-F name]       specify library for which this file is a filter
        [-G]            create a shared object
        [-h name]       use `name' as internal shared object identifier
        [-i]            ignore LD_LIBRARY_PATH setting
        [-I name]       use `name' as path of interpreter
        [-l x]          search for libx.so or libx.a
        [-L path]       search for libraries in directory `path'
        [-m]            print memory map
        [-M mapfile]    use processing directives contained in `mapfile'
        [-N string]     create a dynamic dependency for `string'
        [-o outfile]    name the output file `outfile'
        [-p auditlib]   identify audit library to accompany this object
        [-P auditlib]   identify audit library for processing the dependencies
                        of this object
        [-Q y | n]      do|do not place version information in output file
        [-r]            create a relocatable object
        [-R path]       specify a library search path to be used at run time
        [-s]            strip any symbol and debugging information
        [-S supportlib]
                        specify a link-edit support library
        [-t]            do not warn of multiply-defined symbols that have
                        different sizes or alignments
        [-u symname]    create an undefined symbol `symname'
        [-V]            print version information
        [-Y P,dirlist]  use `dirlist' as a default path when searching for
                        libraries
        [-z absexec]    when building an executable absolute symbols
                        referenced in dynamic objects are promoted to
                        the executable
        [-z allextract | defaultextract | weakextract]
                        extract all member files, only members that resolve
                        undefined tor tentative symbols, or allow extraction of
                        archive members to resolvetweak references from 
                        archive files
        [-z altexec64]  execute the 64-bit link-editor
        [-z combreloc]  combine multiple relocation sections
        [-z defs]       disallow undefined symbol references
        [-z direct | nodirect]
                        enable|disable direct binding to shared object
                        dependencies
        [-z endfiltee]  marks a filtee such that it will terminate a filters
                        search
        [-z finiarray=function]
                        name of function to be appended to the .finiarray
        [-z groupperm | nogroupperm]
                        enable|disable setting of group permissions
                        on dynamic dependencies
        [-z help ]      print this usage message
        [-z ignore | record]
                        ignore|record unused dynamic dependencies
        [-z initarray=function]
                        name of function to be appended to the .initarray
        [-z initfirst]  mark object to indicate that its .init section should
                        be executed before the .init section of any other
                        objects
        [-z interpose]  dynamic object is to be an `interposer' on direct
                        bindings
        [-z lazyload | nolazyload]
                        enable|disable delayed loading of shared object
                        dependencies
        [-z ld32=arg1,arg2,...]
                        define arguments applicable to the 32-bit class of ld(1)
        [-z ld64=arg1,arg2,...]
                        define arguments applicable to the 64-bit class of ld(1)
        [-z loadfltr]   mark filter as requiring immediate loading of its
                        filtees at runtime
        [-z muldefs]    allow multiply-defined symbols
        [-z nocompstrtab]
                        disable compression of string tables
        [-z nodefs]     allow undefined symbol references
        [-z nodefaultlib]
                        mark object to ignore any default library search path
        [-z nodelete]   mark object as non-deletable
        [-z nodlopen]   mark object as non-dlopen()'able
        [-z nodump]     mark object as non-dldump()'able
        [-z now]        mark object as requiring non-lazy binding
        [-z nopartial]  expand any partially initialized symbols
        [-z noversion]  don't record any version sections
        [-z origin]     mark object as requiring $ORIGIN processing
        [-z preinitarray=function]
                        name of function to be appended to the .preinitarray
        [-z redlocsym]  reduce local syms in .symtab to a minimum
        [-z rescan]     rescan archive list until no further member
                        extraction occurs
        [-z text]       disallow output relocations against text
        [-z textoff]    allow output relocations against text
        [-z textwarn]   warn if there are relocations against text
        [-z verbose]    generate warnings for suspicious processings
collect2: ld returned 1 exit status
gmake: *** [bin/libtalloc.so.1] Error 1
Comment 1 Michael Adam 2008-09-05 05:56:50 UTC
Hi,

this is strange: the check for the GNU ld program only tests "ld", and it finds the GNU linker, and correctly detects the version which is high enough to support the version-script argument.

But further down, when linking, make calls /usr/ccs/bin/ld - which is the sun linker and does correctly complain about the version-script option.

The question is: why does your make use /usr/ccs/bin/ld when configure found ld. I think this must be related to our test for gnu ld setting LD=ld right before the test. This seems to be wrong. Have you set LD=/usr/ccs/bin/ld before calling configure?

Could you please try re-running configure (and then make) once with

LD=/usr/ccs/bin/ld ./configure ...

and once with 

LD=/path/to/your/GNU/ld ./configure ...

And as another test re-run configure (without explicitly setting LD)
after changing PATH to include the path where your gnu linker is found
*after* /usr/ccs/bin (e.g. set PATH to "/usr/ccs/bin:$PATH").

Cheers - Michael
Comment 2 taren 2008-09-09 18:19:01 UTC
Created attachment 3546 [details]
Multiple configure & attempted gmake attempts, with requested LD arguments.

This attachment is in response to obnox@samba.org's request, for the following configure & make attempts:

LD=/usr/ccs/bin/ld ./configure & make

LD=/usr/local/bin/ld ./configure & make

export PATH=/usr/ccs/bin:$PATH; ./configure & make

I am somewhat late in getting this information to you; I hope it's not been too much of an imposition.
Comment 3 Michael Adam 2008-09-10 02:35:48 UTC
Hmm, the log looks strange.
I guess you need to make clean before each attempt.
Could you please add separate logs of each run with initial make clean,
i.e. for each of the variable settings:

make clean (or unpack tarball)
(environment variable settings) ./configure ...
make clean
make

Thanks - Michael

PS: I really should get a gnu linker for our solaris machine
to test this issue myself. But: Where did you get the linker from?
It does not seem to be so easy. At least there is no precompiled
package at sunfreeware.com for use with pkg-get. Downloading and
compiling gnu binutils myself now ... :-)
Comment 4 Michael Adam 2008-09-10 03:40:27 UTC
oops. sorry - binutils is there at sunfreeware.com -  I must have been blind... :-)
Comment 5 Michael Adam 2008-09-10 17:32:27 UTC
Ok, I think I have spottet the problem:

* /usr/local/bin/ld is first in the path (gnu linker)
  hence this is used for determining the right flags in configure

* gcc has its own notion of what the linker is configured in:
  gcc -v gives:
  Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/specs
  Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
  
  hence when trying to link the shared libs with gcc ..., it calls
  /usr/ccs/bin/ld as a linker.

On my system, this is a workaround:
# export PATH=/usr/ccs/bin:$PATH
# make clean
# ./configure
# make

Please check if this works for you.

I need to think about whether we can fix this in the samba build system at all.

Cheers - Michael
Comment 6 taren 2008-09-10 19:55:42 UTC
Your suggestion that I try 'make clean', then PATH=/usr/ccs/bin:$PATH, make clean, then make, worked, although I did 'make distclean' instead of 'make clean', to clear out all prior configuration and compiled components.

Samba 3.2.3 has now compiled successfully for me.

Thanks.  I appreciate the help.

I'm leaving the ticket open, in case you want to add something to it.
Comment 7 Michael Adam 2008-10-27 06:38:15 UTC
*** Bug 5639 has been marked as a duplicate of this bug. ***
Comment 8 Michael Adam 2009-05-17 18:00:02 UTC

*** This bug has been marked as a duplicate of bug 5361 ***