[opensuse] Problem with libpam.so
Hi - I am wanting to track down and grok a really bad error message in vsftpd which I and a lot of other folks (as reported by Google) are having troubles with. So I decided to try and compile it from source but I ran into a snag, the loader is complaining about the symbols in libpam.so.0 I have verified that the x32 and x64 bit versions of libpam are installed as well as the developer packages. Any gurus around who know why I am getting this belly ache? For reference - OpenSuSE Leap 15.0 x64 bit system. I downloaded the source files for vsftpd as follows - First I determined the package info - marc@bigbang:~/vsftpd> rpm -q --qf '%{disturl}\n' vsftpd obs://build.opensuse.org/openSUSE:Maintenance:8566/openSUSE_Leap_15.0_Update/89aacae22103943e0d60bcb0d3c2b665-vsftpd.openSUSE_Leap_15.0_Update Then use this info with osc to get the source code - marc@bigbang:~/vsftpd> osc co -r 89aacae22103943e0d60bcb0d3c2b665 openSUSE:Maintenance:8566 vsftpd.openSUSE_Leap_15.0_Update I made a #define change in one of the header files to include SSL support (as directed in the documentation) which is the area I am having troubles with. After a few iterations with make clean and make to determine and install missing libraries (wish there was an easier way to determine what libraries/packages are necessary for compiling a given package) I got this far - marc@bigbang:~/vsftpd/openSUSE:Maintenance:8566/vsftpd.openSUSE_Leap_15.0_Update/vsftpd-3.0.3> make makeobj[0]: Entering directory `/home/marc/vsftpd/openSUSE:Maintenance:8566/vsftpd.openSUSE_Leap_15.0_Update/vsftpd-3.0.3' gcc -o vsftpd main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o tunables.o ftpdataio.o secbuf.o ls.o postprivparent.o logging.o str.o netstr.o sysstr.o strlist.o banner.o filestr.o parseconf.o secutil.o ascii.o oneprocess.o twoprocess.o privops.o standalone.o hash.o tcpwrap.o ipaddrparse.o access.o features.o readwrite.o opts.o ssl.o sslslave.o ptracesandbox.o ftppolicy.o sysutil.o sysdeputil.o seccompsandbox.o -Wl,-s -fPIE -pie -Wl,-z,relro -Wl,-z,now `./vsf_findlibs.sh` /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /lib/libpam.so.0: error adding symbols: file in wrong format collect2: error: ld returned 1 exit status gmake: *** [Makefile:29: vsftpd] Error 1 And I am stuck, dunno what is ailing libpam.so.0 and what to do about it... Suggestions? Thanks Marc -- Linux Counter -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Marc Chamberlin wrote:
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /lib/libpam.so.0: error adding symbols: file in wrong format collect2: error: ld returned 1 exit status gmake: *** [Makefile:29: vsftpd] Error 1
Wild guess - libpam.so.0 is 32bit? # file /lib/libpam.so.0.84.2 /lib/libpam.so.0.84.2: ELF 32-bit LSB shared object, Intel 80386, You'll want to link with the 64-bit version: # file /lib64/libpam.so.0.84.2 /lib64/libpam.so.0.84.2: ELF 64-bit LSB shared object, x86-64, -- Per Jessen, Zürich (-2.8°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/03/2019 11:23 PM, Per Jessen wrote:
Marc Chamberlin wrote:
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /lib/libpam.so.0: error adding symbols: file in wrong format collect2: error: ld returned 1 exit status gmake: *** [Makefile:29: vsftpd] Error 1 Wild guess - libpam.so.0 is 32bit?
# file /lib/libpam.so.0.84.2 /lib/libpam.so.0.84.2: ELF 32-bit LSB shared object, Intel 80386,
You'll want to link with the 64-bit version:
# file /lib64/libpam.so.0.84.2 /lib64/libpam.so.0.84.2: ELF 64-bit LSB shared object, x86-64,
Thanks Per, you pointed out the obvious and I am slapping myself on my head! I got to wondering why in the heck the make was trying to load the 32 bit version of the pam library so I dug into the make file. Turns out it uses a "cheesy" script to find and load libraries which defines a library macro to load most libraries with the gcc -l option, EXCEPT for the pam library which the script explicitly defines it to be loaded out of the /lib directory. (yeah this is a bug in the script and I will submit a bug report against it.) This script SHOULD have defined the load with a -lpam option which would have then loaded the right version. Ever onward to solve then next puzzle which seems to be a missing bunch of SSL stuff for vsftpd... I will puzzle on it some but may be back with more questions. ;-) Marc... -- Linux Counter -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Marc Chamberlin wrote:
On 02/03/2019 11:23 PM, Per Jessen wrote:
Marc Chamberlin wrote:
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /lib/libpam.so.0: error adding symbols: file in wrong format collect2: error: ld returned 1 exit status gmake: *** [Makefile:29: vsftpd] Error 1 Wild guess - libpam.so.0 is 32bit?
# file /lib/libpam.so.0.84.2 /lib/libpam.so.0.84.2: ELF 32-bit LSB shared object, Intel 80386,
You'll want to link with the 64-bit version:
# file /lib64/libpam.so.0.84.2 /lib64/libpam.so.0.84.2: ELF 64-bit LSB shared object, x86-64,
Thanks Per, you pointed out the obvious and I am slapping myself on my head!
Don't do that, you'll only end up bald, like me :-)
Ever onward to solve then next puzzle which seems to be a missing bunch of SSL stuff for vsftpd... I will puzzle on it some but may be back with more questions. ;-)
You said something about a bad error message from vsftpd - when you've made some progress, maybe keep us in the loop? -- Per Jessen, Zürich (-0.1°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/04/2019 11:01 AM, Per Jessen wrote:
Marc Chamberlin wrote:
On 02/03/2019 11:23 PM, Per Jessen wrote:
Marc Chamberlin wrote:
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /lib/libpam.so.0: error adding symbols: file in wrong format collect2: error: ld returned 1 exit status gmake: *** [Makefile:29: vsftpd] Error 1 Wild guess - libpam.so.0 is 32bit?
# file /lib/libpam.so.0.84.2 /lib/libpam.so.0.84.2: ELF 32-bit LSB shared object, Intel 80386,
You'll want to link with the 64-bit version:
# file /lib64/libpam.so.0.84.2 /lib64/libpam.so.0.84.2: ELF 64-bit LSB shared object, x86-64,
Thanks Per, you pointed out the obvious and I am slapping myself on my head! Don't do that, you'll only end up bald, like me :-)
Ever onward to solve then next puzzle which seems to be a missing bunch of SSL stuff for vsftpd... I will puzzle on it some but may be back with more questions. ;-) You said something about a bad error message from vsftpd - when you've made some progress, maybe keep us in the loop?
Sure, but maybe I should start a new thread? I have now managed to get past the SSL compilation/link errors I mentioned also and gotten a clean compile/build of vsftpd. These were caused by more mistakes in the script I mentioned - vsf_findlibs.sh which incorrectly tries to determine if/when the SSL and Crypto libs should be linked in or not. I will explain what I have had to do so far to get vsftpd to build, and the problem with vsftpd that I am trying to chase down in a new thread that I will title - "Issues with vsftpd", but let me poke at it a little further first. Marc.. -- Linux Counter -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Op maandag 4 februari 2019 05:50:03 CET schreef Marc Chamberlin:
Hi - I am wanting to track down and grok a really bad error message in vsftpd which I and a lot of other folks (as reported by Google) are having troubles with. So I decided to try and compile it from source but I ran into a snag, the loader is complaining about the symbols in libpam.so.0 I have verified that the x32 and x64 bit versions of libpam are installed as well as the developer packages. Any gurus around who know why I am getting this belly ache?
For reference - OpenSuSE Leap 15.0 x64 bit system.
I downloaded the source files for vsftpd as follows -
First I determined the package info -
marc@bigbang:~/vsftpd> rpm -q --qf '%{disturl}\n' vsftpd obs://build.opensuse.org/openSUSE:Maintenance:8566/openSUSE_Leap_15.0_Update /89aacae22103943e0d60bcb0d3c2b665-vsftpd.openSUSE_Leap_15.0_Update
Then use this info with osc to get the source code -
marc@bigbang:~/vsftpd> osc co -r 89aacae22103943e0d60bcb0d3c2b665 openSUSE:Maintenance:8566 vsftpd.openSUSE_Leap_15.0_Update
I made a #define change in one of the header files to include SSL support (as directed in the documentation) which is the area I am having troubles with. After a few iterations with make clean and make to determine and install missing libraries (wish there was an easier way to determine what libraries/packages are necessary for compiling a given package) I got this far -
marc@bigbang:~/vsftpd/openSUSE:Maintenance:8566/vsftpd.openSUSE_Leap_15.0_Up date/vsftpd-3.0.3> make makeobj[0]: Entering directory `/home/marc/vsftpd/openSUSE:Maintenance:8566/vsftpd.openSUSE_Leap_15.0_Updat e/vsftpd-3.0.3' gcc -o vsftpd main.o utility.o prelogin.o ftpcmdio. postlogin.o privsock.o tunables.o ftpdataio.o secbuf.o ls.o postprivparent.o logging.o str.o netstr.o sysstr.o strlist.o banner.o filestr.o parseconf.o secutil.o ascii.o oneprocess.o twoprocess.o privops.o standalone.o hash.o tcpwrap.o ipaddrparse.o access.o features.o readwrite.o opts.o ssl.o sslslave.o ptracesandbox.o ftppolicy.o sysutil.o sysdeputil.o seccompsandbox.o -Wl,-s -fPIE -pie -Wl,-z,relro -Wl,-z,now `./vsf_findlibs.sh` /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /lib/libpam.so.0: error adding symbols: file in wrong format collect2: error: ld returned 1 exit status gmake: *** [Makefile:29: vsftpd] Error 1
And I am stuck, dunno what is ailing libpam.so.0 and what to do about it... Suggestions? Thanks Marc Is pam-devel installed?
-- Gertjan Lettink a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Knurpht-openSUSE
-
Marc Chamberlin
-
Per Jessen