1832361 Members
2644 Online
110041 Solutions
New Discussion

Samba 2.2.7 make fails

 
support_5
Super Advisor

Samba 2.2.7 make fails

Dear all,

Am trying to compile SAMBA with ldap support i.e ./configure --with-ldap-sam

I continue to get this error when I make it.

lib/snprintf.c:790: conflicting types for `snprintf'
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.1/include/stdio.h:493 previous declaration of `snprintf'

As you can see, my gcc is 3.1.

Several other people have had issues with this as well but am not sure how it was solved.

Any help would be gratefuly accepted.

Cheers,

Damo
5 REPLIES 5
Denver Osborn
Honored Contributor

Re: Samba 2.2.7 make fails

not sure if this will help, but for what it's worth...
are you using make or the gnu make?

you can get gmake from the porting and archive centre,

http://hpux.cs.utah.edu/hppd/hpux/Gnu/make-3.79.1/

-denver
Denver Osborn
Honored Contributor

Re: Samba 2.2.7 make fails

T G Manikandan
Honored Contributor

Re: Samba 2.2.7 make fails

Yes Denver is right.

you have to use the verison of make as given above with the link.
This should fix that.

Thanks

support_5
Super Advisor

Re: Samba 2.2.7 make fails

Dear all,

Thanks for your help so far.

I am configuring successfully as:

./configure --with-acl-support --with-profile --disable-static --with-msdfs --with-ldapsam

I have avoided the initial problem by using make-3.79.1 but have a new issue.

Most of the compile works fine but fails on linking libnss_winbind.so.

Here is the error from the gmake:

"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//ccEX6iVa.o - shared library must be position
independent. Use +z or +Z to recompile.
collect2: ld returned 1 exit status
gmake: *** [nsswitch/libnss_winbind.so] Error 1"

I can't see the +z switch in man ld.

Any thoughts?

Cheers,

Damo
support_5
Super Advisor

Re: Samba 2.2.7 make fails

Ooops! --with-acl-support was not used in my configure. Sorry to be misleading.

Damo