James Kosin
2008-Aug-06 16:44 UTC
[Samba] [ANNOUNCE] Samba 3.2.1 Available for Download.eml
<<[Samba] [ANNOUNCE] Samba 3.2.1 Available for Download.eml>> ********* *BEGIN ENCRYPTED or SIGNED PART* ********* Michael Adam wrote:> That is right: the link creation in source/bin is fixed, > but the installation of the links is still broken. > > It _is_ fixed in the v3-3-test branch which will be used for > 3.3.0 (scheduled for December). The changes to the Make file > and configure were just to profound to go into 3.2.X.If "make install" does not work correctly, it should be patched in 3.2.x I believe. But I haven't followed the discussion thoroughly so feel to disregard this if it is out of context. Jerry, This is correct. "make install" does not work and forgets to create the symbolic links to the libraries. As a result, samba may not start correctly and generate errors when loading. Packagers have been able to get around this; but, users installing from source will have a difficult time or need to create the symbolic links themselves. The effected files on my build are libnetapi.so.0, libtalloc.so.1, libtdb.so.1 and libwbclient.so.0. But this depends on the build as there are other libraries that also need symbolic links added, if built. Thanks, James
Gerald (Jerry) Carter
2008-Aug-06 16:51 UTC
[Samba] [ANNOUNCE] Samba 3.2.1 Available for Download.eml
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 James Kosin wrote:> This is correct. "make install" does not work and forgets to create the > symbolic links to the libraries. As a result, samba may not start > correctly and generate errors when loading. Packagers have been able to > get around this; but, users installing from source will have a difficult > time or need to create the symbolic links themselves. > The effected files on my build are libnetapi.so.0, libtalloc.so.1, > libtdb.so.1 and libwbclient.so.0. But this depends on the build as > there are other libraries that also need symbolic links added, if built.Michael, technically the correct thing to do is to install as libXX.so.1 and then have the .so symlink point to the sonamed library. This allows more than one soname lib to exist at the same time (if necessary). The .so file is only used when linking. For example: libtalloc.so.1 libtalloc.so -> libtalloc.so.1 Not the other way around. Do you agree? cheers, jerry - -- ====================================================================Samba ------- http://www.samba.org Likewise Software --------- http://www.likewisesoftware.com "What man is a man who does not make the world better?" --Balian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFImdZpIR7qMdg1EfYRAmYxAKCD8VWRatxs6NFi9una5Z3/03VYngCgrgyY +aVbjySbqytpVVLWTQ7sB0w=ypts -----END PGP SIGNATURE-----
James Kosin
2008-Aug-06 17:18 UTC
[Samba] [ANNOUNCE] Samba 3.2.1 Available for Download.eml
-----Original Message----- From: Gerald (Jerry) Carter [mailto:jerry@samba.org] Sent: Wednesday, August 06, 2008 12:51 PM To: obox@samba.org Cc: James Kosin; samba@lists.samba.org Subject: Re: [Samba] [ANNOUNCE] Samba 3.2.1 Available for Download.eml -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 James Kosin wrote:> This is correct. "make install" does not work and forgets to createthe> symbolic links to the libraries. As a result, samba may not start > correctly and generate errors when loading. Packagers have been ableto> get around this; but, users installing from source will have adifficult> time or need to create the symbolic links themselves. > The effected files on my build are libnetapi.so.0, libtalloc.so.1, > libtdb.so.1 and libwbclient.so.0. But this depends on the build as > there are other libraries that also need symbolic links added, ifbuilt. Michael, technically the correct thing to do is to install as libXX.so.1 and then have the .so symlink point to the sonamed library. This allows more than one soname lib to exist at the same time (if necessary). The .so file is only used when linking. For example: libtalloc.so.1 libtalloc.so -> libtalloc.so.1 Not the other way around. Do you agree? cheers, jerry - -- Yes, though this would mean you would have to be sure the executables linked to libtalloc.so and not necessarily to libtalloc.so.1 like it seems to now. Some have even added a step further by providing a structure like this: libxyz.so.1.2.3 libxyz.so.1 -> libxyz.so.1.2.3 libxyz.so -> libxyz.so.1.2.3 So I guess it really depends on how deep we want to take this. James
James Kosin
2008-Aug-07 01:35 UTC
[Samba] [ANNOUNCE] Samba 3.2.1 Available for Download.eml
----- Original Message ----- From: "Gerald (Jerry) Carter" <jerry@samba.org> Newsgroups: linux.samba Sent: Wednesday, August 06, 2008 1:00 PM Subject: Re: [Samba] [ANNOUNCE] Samba 3.2.1 Available for Download.eml> Michael, > > technically the correct thing to do is to install as libXX.so.1 and then > have the .so symlink point to the sonamed library. This allows more > than one soname lib to exist at the same time (if necessary). The .so > file is only used when linking. > > For example: > > libtalloc.so.1 > libtalloc.so -> libtalloc.so.1 > > Not the other way around. Do you agree? > > > > > > cheers, jerryI think I understand. 1) Redhat and maybe others like putting samba libraries in another directory. So, they use this link to point the libtalloc.so.1 to the file in the correct directory. This is really NOT the proper way... what happens then is the library gets referenced by the libtalloc.so.1 which links to the libtalloc.so file in the /usr/lib/samba directory. This may lead to inefficiant library loading; but, it does work. 2) A better way would be to: a) straigten out the symbolic links. The symbolioc link libtalloc.so should point to libtalloc.so.1 the file. b) add /usr/lib/samba to the /etc/ld.so.conf file where it should be -- or -- put the libraries in the /usr/lib directory. c) fix the Makefile to properly create the libraries the way they should be; instead of back-linking. It is just a term I coined for this werid configuration. This should fix things. I'll try to create a patch for this in my spare time. The install section will also need to install the symbolic links to the files in their proper locations; weather it be in /usr/lib/samba or other. James Kosin
James Kosin
2008-Aug-15 16:33 UTC
[Samba] [ANNOUNCE] Samba 3.2.1 Available for Download.eml
Hi Michael, I did a ./configure... then a make all and got this: [root@beta source]# make all Using FLAGS = -O -D_SAMBA_BUILD_=3 -I/usr/src/redhat/BUILD/samba-3.2.0/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_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt -DLDAP_DEPRECATED -I/include -I/usr/src/redhat/BUILD/samba-3.2.0/source/lib -D_SAMBA_BUILD_=3 PICFLAG = -fPIC LIBS = -lcrypt -lcap -lresolv -lresolv -lnsl -ldl LDFLAGS = -pie -Wl,-z,relro -L./bin DYNEXP = -Wl,--export-dynamic LDSHFLAGS = -shared -Wl,-Bsymbolic -Wl,-z,relro -L./bin SHLIBEXT = so SONAMEFLAG = -Wl,-sonameGenerating smbd/build_options.c Building include/proto.h creating /usr/src/redhat/BUILD/samba-3.2.0/source/include/proto.h Building include/build_env.h creating /usr/src/redhat/BUILD/samba-3.2.0/source/winbindd/winbindd_proto.h creating /usr/src/redhat/BUILD/samba-3.2.0/source/web/swat_proto.h creating /usr/src/redhat/BUILD/samba-3.2.0/source/libnet/libnet_proto.h creating /usr/src/redhat/BUILD/samba-3.2.0/source/client/client_proto.h creating /usr/src/redhat/BUILD/samba-3.2.0/source/utils/net_proto.h creating /usr/src/redhat/BUILD/samba-3.2.0/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 creating /usr/src/redhat/BUILD/samba-3.2.0/source/exports/libtalloc.syms Linking shared library bin/libtalloc.so.@LIBTALLOC_SOVER@ /usr/bin/ld: cannot open linker script file /usr/src/redhat/BUILD/samba-3.2.0/source/exports/libtalloc.so.@LIBTALLOC_SOVER@: No such file or directory collect2: ld returned 1 exit status make: *** [bin/libtalloc.so.@LIBTALLOC_SOVER@] Error 1 [root@beta source]# I can only guess, configure did not get fixed fully... James -----Original Message----- From: Michael Adam [mailto:ma@sernet.de] Sent: Friday, August 15, 2008 10:59 AM To: James Kosin Cc: Gerald (Jerry) Carter; obox@samba.org; samba@lists.samba.org Subject: Re: [Samba] [ANNOUNCE] Samba 3.2.1 Available for Download.eml Hi James, attached find combined diff of my changes. That should work agains the vanilla 3.2.1 tarball. This is what is going to be released next week in 3.2.2. This is the whole thing from 3-3-test. It took me some time and effort to port it back to 3-2-test. :-) I will of course greatly appreciate any feeback! Thanks - Michael -- Michael Adam <ma@sernet.de> SerNet GmbH, Bahnhofsallee 1b, 37081 G?ttingen phone: +49-551-370000-0, fax: +49-551-370000-9 AG G?ttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.SerNet.DE, mailto: Info @ SerNet.DE
Michael Adam
2008-Aug-15 19:42 UTC
[Samba] [ANNOUNCE] Samba 3.2.1 Available for Download.eml
Hi James, James Kosin wrote:> I did a ./configure... then a make all and got this: > [root@beta source]# make all > Using FLAGS = -O -D_SAMBA_BUILD_=3 -I/usr/src/redhat/BUILD/samba-3.2.0/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_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt -DLDAP_DEPRECATED -I/include -I/usr/src/redhat/BUILD/samba-3.2.0/source/lib -D_SAMBA_BUILD_=3 > PICFLAG = -fPIC > LIBS = -lcrypt -lcap -lresolv -lresolv -lnsl -ldl > LDFLAGS = -pie -Wl,-z,relro -L./bin > DYNEXP = -Wl,--export-dynamic > LDSHFLAGS = -shared -Wl,-Bsymbolic -Wl,-z,relro -L./bin > SHLIBEXT = so > SONAMEFLAG = -Wl,-soname> Generating smbd/build_options.c > Building include/proto.h > creating /usr/src/redhat/BUILD/samba-3.2.0/source/include/proto.h > Building include/build_env.h > creating /usr/src/redhat/BUILD/samba-3.2.0/source/winbindd/winbindd_proto.h > creating /usr/src/redhat/BUILD/samba-3.2.0/source/web/swat_proto.h > creating /usr/src/redhat/BUILD/samba-3.2.0/source/libnet/libnet_proto.h > creating /usr/src/redhat/BUILD/samba-3.2.0/source/client/client_proto.h > creating /usr/src/redhat/BUILD/samba-3.2.0/source/utils/net_proto.h > creating /usr/src/redhat/BUILD/samba-3.2.0/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 > creating /usr/src/redhat/BUILD/samba-3.2.0/source/exports/libtalloc.syms > Linking shared library bin/libtalloc.so.@LIBTALLOC_SOVER@ > /usr/bin/ld: cannot open linker script file /usr/src/redhat/BUILD/samba-3.2.0/source/exports/libtalloc.so.@LIBTALLOC_SOVER@: No such file or directory > collect2: ld returned 1 exit status > make: *** [bin/libtalloc.so.@LIBTALLOC_SOVER@] Error 1 > [root@beta source]# > > I can only guess, configure did not get fixed fully...Well, more likly my patch was not correct: I produced it from the v3-2-test branch. I may have forgotten an intermediate commit. Did you apply the patch to the 3.2.0 sources? The patch does not apply cleanly to these. You should use the 3.2.1 sources (available from http://www.samba.org/). If that does not help, I need to try and get the patch complete for 3.2.1. But you can simply try the v3-2-test branch, if you like: Either check out the git repository, as detailed in http://wiki.samba.org/index.php/Using_Git_for_Samba_Development or alternatively, you can download snapshot tarballs from the mirror at http://repo.or.cz/w/Samba.git?a=shortlog;h=refs/heads/v3-2-test Here is a direct link to the current head of the branch: http://repo.or.cz/w/Samba.git?a=snapshot;h=41d440c3198752281556699cc9744b490b9b0a5e;sf=tgz I will also check to get the proper patch on top of 3.2.1. Cheers - Michael -- Michael Adam <ma@sernet.de> <obnox@samba.org> SerNet GmbH, Bahnhofsallee 1b, 37081 G?ttingen phone: +49-551-370000-0, fax: +49-551-370000-9 AG G?ttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.SerNet.DE, mailto: Info @ SerNet.DE -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 206 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20080815/09432a49/attachment.bin
Michael Adam
2008-Aug-15 19:57 UTC
[Samba] [ANNOUNCE] Samba 3.2.1 Available for Download.eml
Michael Adam wrote:> Hi James, > > James Kosin wrote: > > I did a ./configure... then a make all and got this: > > [...] > > Linking shared library bin/libtalloc.so.@LIBTALLOC_SOVER@ > > /usr/bin/ld: cannot open linker script file /usr/src/redhat/BUILD/samba-3.2.0/source/exports/libtalloc.so.@LIBTALLOC_SOVER@: No such file or directory > > collect2: ld returned 1 exit status > > make: *** [bin/libtalloc.so.@LIBTALLOC_SOVER@] Error 1 > > [root@beta source]# > > > > I can only guess, configure did not get fixed fully... > > Well, more likly my patch was not correct: > I produced it from the v3-2-test branch. > I may have forgotten an intermediate commit. > > Did you apply the patch to the 3.2.0 sources? > The patch does not apply cleanly to these. > You should use the 3.2.1 sources (available from http://www.samba.org/). > > If that does not help, I need to try and get the patch > complete for 3.2.1.Here is an updated patch for 3.2.1. This one should work. I had forgotten the diff portion of m4/aclocal.m4. Sorry for that! Cheers - Michael -- Michael Adam <ma@sernet.de> <obnox@samba.org> SerNet GmbH, Bahnhofsallee 1b, 37081 G?ttingen phone: +49-551-370000-0, fax: +49-551-370000-9 AG G?ttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.SerNet.DE, mailto: Info @ SerNet.DE -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 206 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20080815/e32d0b56/attachment.bin
Michael Adam
2008-Aug-15 20:02 UTC
[Samba] [ANNOUNCE] Samba 3.2.1 Available for Download.eml
Skipped content of type multipart/mixed-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 206 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20080815/aabdc374/attachment.bin
James Kosin
2008-Aug-18 13:50 UTC
[Samba] [ANNOUNCE] Samba 3.2.1 Available for Download.eml
Hi Michael, Everything compiled, and installed with the proper links. I'm getting ready to test a RPM build to see if this works. Will let everyone know in about 1-2 hours. James -----Original Message----- From: Michael Adam [mailto:ma@sernet.de] Sent: Friday, August 15, 2008 4:05 PM To: James Kosin Subject: Re: [Samba] [ANNOUNCE] Samba 3.2.1 Available for Download.eml Hi, James Kosin wrote:> No patch was attached....that's basically the one downside for me of using mutt. I keep forgetting the attachements I promised... :-) Btw: You can contact me under the nic "obnox" on the freenode irc channed "samba-technical" if you need some more "realtime" troubleshooting. Cheers - Michael -- Michael Adam <ma@sernet.de> <obnox@samba.org> SerNet GmbH, Bahnhofsallee 1b, 37081 G?ttingen phone: +49-551-370000-0, fax: +49-551-370000-9 AG G?ttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.SerNet.DE, mailto: Info @ SerNet.DE