Asterisk crash @ start: Already have an application 'Pickup'

Ubuntu Hardy, Asterisk 1.4.24.1 (but earlier versions did the same!)
When I do:
asterisk -vvvvvvvvgc
I get this (only the last page copied here):

== Registered file format wav49, extension(s) WAV|wav49
format_wav_gsm.so => (Microsoft WAV format (Proprietary GSM))
== Registered application 'ForkCDR’
app_forkcdr.so => (Fork The CDR into 2 separate entities)
== Registered application 'WaitForRing’
app_waitforring.so => (Waits until first ring after time)
== Registered file format sln, extension(s) sln|raw
format_sln.so => (Raw Signed Linear Audio support (SLN))
== Registered custom function TIMEOUT
func_timeout.so => (Channel timeout dialplan functions)
== Registered application ‘ChanSpy’
== Registered application 'ExtenSpy’
app_chanspy.so => (Listen to the audio of an active channel)
== Registered application ‘VoiceMail’
== Registered application ‘VoiceMailMain’
== Registered application ‘MailboxExists’
== Registered application ‘VMAuthenticate’
== Parsing ‘/etc/asterisk/voicemail.conf’: Found
== Parsing ‘/etc/asterisk/users.conf’: Found
app_voicemail_imap.so => (Comedian Mail (Voicemail System) with IMAP Storage)
== Registered custom function CDR
func_cdr.so => (CDR dialplan function)

more…

root@gts-server:~# tail /var/log/asterisk/full
[Apr 22 22:57:53] VERBOSE[14324] logger.c: == Registered application ‘VoiceMail’
[Apr 22 22:57:53] VERBOSE[14324] logger.c: == Registered application ‘VoiceMailMain’
[Apr 22 22:57:53] VERBOSE[14324] logger.c: == Registered application ‘MailboxExists’
[Apr 22 22:57:53] VERBOSE[14324] logger.c: == Registered application ‘VMAuthenticate’
[Apr 22 22:57:53] VERBOSE[14324] logger.c: == Parsing ‘/etc/asterisk/voicemail.conf’: [Apr 22 22:57:53] VERBOSE[14324] logger.c: Found
[Apr 22 22:57:53] VERBOSE[14324] logger.c: == Parsing ‘/etc/asterisk/users.conf’: [Apr 22 22:57:53] VERBOSE[14324] logger.c: Found
[Apr 22 22:57:53] VERBOSE[14324] logger.c: app_voicemail_imap.so => (Comedian Mail (Voicemail System) with IMAP Storage)
[Apr 22 22:57:53] VERBOSE[14324] logger.c: == Registered custom function CDR
[Apr 22 22:57:53] VERBOSE[14324] logger.c: func_cdr.so => (CDR dialplan function)
[Apr 22 22:57:53] WARNING[14324] pbx.c: Already have an application ‘Pickup’

What causes this? I have searched the config files for asterisk in /etc, but cannot find a reference to “Pickup”.

How do I fix this?

The list of applications to register comes from the code. That may mean that you have a mixture of two incompatible versions in your modules directory.

So if I delete by complete installation and redo it all, including /etc/asterisk/ I should not have this problem any more?

(I did have previous versions of the system, although it was never working…)

I have removed all asterisk folders and config files by finding all directories and files referring to asterisk (as listed below), and then I recompiled asterisk, zaptel and asterisk add-ons, but I still get the same error.

whereis asterisk

asterisk: /usr/src/freepbx-2.5.1/asterisk.conf /usr/src/freepbx/asterisk.conf /usr/sbin/asterisk /etc/asterisk /usr/lib/asterisk /usr/include/asterisk.h /usr/include/asterisk /usr/share/man/man8/asterisk.8

I deleted all the above, except for all those in /usr/src.

Strangely enough though, if I start asterisk with the -cvvvvv option, it starts fine, but as soon as I use “/etc/init.d/asterisk start” or the FreePBX control script “start_asterisk start”, I get the error as mentioned.