qmail errno problemen

Pagina: 1
Acties:

  • Zym0tiC
  • Registratie: Februari 2001
  • Laatst online: 05:40
Ik ben nu bezig om qmail + tools te installeren onder slackware 9.1 aan de hand van een tutorial op qmailrocks.org.

Nu ben ik op het volgende gedeelte aangekomen:
RH 9/RHEL/Fedora/Slackware 9.x users: You will need to patch qmail with an additional errno patch:

patch < /downloads/qmailrocks/patches/qmail-1.03.errno.patch

make man && make setup check
Dit is trouwens de output van make setup check voor het draaien van die patches:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
./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: error: storage size of `st' isn't known
qmail-local.c: In function `checkhome':
qmail-local.c:313: error: storage size of `st' isn't known
qmail-local.c: In function `qmeox':
qmail-local.c:329: error: storage size of `st' isn't known
qmail-local.c: In function `qmeexists':
qmail-local.c:348: error: storage size of `st' isn't known
qmail-local.c:361: error: `S_IFMT' undeclared (first use in this function)
qmail-local.c:361: error: (Each undeclared identifier is reported only once
qmail-local.c:361: error: for each function it appears in.)
qmail-local.c:361: error: `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


En dit is na het draaien van die patch (eigenlijk zou ik nu dus geen errors moeten krijgen :( :
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
./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
In file included from qmail-local.c:19:
error.h:4:19: errno.h: No such file or directory
qmail-local.c: In function `temp_fork':
qmail-local.c:37: error: `errno' undeclared (first use in this function)
qmail-local.c:37: error: (Each undeclared identifier is reported only once
qmail-local.c:37: error: for each function it appears in.)
qmail-local.c: In function `temp_read':
qmail-local.c:38: error: `errno' undeclared (first use in this function)
qmail-local.c: In function `temp_qmail':
qmail-local.c:42: error: `errno' undeclared (first use in this function)
qmail-local.c: In function `maildir_child':
qmail-local.c:85: error: storage size of `st' isn't known
qmail-local.c:91: error: `errno' undeclared (first use in this function)
qmail-local.c: In function `mailfile':
qmail-local.c:183: error: `errno' undeclared (first use in this function)
qmail-local.c: In function `mailprogram':
qmail-local.c:247: error: `errno' undeclared (first use in this function)
qmail-local.c: In function `checkhome':
qmail-local.c:313: error: storage size of `st' isn't known
qmail-local.c:316: error: `errno' undeclared (first use in this function)
qmail-local.c: In function `qmeox':
qmail-local.c:329: error: storage size of `st' isn't known
qmail-local.c:338: error: `errno' undeclared (first use in this function)
qmail-local.c: In function `qmeexists':
qmail-local.c:348: error: storage size of `st' isn't known
qmail-local.c:354: error: `errno' undeclared (first use in this function)
qmail-local.c:361: error: `S_IFMT' undeclared (first use in this function)
qmail-local.c:361: error: `S_IFREG' undeclared (first use in this function)
qmail-local.c: In function `main':
qmail-local.c:491: error: `errno' undeclared (first use in this function)
qmail-local.c:450: warning: return type of `main' is not `int'
make: *** [qmail-local.o] Error 1


gcc version 3.3.3

There is no such thing as innocence, only degrees of guilt | Flickr!


  • Blaasvis
  • Registratie: November 2001
  • Laatst online: 19-02 09:30

Blaasvis

Cidora \o/

qmail-local.c:1:23: sys/types.h: No such file or directory
lijkt er op dat ie de kernel-headers niet kan vinden ;)

Freedom is everything you need ; <moto-moi|afk> ik verkloot het gewoon nooit :P


  • Zym0tiC
  • Registratie: Februari 2001
  • Laatst online: 05:40
Blaasvis schreef op 02 mei 2004 @ 16:13:
qmail-local.c:1:23: sys/types.h: No such file or directory
lijkt er op dat ie de kernel-headers niet kan vinden ;)
Kan het zijn dat ik een bepaalde package mis want errno.h is niet op mijn systeem net zomin als sys/types.h en sys/stat.h
De kernel source is trouwens in /usr/src/linux geinstalleerd


