LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-29-2005, 05:19 PM   #1
snakeo2
Member
 
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Rep: Reputation: 30
question regarding qmail??


I want to install an email server in my box for practice purposes and and found qmailrocks.org. I'm following their tutorial for fedora core 1/2/3 and after completing step 2, i get an error .

"[root@localhost daemontools-0.76]# package/install
Linking ./src/* into ./compile...
Compiling everything in ./compile...
sh find-systype.sh > systype
rm -f compile
sh print-cc.sh > compile
chmod 555 compile
./compile byte_chr.c
./compile byte_copy.c
./compile byte_cr.c
./compile byte_diff.c
./compile byte_rchr.c
./compile fmt_uint.c
./compile fmt_uint0.c
./compile fmt_ulong.c
rm -f makelib
sh print-ar.sh > makelib
chmod 555 makelib
./compile scan_ulong.c
./compile str_chr.c
./compile str_diff.c
./compile str_len.c
./compile str_start.c
./makelib byte.a byte_chr.o byte_copy.o byte_cr.o byte_diff.o \
byte_rchr.o fmt_uint.o fmt_uint0.o fmt_ulong.o scan_ulong.o str_chr.o \
str_diff.o str_len.o str_start.o
rm -f choose
cat warn-auto.sh choose.sh \
| sed s}HOME}"`head -1 home`"}g \
> choose
chmod 555 choose
./choose c trydrent direntry.h1 direntry.h2 > direntry.h
./compile envdir.c
rm -f load
sh print-ld.sh > load
chmod 555 load
./compile alloc.c
./compile alloc_re.c
./compile buffer.c
./compile buffer_0.c
./compile buffer_1.c
./compile buffer_2.c
./compile buffer_get.c
./compile buffer_put.c
./compile buffer_read.c
./compile buffer_write.c
./compile coe.c
./compile env.c
./compile error.c
./compile error_str.c
./compile fd_copy.c
./compile fd_move.c
./choose cl trymkffo hasmkffo.h1 hasmkffo.h2 > hasmkffo.h
./compile fifo.c
./choose cl tryflock hasflock.h1 hasflock.h2 > hasflock.h
./compile lock_ex.c
./compile lock_exnb.c
./compile ndelay_off.c
./compile ndelay_on.c
./compile open_append.c
./compile open_read.c
./compile open_trunc.c
./compile open_write.c
./compile openreadclose.c
./compile pathexec_env.c
./compile pathexec_run.c
pathexec_run.c: In function `pathexec_run':
pathexec_run.c:18: warning: implicit declaration of function `execve'
./compile chkshsgr.c
chkshsgr.c: In function `main':
chkshsgr.c:10: warning: passing arg 2 of `getgroups' from incompatible pointer type
chkshsgr.c:10: warning: implicit declaration of function `setgroups'
./load chkshsgr
./chkshsgr || ( cat warn-shsgr; exit 1 )
./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h
./compile prot.c
prot.c: In function `prot_gid':
prot.c:13: warning: implicit declaration of function `setgroups'
prot.c:15: warning: implicit declaration of function `setgid'
prot.c: In function `prot_uid':
prot.c:20: warning: implicit declaration of function `setuid'
./compile readclose.c
./compile seek_set.c
seek_set.c: In function `seek_set':
seek_set.c:9: warning: implicit declaration of function `lseek'
./compile sgetopt.c
./compile sig.c
./choose cl trysgprm hassgprm.h1 hassgprm.h2 > hassgprm.h
./compile sig_block.c
./choose cl trysgact hassgact.h1 hassgact.h2 > hassgact.h
./compile sig_catch.c
./compile sig_pause.c
./compile stralloc_cat.c
./compile stralloc_catb.c
./compile stralloc_cats.c
./compile stralloc_eady.c
./compile stralloc_opyb.c
./compile stralloc_opys.c
./compile stralloc_pend.c
./compile strerr_die.c
./compile strerr_sys.c
./compile subgetopt.c
./choose cl trywaitp haswaitp.h1 haswaitp.h2 > haswaitp.h
./compile wait_nohang.c
./compile wait_pid.c
./makelib unix.a alloc.o alloc_re.o buffer.o buffer_0.o buffer_1.o \
buffer_2.o buffer_get.o buffer_put.o buffer_read.o buffer_write.o \
coe.o env.o error.o error_str.o fd_copy.o fd_move.o fifo.o lock_ex.o \
lock_exnb.o ndelay_off.o ndelay_on.o open_append.o open_read.o \
open_trunc.o open_write.o openreadclose.o pathexec_env.o \
pathexec_run.o prot.o readclose.o seek_set.o sgetopt.o sig.o \
sig_block.o sig_catch.o sig_pause.o stralloc_cat.o stralloc_catb.o \
stralloc_cats.o stralloc_eady.o stralloc_opyb.o stralloc_opys.o \
stralloc_pend.o strerr_die.o strerr_sys.o subgetopt.o wait_nohang.o \
wait_pid.o
./load envdir unix.a byte.a
envdir.o(.text+0xca): In function `main':
: undefined reference to `errno'
envdir.o(.text+0x1f9): In function `main':
: undefined reference to `errno'
unix.a(openreadclose.o)(.text+0x3b): In function `openreadclose':
: undefined reference to `errno'
unix.a(pathexec_run.o)(.text+0x10e): In function `pathexec_run':
: undefined reference to `errno'
unix.a(pathexec_run.o)(.text+0x152): In function `pathexec_run':
: undefined reference to `errno'
unix.a(readclose.o)(.text+0x63): more undefined references to `errno' follow
collect2: ld returned 1 exit status
make: *** [envdir] Error 1
Copying commands into ./command...
cp: cannot stat `compile/svscan': No such file or directory

my question is the error

" make: *** [envdir] Error 1
Copying commands into ./command...
cp: cannot stat `compile/svscan': No such file or directory"

going to cause problems ? should I continue with the installation?? Thanks in advance
 
Old 02-01-2005, 09:17 AM   #2
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Look in the source directory for Daemontools. Open the file called error.h.

In that file, look for the line...

extern int errno;

Change it to say...

#include <errno.h>

Now compile it again.
 
Old 02-01-2005, 06:33 PM   #3
snakeo2
Member
 
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Original Poster
Rep: Reputation: 30
thanks for the reply donboy, here is the file you mentioned, I think the changes you suggested were already made.

#ifndef ERROR_H
#define ERROR_H

/* extern int errno; */
#include <errno.h>

