SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm really struggling with this. I'm using Slackware 9. I know it's old but the server is very well used and I'm really happy with it in every other respect.
When I try to run z-push (latest current version), I get ERROR BackendIMAP : PHP-IMAP module not installed!!!!!
In php (4.3.3) if I try to configure --with-imap, I get and error telling me rfc822.h cannot be found. On the web, I've seen lots of examples of people having this problem but I've yet to come accross the solution.
The documentation for z-push seems to be very mimimal in term of requirement etc.
I guess you need an imap server installed, or at least the sources of it.
I'm running courier-imap (on Slackware 13) compiled from source and this file exists in the sources directory. The strange thing is that it isn't installed under /usr/local/include where the other header files of courier are installed.
So you can try to (re)compile php-imap using CPPFLAGS=/path/to/courier-imap-4.9.1/rfc822 and see if it works
Thanks. It's good to know someone wants to help. I'm already running imapd all my email connections are imap. I don't want to risk them not working. I'm concerned that courier-imap is another version of imap other than the one in the slackware 9 distribution (imapd-4.53-i386-2) and might lead to other complications.
Does anyone know anything about the sources or imapd-4.53? Do they contain the 'missing' header file?
Alternaively, has anyone got z-push working on slackware 9? If so, how?
Here is what you can do. It's a bit tricky, but I've tried it and it worked. You need just to compile imapd (not install it). So get imap-4.5, extract it and do the following:
Open imap-4.5/src/osdep/unix/os_slx.h and add #include <time.h>
From the sources top directory run:
Code:
make slx
ln -s c-client include
mkdir lib
ln -s c-client/c-client.a lib/libc-client.a
Then go to the php sources and recompile it.
*** EDIT ***
Of course to compile php, you have to use:
No luck so far. I've also tried php 5 but gone back to trying to configure imap 4.3.3 again. I'm currently getting as far as
gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/lib/ -L/usr/local/lib/ conftest.c -limap -lcrypt -lresolv -lm -ldl -lnsl
which complains it can't find -limap.
Assuming its looking for imap.so (there's no imap.a on my system) I've tried pointing it to its location (/usr/lib obtained from a php-imap download) but I seem to have come to a dead end.
Why oh why can't Linux packages state thier dependancies? They used to. Or at least there was more info than seems to be available these days.
Thanks again. Any more help would be much appreciated.
Did you follow the instructions in my previous post? There should be lc-client instead of limap.
Don't forget to run make distclean in php sources before running ./configure again
if your issue is solved now, please use the "Thread Tools" above your first post of the thread and mark it as "SOLVED". And don't forget to add to bathory's reputation.
if your issue is solved now, please use the "Thread Tools" above your first post of the thread and mark it as "SOLVED". And don't forget to add to bathory's reputation.
Markus
OK. Will do. Unfortunately, the problem is still on going as yet.
make now runs a few compilations (including the one that failed above before coming up with.
/usr/src/php-4.3.3/ext/imap/php_imap.c:915: `SET_QUOTA' undeclared (first use in this function)
Unfortunately this is usual when you're trying to compile old software. I'm also afraid that even if you succeed compiling php-4.3.3 with imap support, the fact that you're going to use such an old php version, will not allow z-push to be installed.
Anyway are you sure that the /usr/src/imap-4.5/include symlink points to /usr/src/imap-4.5/c-client? What gives:
OK. Will do. Unfortunately, the problem is still on going as yet.
Sorry, I misread that.
Well, I don't have an answer to your problem. But it may be helpful, to report this thread to a Moderator and ask to move it to the Slackware-forum of LQ http://www.linuxquestions.org/questions/slackware-14/. As you know there are many knowledgeable and helpful people.
Another suggestion would be to start a new thread in the Slackware-forum and ask how one can upgrade a server from Slackware 9.0 to 13.1 (or even more recent ) without losing to many of the working configurations.
Unfortunately this is usual when you're trying to compile old software. I'm also afraid that even if you succeed compiling php-4.3.3 with imap support, the fact that you're going to use such an old php version, will not allow z-push to be installed.
Anyway are you sure that the /usr/src/imap-4.5/include symlink points to /usr/src/imap-4.5/c-client? What gives:
Well, I don't have an answer to your problem. But it may be helpful, to report this thread to a Moderator and ask to move it to the Slackware-forum of LQ http://www.linuxquestions.org/questions/slackware-14/. As you know there are many knowledgeable and helpful people.
Another suggestion would be to start a new thread in the Slackware-forum and ask how one can upgrade a server from Slackware 9.0 to 13.1 (or even more recent ) without losing to many of the working configurations.
Good Luck
Markus
Happy to do either. When I cliced 'Report' It said this was only for rude/abusive etc. So I guess I've misunderstood. Perhaps theres some other way to report a thread as such.
Upgrading the server would be good but when I've done that in the past, I've had similar battles to get the more important existing packages going and suffered quite a bit of downtime as a consequence.
D'oh, in this case, I don't know what the actual problem is. It looks like some header file is missing, but you've the include symlink correct. Besides make chokes on php_imap.c line 915, while a few lines before that there is another similar declaration.
Maybe it's worth trying imap-2002e.tar.Z that is of year 2003 (same year as php-4.3.3).
FYI, I've tried it also and it compiled successfully (nb there is no need to add "#include <time.h>" anymore because it's already included), but I had to use no SSL, because my openssl version is newer than the one that existed back on 2003. To do so I used:
Code:
make slx SSLTYPE=none
, but you may not need to do it if imap-2002e compiles ok for you with just "make slx"
Then the usual stuff:
Code:
ln -s c-client include
ln -s c-client lib (it's the same as creating the lib symlink and adding the library there)
cd /path/to/php-4.3.3
make distclean
./configure --with-imap=/path/to/imap-2002e --with-apxs=/path/to/apxs --with-mysql ...
make
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.