ik heb net even een paar links aangelegd en nu zijn die errors in het begin weg. Wat overblijft is:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
qmail-local.c: In function `temp_fork':
qmail-local.c:37: error: `errno' undeclared (first use in this function)
qmail-local.c:37: error: (Each undeclared identifier is reported only once
qmail-local.c:37: error: for each function it appears in.)
qmail-local.c: In function `temp_read':
qmail-local.c:38: error: `errno' undeclared (first use in this function)
qmail-local.c: In function `temp_qmail':
qmail-local.c:42: error: `errno' undeclared (first use in this function)
qmail-local.c: In function `maildir_child':
qmail-local.c:85: error: storage size of `st' isn't known
qmail-local.c:91: error: `errno' undeclared (first use in this function)
qmail-local.c: In function `mailfile':
qmail-local.c:183: error: `errno' undeclared (first use in this function)
qmail-local.c: In function `mailprogram':
qmail-local.c:247: error: `errno' undeclared (first use in this function)
qmail-local.c: In function `checkhome':
qmail-local.c:313: error: storage size of `st' isn't known
qmail-local.c:316: error: `errno' undeclared (first use in this function)
qmail-local.c: In function `qmeox':
qmail-local.c:329: error: storage size of `st' isn't known
qmail-local.c:338: error: `errno' undeclared (first use in this function)
qmail-local.c: In function `qmeexists':
qmail-local.c:348: error: storage size of `st' isn't known
qmail-local.c:354: error: `errno' undeclared (first use in this function)
qmail-local.c: In function `main':
qmail-local.c:491: error: `errno' undeclared (first use in this function)
qmail-local.c:450: warning: return type of `main' is not `int'
make: *** [qmail-local.o] Error 1


Nog niet veel opgeschoten helaas ;(

[ Voor 79% gewijzigd door Zym0tiC op 02-05-2004 16:30 ]

There is no such thing as innocence, only degrees of guilt | Flickr!


  • Blaasvis
  • Registratie: November 2001
  • Laatst online: 19-02 09:30

Blaasvis

Cidora \o/

ik ken slackware niet zo goed....
maar hier staat ie in /usr/include/sys/stat.h en is glibc de owner.
Staat je $PATH variable wel goed ?

[edit]
kijk eens naar welke versie van glibc qmail nodig heeft ?

[ Voor 21% gewijzigd door Blaasvis op 02-05-2004 16:33 ]

Freedom is everything you need ; <moto-moi|afk> ik verkloot het gewoon nooit :P


  • igmar
  • Registratie: April 2000
  • Laatst online: 31-01 23:50

igmar

ISO20022

Zym0tiC schreef op 02 mei 2004 @ 16:11:

<snip>

gcc version 3.3.3
Je mist de glibc header files op je systeem.

  • lordgandalf
  • Registratie: Februari 2002
  • Laatst online: 13-02 15:00
mail-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

deze komen naar mijn weten uit zlibg en zlibg-devel teminste die moest ik installeren om het onder debian aan de praat te krijgen

Steam: Profile / Socialclub: Profile / Uplay: minedwarf / Origin: lordgandalf3


  • Zym0tiC
  • Registratie: Februari 2001
  • Laatst online: 05:40
igmar schreef op 02 mei 2004 @ 17:45:
[...]


Je mist de glibc header files op je systeem.
idd ja...stom van mij...na het installeren hiervan ging wel alles goed

There is no such thing as innocence, only degrees of guilt | Flickr!


  • Tomsworld
  • Registratie: Maart 2001
  • Niet online

Tomsworld

officieel ele fan :*

Charles Cazabon, Dave Sill, Henning Brauer, Peter Samuel, and Russell Nelson have put together a netqmail-1.05 distribution of qmail. It is comprised of qmail-1.03 plus the recommended patches, some documentation, and a shell script which prepares the files for compilation.
http://mirrors.kangaroot.net/qmail/top.html

Dat bespaard je werk en heb je direct een aantal bijna noodzakelijke patches.

"De kans dat een snee brood op een nieuw tapijt valt met de beboterde zijde onderaan, is recht evenredig met de prijs van het tapijt"


  • Zym0tiC
  • Registratie: Februari 2001
  • Laatst online: 05:40
qmail is nu up and running...dacht ik.
Wanneer ik namelijk telnet localhost 110 doe dan krijg ik de volgende error:

code:
1
2
3
4
5
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
-ERR usage: popup hostname subprogram
Connection closed by foreign host.


Google en de got search leverde me niets op ;(

There is no such thing as innocence, only degrees of guilt | Flickr!


  • zeroxcool
  • Registratie: Januari 2001
  • Laatst online: 20-02 14:43
Hoe start je de qmail POP daemon?

zeroxcool.net - curity.eu


  • Zym0tiC
  • Registratie: Februari 2001
  • Laatst online: 05:40
code:
1
2
3
4
5
#!/bin/sh
PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin
export PATH
exec tcpserver -H -R -v -c100 0 110 qmail-popup mail.shinebox
/home/vpopmail/bin/vchkpw qmail-pop3d Maildir 2>&1

There is no such thing as innocence, only degrees of guilt | Flickr!


  • Zym0tiC
  • Registratie: Februari 2001
  • Laatst online: 05:40
Ik het probleem gevonden achter mail.shinebox moest nog een \

There is no such thing as innocence, only degrees of guilt | Flickr!

Pagina: 1