LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-29-2008, 09:18 AM   #1
Rupa
Member
 
Registered: Apr 2008
Location: Berlin, Germany
Distribution: Slackware, Debian, NetBSD
Posts: 80

Rep: Reputation: 27
openssl upgrade breaks proftpd


Hello everyone,

today there was an upgrade to openssl which breaks functioning of proftpd. From my /var/log/syslog:

Code:
Jul 29 12:35:39 dakini proftpd[3327]: mod_tls/2.1.2: compiled using OpenSSL version 'OpenSSL 0.9.8g 19 Oct 2007' headers, but linked to OpenSSL version 'OpenSSL 0.9.8h 28 May 2008' library
Jul 29 12:35:39 dakini proftpd[3327]: Fatal: unable to load module 'mod_tls.c': Operation not permitted
"Ok", I thought, "I'm going to recompile proftpd to link it against the new includes". So I fetched the source directory from ftp.slackware.com and started ./proftpd.Slackbuild. But - to my surprise - it failed to compile:

Code:
config.status: creating Makefile
config.status: creating Make.rules
config.status: creating config.h
config.status: executing default commands
echo \#define BUILD_STAMP \"`date`\" >include/buildstamp.h
cd lib/ && make lib
make[1]: Entering directory `/tmp/proftpd-1.3.1/lib'
ccache gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -march=i486 -mtune=i686 -Wall -c pr_fnmatch.c
In file included from /usr/include/asm/sigcontext.h:6,
                 from /usr/include/bits/sigcontext.h:29,
                 from /usr/include/signal.h:334,
                 from /usr/include/sys/wait.h:32,
                 from ../include/conf.h:96,
                 from pr_fnmatch.c:39:
/usr/include/asm/types.h:6: error: conflicting types for ‘mode_t’
/usr/include/sys/types.h:72: error: previous declaration of ‘mode_t’ was here
make[1]: *** [pr_fnmatch.o] Error 1
make[1]: Leaving directory `/tmp/proftpd-1.3.1/lib'
make: *** [lib] Error 2
So, does someone has got an idea what to do to get a working proftpd again?

The installed kernel headers on my box are kernel-headers-2.6.24.5_smp-x86-2 which matches the installed kernel source and the running kernel.

Kind regards,
Martin

Last edited by Rupa; 07-29-2008 at 09:22 AM.
 
Old 07-29-2008, 09:53 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Try changing this:
--with-modules=mod_readme:mod_ratio:mod_tls:mod_wrap:mod_ctrls_admin
to this:
--with-modules=mod_readme:mod_ratio:mod_wrap:mod_ctrls_admin

You my have found a bug in the sources. I see that version 1.3.2rc1 is out, so you might as well try compiling the very latest:
http://proftp.oslevel.de/

If none of that works, try simply re-compiling the same old version you were using before. These errros with sys/types.h are pretty common, but the fact that it mentions mode_t seems to indicate improperly written includes vis-a-vis newer glibc versions- mode_t has to be handled differently for 64bit compatibility

Ahh, here I found it:
http://bugs.proftpd.org/attachment.c...10&action=edit
 
Old 07-29-2008, 10:49 AM   #3
Rupa
Member
 
Registered: Apr 2008
Location: Berlin, Germany
Distribution: Slackware, Debian, NetBSD
Posts: 80

Original Poster
Rep: Reputation: 27
Quote:
Originally Posted by gnashley View Post
If none of that works, try simply re-compiling the same old version you were using before.
This was what I did. It was the original Slackware 12.1 source and Slackbuild. So I wonder how Pat compiled this one.

Quote:
Originally Posted by gnashley View Post
This was indeed very helpful, thanks. I applied the two little patches and it compiled like a charme.

Thank you very much for your help.
 
Old 07-29-2008, 12:47 PM   #4
rg3
Member
 
Registered: Jul 2007
Distribution: Fedora
Posts: 527

Rep: Reputation: Disabled
Just a minor remark: remember to write PV about this so he can correct the official package.
 
Old 07-29-2008, 12:52 PM   #5
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
Thanks!

Especially for the email notice. :-)

I'll have something out in a couple of hours, max.

Pat
 
Old 07-29-2008, 12:58 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
I'd like to comment that you should consider maybe switching from proftpd to vsftpd. It's secure, stable and seems to have a better track record from proftpd.

Good to see you around the forums again volkerdi!
 
Old 07-29-2008, 01:39 PM   #7
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
Smile

Hey there --

I'm posting here to let everyone know that we're taking fast action. ProFTPD 1.3.1 packages are tested and uploading now. Once checksums are verified they'll be out on OSUOSL first. I expect that will be within the hour.

Also, vsftpd is my personal choice when I'm running an FTP server (I trust Chris Evans when it comes to security matters), but if I'm not mistaken ProFTPD does have some desirable features that are absent in vsftpd, so it's good to have choices.

Cheers! :-)

Pat
 
Old 07-29-2008, 01:44 PM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by volkerdi View Post
Also, vsftpd is my personal choice when I'm running an FTP server (I trust Chris Evans when it comes to security matters), but if I'm not mistaken ProFTPD does have some desirable features that are absent in vsftpd, so it's good to have choices.
Yes, choices are good. It's nice that both are available in Slackware for such reasons.

So when are you going to start including postfix in Slackware alongside sendmail...
 
Old 07-29-2008, 02:18 PM   #9
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
OK, the new ProFTPD packages are out on ftp.osuosl.org. Please let me know if there are problems with them, or any other issues related to the recent updates.

As far as Postfix -- we keep talking about it, but it's hard to know where to draw that line. There's already a build script for it on slackkbuilds.org, and we're trying to keep from adding _everything_ to the main Slackware tree, as we generally end up looking at continual "inflation" anyway.

That said, it's been something on the table for quite some time now...

Take care,

Pat
 
Old 07-29-2008, 02:20 PM   #10
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
Oops. Obviously I meant "slackbuilds.org". :-)
 
Old 03-15-2010, 02:57 PM   #11
biol75
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
Broke again 1 march 2010

Another OpenSSL upgrade, and proftpd died in the same way. The new patch did not recognise all the directives in the configuration file:

$$tail proftpd.log
Mar 15 19:42:56 biolpc22 proftpd[5963]: Fatal: unknown configuration directive 'DisplayFirstChdir' on line 57 of '/etc/proftpd.conf'. Is commenting the line 57 enough?


chris
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xorg upgrade breaks acpid kellinjar Linux - Software 4 02-11-2006 02:09 PM
upgrade breaks phpldapadmin gdsword Debian 2 11-04-2005 03:41 AM
OpenSSL Upgrade neodaemon Linux - Security 2 10-14-2005 01:40 PM
Mozilla upgrade to 1.7 breaks slack! slackhack Slackware 12 07-26-2004 06:10 AM
openssl upgrade cuss Linux - General 12 03-11-2003 12:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration