Anyone compiled 1.9.17 with glibc2?

Eloy A. Paris eparis at ven.ra.rockwell.com
Fri Sep 12 02:10:19 GMT 1997


Hello all,

I got no responses about this message that I posted. However, I was
able to fix all the problems and now I have Samba 1.9.17p1 running
flawlesly in two production servers running Debian GNU/Linux with
libc6 (glibc2).

The core dump I was getting turned out to be a problem with the crypt
library (libcrypt). For some reason, with libc6, if smbd is not
linked with libcrypt then a segmentation fault is generated when
the server tries to verify the password provided by the user.

I just changed the Makefile and includes.h (added a #ifdef GLIBC2 and
about 5 include files). With this I don't even get a compiler warning.

I'd like this patch to be included in Samba but I wonder if this is
possible and if it is, how I can make it happen. I would be willing
to maintain Samba's glibc2 support.

Thanks,

E.-

Eloy A. Paris <eparis at ven.ra.rockwell.com> wrote:
: Hi,

: I am in the process of making an unofficial Samba 1.9.17 package for
: the Debian GNU/Linux distribution.

: The next release of Debian will be one of the first Linux distributions
: to be build with the new libc6 (GNU's C library - glibc2). In the 
: past the Linux C library was different from the GNU C library but
: now the trend is to go to glibc2.

: Well, compiling Samba 1.9.17 with glibc2 has been a pain. I got 
: several compiler warnings about symbol redefinitions and stuff like
: that. Also, I had to add some new libraries because linking was failing
: too.

: Any way, I finally could make the binaries but for some reason I
: am getting this (in the log file) when trying to access a share
: (browsing seems to be working fine):

: Added interface ip=130.151.17.202 bcast=130.151.17.255 nmask=255.255.255.128
:  Client requested max send size of 2920
: Added interface ip=130.151.17.202 bcast=130.151.17.255 nmask=255.255.255.128
:  Client requested max send size of 2920
: Added interface ip=130.151.17.202 bcast=130.151.17.255 nmask=255.255.255.128
:  Client requested max send size of 2920
: ===============================================================
: INTERNAL ERROR: Signal 11 in pid 108 (1.9.17)
: Please read the file BUGS.txt in the distribution
: ===============================================================

: And then, a whole bunch of crap.

: My questions are:

: 1) Has anyone compiled Samba 1.9.17 with glibc2?

: 2) In the Makefile there is a section that says "Use this for Linux
: with quota and glibc2, contributed by Thorvald Natvig
: <slicer at bimbo.hive.no>". This section defines the symbol GLIBC2 but
: IT IS NOT used anywhere in the source files. The author says that
: his patch was not included in the final release. Does anyone know why?

: 3) Any idea on what is causing the core dump above?

: Let me know if someone wants more information.

: Thanks in advance for any help.

: E.-

: -- 

: Eloy A. Paris
: Information Technology Department
: Rockwell Automation de Venezuela
: Telephone: +58-2-9432311 Fax: +58-2-9431645

-- 

Eloy A. Paris
Information Technology Department
Rockwell Automation de Venezuela
Telephone: +58-2-9432311 Fax: +58-2-9431645


More information about the samba mailing list