extern int error_intr;
extern int error_nomem;
extern int error_noent;
extern int error_txtbsy;
extern int error_io;
extern int error_exist;
extern int error_timeout;
extern int error_inprogress;
extern int error_wouldblock;
extern int error_again;
extern int error_pipe;
extern int error_perm;
extern int error_acces;
extern int error_dquot;

extern char *error_str();
extern int error_temp();

#endif

Please advise if I should make any changes?? thanks in advance
 
Old 02-01-2005, 09:44 PM   #4
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Hrrm... that looks correct. Did you try package/install again? Did it render the same error? if its different from the above error (however minor the change) can you post the output here?
 
Old 02-01-2005, 10:25 PM   #5
snakeo2
Member
 
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Original Poster
Rep: Reputation: 30
here is what i've done so far,

]# cd /package/admin/daemontools-0.76
[root@localhost daemontools-0.76]# package/install
Linking ./src/* into ./compile...
Compiling everything in ./compile...
./load envdir unix.a byte.a
envdir.o(.text+0xca): In function `main':
: undefined reference to `errno'
envdir.o(.text+0x1f9): In function `main':
: undefined reference to `errno'
unix.a(openreadclose.o)(.text+0x3b): In function `openreadclose':
: undefined reference to `errno'
unix.a(pathexec_run.o)(.text+0x10e): In function `pathexec_run':
: undefined reference to `errno'
unix.a(pathexec_run.o)(.text+0x152): In function `pathexec_run':
: undefined reference to `errno'
unix.a(readclose.o)(.text+0x63): more undefined references to `errno' follow
collect2: ld returned 1 exit status
make: *** [envdir] Error 1
Copying commands into ./command...
cp: cannot stat `compile/svscan': No such file or directory


]# cd /package/admin/daemontools-0.76/src
[root@localhost src]# </downloads/qmailrocks/patches/daemontools-.76.errno.patchbash: /downloads/qmailrocks/patches/daemontools-.76.errno.patch: No such file or directory
[root@localhost src]# < /downloads/qmailrocks/patches/daemontools-0.76.errno.patch
[root@localhost src]#
[root@localhost src]# cd /package/admin/daemontools-0.76
[root@localhost daemontools-0.76]# package/install
Linking ./src/* into ./compile...
Compiling everything in ./compile...
./load envdir unix.a byte.a
envdir.o(.text+0xca): In function `main':
: undefined reference to `errno'
envdir.o(.text+0x1f9): In function `main':
: undefined reference to `errno'
unix.a(openreadclose.o)(.text+0x3b): In function `openreadclose':
: undefined reference to `errno'
unix.a(pathexec_run.o)(.text+0x10e): In function `pathexec_run':
: undefined reference to `errno'
unix.a(pathexec_run.o)(.text+0x152): In function `pathexec_run':
: undefined reference to `errno'
unix.a(readclose.o)(.text+0x63): more undefined references to `errno' follow
collect2: ld returned 1 exit status
make: *** [envdir] Error 1
Copying commands into ./command...
cp: cannot stat `compile/svscan': No such file or directory
[root@localhost daemontools-0.76]#

i'm still getting errors. Should i uninstall everyting and start from the beginning ?? thanks for your help
 
Old 02-01-2005, 11:00 PM   #6
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Well, if you had success with the previous steps, then it should also work with daemontools as well. You didn't mention anything for ucspi-tcp, which is where this error may also surface.

Try also looking for the same changes that need to be made in these files too...

error.c
error_str.c
 
Old 02-01-2005, 11:11 PM   #7
snakeo2
Member
 
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Original Poster
Rep: Reputation: 30
I forgot to mention, but I did get errors while compiing uscpi as well. I kept going unto step 9 but when i tried to log to www.mydomain/cgi-bin/vqadmin/vqadmin.cgi but cant log in. during step#8 i think , i created a .htaccess file and according to the tutorial the user created was "admin" but when i type admin it doesn let me in. also, when i created the .htaccess file, i was supposed to supply a path for the password to be stored, i wasnt sure what path to asign and assigned the following paht
/var/www/cgi-bin/vqadmin/.htpsswd

is this right??
 
Old 02-01-2005, 11:42 PM   #8
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Well, first things first. I am getting the idea you don't have all the glibc libraries you need. My problem is, I don't know that much about the contents of those libraries to know if you're missing something.

Can you run the make command for ucspi-tcp and post the output here? If that didn't run, its possible daemontools is suffering from not having everything it needs.
 
Old 02-02-2005, 12:07 AM   #9
snakeo2
Member
 
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Original Poster
Rep: Reputation: 30
]# cd /usr/src/qmail/ucspi-tcp-0.88
[root@localhost ucspi-tcp-0.88]# < /downloads/qmailrocks/patches/ucspi-tcp-0.88.errno.patch
[root@localhost ucspi-tcp-0.88]# make && make setup check
./load tcpserver rules.o remoteinfo.o timeoutconn.o cdb.a \
dns.a time.a unix.a byte.a `cat socket.lib`
tcpserver.o(.text+0x555): In function `doit':
: undefined reference to `errno'
remoteinfo.o(.text+0x63): In function `mywrite':
: undefined reference to `errno'
remoteinfo.o(.text+0xe7): In function `myread':
: undefined reference to `errno'
timeoutconn.o(.text+0x41): In function `timeoutconn':
: undefined reference to `errno'
timeoutconn.o(.text+0xbf): In function `timeoutconn':
: undefined reference to `errno'
cdb.a(cdb.o)(.text+0xce): more undefined references to `errno' follow
collect2: ld returned 1 exit status
make: *** [tcpserver] Error 1
[root@localhost ucspi-tcp-0.88]#

thats odd, when i compiled the first time around it did everything with the exception of one error. As far as not having all gcc, could be. However during installation i selected every possible gcc in the installatio cd because i know the headahes it can cause not having all of them. Is there a command to delete everything and start all over again??
 
Old 02-02-2005, 01:34 AM   #10
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Hey, wait a minute...

You put...

[root@localhost ucspi-tcp-0.88]# < /downloads/qmailrocks/patches/ucspi-tcp-0.88.errno.patch

which looks wrong. Did you miss the "patch" command at the beginning of that line?? I'm assuming you just missed that part in your copy/paste.

You don't have to delete everything... you can just start over. It will recompile right over the top of what you had previously and won't hurt a thing... in fact, it may help.
 
Old 02-02-2005, 08:49 AM   #11
snakeo2
Member
 
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Original Poster
Rep: Reputation: 30
You are right , i did not put patch in the line. should the line be
patch < /downloads/qmailrocks/patches/ucspi-tcp-0.88.errno.patch
?? i'll try it when i get back from work. thanks for all your help. if i encounter any problems, i'll post them here
 
Old 02-02-2005, 01:33 PM   #12
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Yes. You have to have the word "patch" at the beginning. Or you can just open error.h and change that line we talked about, since that's all the patch really does.

If you want to see for yourself, just cd to this directory...

/usr/local/src/qmailrocks/patches/

And look at some of the files in there, specifically the errno patches. You can quickly see that they are only modifying one line of one file.
 
Old 02-14-2008, 10:03 AM   #13
guillermo
LQ Newbie
 
Registered: Aug 2007
Location: Argentina
Posts: 25

Rep: Reputation: 15
Thumbs up

Quote:
Originally Posted by Donboy View Post
Look in the source directory for Daemontools. Open the file called error.h.

In that file, look for the line...

extern int errno;

Change it to say...

#include <errno.h>

Now compile it again.
This works for me.. sorry for the bump.
 
Old 08-06-2009, 06:16 PM   #14
gigo6000
LQ Newbie
 
Registered: Nov 2008
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by Donboy View Post
Look in the source directory for Daemontools. Open the file called error.h.

In that file, look for the line...

extern int errno;

Change it to say...

#include <errno.h>

Now compile it again.
Thanks that worked for me
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Qmail question mgromer Linux - Software 3 05-12-2005 07:28 AM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 12:29 PM
Another qmail question - Please help! whaase Linux - Networking 2 10-30-2003 09:54 PM
Qmail Question (Yes another one) cybercub Linux - General 0 07-17-2002 10:23 PM
qmail question kurgan70 Linux - General 2 01-03-2002 08:03 PM


All times are GMT -5. The time now is 06:29 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration