[Samba] Compiling in HP/UX 11.00 (GCC 3.0.1)
MCCALL,DON (HP-USA,ex1)
don_mccall at hp.com
Thu Feb 7 06:51:56 GMT 2002
Hi Demerson;
It turns out that gcc uses the standard HPUX ld command to build shared
libraries, rather than the gcc version (the gcc ld is not built for HPUX).
So whether you are using HP's ansi c compiler, or gcc, you need to have
special options to the ld command;
You can change these lines in your configure script, remove config.cache and
reconfigure, and I THINK it will resolve your problem (note commented out
test and 'fi' so this happens for HPUX c compiler AND gcc):
# do this for gcc too! if test $ac_cv_prog_cc_Ae = yes; then
BLDSHARED="true"
SHLD="/usr/bin/ld"
LDSHFLAGS="-B symbolic -b -z +h \$@"
PICFLAG="+z"
# do this for gcc too! fi
Let me know if this works for you,
Don
-----Original Message-----
From: Info - Demerson [mailto:demerson at zaffari.com.br]
Sent: Thursday, February 07, 2002 9:55 AM
To: samba at lists.samba.org
Subject: [Samba] Compiling in HP/UX 11.00 (GCC 3.0.1)
Hullo All,
I'm having problems while compiling SaMBa 2.2.3a in HP/UX 11, with GCC
3.0.1. Configure runs OK, and the make command goes till here:
Compiling nsswitch/winbindd_cm.c
Linking bin/winbindd
Compiling nsswitch/winbind_nss.c with -fpic
nsswitch/winbind_nss.c: In function `_nss_winbind_getpwent_r':
nsswitch/winbind_nss.c:855: warning: passing arg 4 of `fill_pwent' from
incompatible pointer type
nsswitch/winbind_nss.c: In function `_nss_winbind_getpwuid_r':
nsswitch/winbind_nss.c:906: warning: passing arg 4 of `fill_pwent' from
incompatible pointer type
nsswitch/winbind_nss.c:919: warning: passing arg 4 of `fill_pwent' from
incompatible pointer type
nsswitch/winbind_nss.c: In function `_nss_winbind_getpwnam_r':
nsswitch/winbind_nss.c:969: warning: passing arg 4 of `fill_pwent' from
incompatible pointer type
nsswitch/winbind_nss.c:982: warning: passing arg 4 of `fill_pwent' from
incompatible pointer type
nsswitch/winbind_nss.c: In function `_nss_winbind_getgrent_r':
nsswitch/winbind_nss.c:1106: warning: passing arg 5 of `fill_grent' from
incompatible pointer type
nsswitch/winbind_nss.c: In function `_nss_winbind_getgrnam_r':
nsswitch/winbind_nss.c:1167: warning: passing arg 5 of `fill_grent' from
incompatible pointer type
nsswitch/winbind_nss.c:1181: warning: passing arg 5 of `fill_grent' from
incompatible pointer type
nsswitch/winbind_nss.c: In function `_nss_winbind_getgrgid_r':
nsswitch/winbind_nss.c:1231: warning: passing arg 5 of `fill_grent' from
incompatible pointer type
nsswitch/winbind_nss.c:1245: warning: passing arg 5 of `fill_grent' from
incompatible pointer type
Compiling nsswitch/wb_common.c with -fpic
Compiling nsswitch/winbind_nss_solaris.c with -fpic
Linking nsswitch/libnss_winbind.so
/usr/ccs/bin/ld: DP relative code in file /var/tmp/ccUzeGta.o - shared
library must be position
independent. Use +z or +Z to recompile.
collect2: ld returned 1 exit status
*** Error exit code 1
Any Ideas? Thanks!
______________
Demerson Zounar
Analista de Suporte
demerson at zaffari.com.br
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
More information about the samba-technical
mailing list