LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-28-2003, 01:34 AM   #1
workshop
LQ Newbie
 
Registered: Jul 2003
Posts: 1

Rep: Reputation: 0
qmail compilation error


Hello everyone,

I've installed qmail several times over the years, but always before on Redhat systems. This time I'm attempting to compile a fresh installation of qmail-1.03 onto Slackware 9.0. When running "make setup check" I get:

./compile qmail-local.c
qmail-local.c:1:23: sys/types.h: No such file or directory
qmail-local.c:2:22: sys/stat.h: No such file or directory
qmail-local.c: In function `maildir_child':
qmail-local.c:85: storage size of `st' isn't known
qmail-local.c: In function `checkhome':
qmail-local.c:313: storage size of `st' isn't known
qmail-local.c: In function `qmeox':
qmail-local.c:329: storage size of `st' isn't known
qmail-local.c: In function `qmeexists':
qmail-local.c:348: storage size of `st' isn't known
qmail-local.c:361: `S_IFMT' undeclared (first use in this function)
qmail-local.c:361: (Each undeclared identifier is reported only once
qmail-local.c:361: for each function it appears in.)
qmail-local.c:361: `S_IFREG' undeclared (first use in this function)
qmail-local.c: In function `main':
qmail-local.c:450: warning: return type of `main' is not `int'
make: *** [qmail-local.o] Error 1


I know that some of you will state the obvious about the files missing. Thankyou for your grasp of the situation. The finer point is, why is the makefile pointing at files which don't exist? I'm not a programmer by any stretch of the imagination, and I'd just like this thing to compile and install cleanly.

Thanks in advance!
 
Old 07-28-2003, 07:44 AM   #2
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
I suspect that you probably need to apply the patch for glibc 2.3.1. You can find a link to it on qmail.org.
 
Old 07-28-2003, 10:35 AM   #3
mrhyde
Member
 
Registered: Jul 2003
Location: Europe
Posts: 198

Rep: Reputation: 30
Did stickman's patch suggestion work? I would think that qmail-local.c has " #include sys/types.h " and " #include sys/stat.h " on lines 22 and 23, I would think that your redhat machines had full development libraries installed and you slackware box does not.
 
Old 01-06-2005, 06:38 AM   #4
edsonx
LQ Newbie
 
Registered: Jan 2005
Posts: 1

Rep: Reputation: 0
Thumbs up

install libc6-dev package. It includes stat.h and types.h headers files.
It works to me.

qmail-local.c:1:23: sys/types.h: No such file or directory
qmail-local.c:2:22: sys/stat.h: No such file or directory

good luck.
 
Old 01-06-2005, 07:01 AM   #5
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Slackware does not split its packages like rpm based distros do (with the exception of X). stickman's suggestion sounds correct.
 
  


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
Kernel compilation error: Error 15: File not found Niceman2005 Linux - General 9 10-04-2007 03:45 AM
qmail compilation error newuser455 Linux - Software 1 01-24-2005 07:40 AM
QMAIL error:554 Transaction failed: message format error mpk25 Linux - Software 1 10-15-2004 12:53 PM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 11:29 AM
Sqwebmail compilation error ... [maildirsearchC.o] Error 1 boogie_maan Linux - Software 0 10-26-2002 07:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:59 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