RE: [vchkpw] Switching from Mysql to Postgresql

2005-04-04 Thread Charles J. Boening



Also, don't forget to check permissions on sequences. 
Had that bite me once. :)


Charlie




  
  
  From: Joshua Coucke 
  [mailto:[EMAIL PROTECTED] Sent: Monday, April 04, 2005 6:35 
  AMTo: vchkpw@inter7.comSubject: Re: [vchkpw] Switching 
  from Mysql to Postgresql
  Charles J. Boening wrote: 
  Did you try using the postgres user for the database instead of the one
you made?
  I believe I did, but I will try it again, just to make 
  sure.
  One of the things that happens on login that wouldn't with vuserinfo
would be an insertion or update to the vlog table or lastauth table.

If you want, contact me off list and we can discuss the possibility of
me logging in to your system and checking things out.
  I may take you up on that offer if I can't figure this 
  out.Joshua Coucke
  Charlie

 

  
-Original Message-
From: Joshua Coucke [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 31, 2005 1:26 PM
To: vchkpw@inter7.com
Subject: Re: [vchkpw] Switching from Mysql to Postgresql

Charles J. Boening wrote:


  Is there anything in the log files?  /var/log/mail/info or 
/var/log/mail/errors ... how about in /var/log/qmail/pop3d/current?
 

  Nothing in the logs that I could see.


  If vuserinfo is working, then your database hooks in 
  vpopmail are all 

  ok.  How about doing a make clean and make and make install again?  
Then restart qmail.
 

  I have been doing make clean every time I recompile.


  How about if you telnet to the server on port 110 and try to auth by 
hand?  You sure it's not a Thunderbird issue?
 

  Tried it and it failed just after I entered the password for 
the account.


  I had some issues at one point and I ended up deleting everything in 
~vpopmail/etc ~vpopmail/include ~vpopmail/bin and ~vpopmail/lib then 
rebuilt vpopmail and rebuilt authdaemon.  Then it all worked.
 

  I tried deleting everything out of those directories and then 
rebuilding vpopmail and it still failed 

Joshua


  

	From: Joshua Coucke [mailto:[EMAIL PROTECTED]] 
	Sent: Thursday, March 31, 2005 11:53 AM
	To: vchkpw@inter7.com
	Subject: Re: [vchkpw] Switching from Mysql to Postgresql
	
	


	Charles J. Boening wrote: 

		I'm using vpopmail 5.4.10 successfully with PostgreSQL.
		
		How about permissions for your vpopmail sql 
  user?  Did you GRANT that

  		user permissions to the database?
		  

	Yes, the user does have permissions. 

		How about running the commandline utilities?
		/home/vpopmail/bin/vuserinfo email addy
		  

	I was able to get userinfo on an email address.  And I 
  was able to 

  verify that the info was coming from the postgres db.  (I 
  changed some 

  info in the db and ran the command again, the output was updated.)
	
	name:   jdcoucke
	passwd: $1$39sHL0$r3PDZJzvwbTAKOxJD4HHq.
	clear passwd: **
	comment/gecos: Joshua Coucke
	uid:0
	gid:4096
	flags:  4096
	gecos: Joshua Coucke
	limits:
	has qmailadmin administrator access
	dir:   /home/vpopmail/domains/lebanon-tn.com/jdcoucke

	quota: 4194304S
	usage: 0%
	NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index 
"lastauth_pkey" for table "lastauth"
	last auth: Never logged in
	
	Thunderbird still returns an auth error.
	All of user info was imported from a mysql db using 
  phpmyadmin and 

  imported using phppgadmin.  Would it make a difference if I used 
vconvert instead?
	
	Joshua.
	

			-Original Message-
			From: Joshua Coucke
[mailto:[EMAIL PROTECTED]] 
			Sent: Thursday, March 31, 2005 7:08 AM
			To: vchkpw@inter7.com
			Subject: [vchkpw] Switching from Mysql 
  to Postgresql

  			
			Hey,
			
			I used the QMR install with the MySQL 
  option to install

  			vpopmail.  Now, however,  I need to 
  switch from MySQL to

  			PostgreSQL as the backend for the whole thing.
The problem I 
			am having is that when I recompile 
  vpopmail to use PostgreSQL

  			and then procede to check my email I 
  get an error telling me

  			that authorazation failed.
			
			As far as I can tell I have provided 
  the correct username and

  			database for vpopmail in the vpgsql.h 
  file.  And I have

  			imported into postgres the database from mysql.
			
			The other odd thing is that vqadmin and 
  qmailadmin still seem

  			to be using the mysql database after 
  recompiling vpopmail for

  			use with postgres.
			
			I am using vpopmail v5.4.10, postgres 
  v8.0.1, and Fedora Core 3.

  			
			Any ideas on the subject would be helpful.
			
			I tried to google for this but nothing came up.
			
			Joshua Coucke
			
			
			
			
			

		
		
		  




 

  


  


[vchkpw] Max username length

2005-04-04 Thread Nick Harring








In vpopmail.h MAX_PW_NAME is defined as 32, and the mysql
column for pw_name is a varchar(32). This would lead me to believe it was
intended to support up to 32 character usernames. However vadduser in
vpopmail.c does:

If( strlen(username) = MAX_PW_NAME ) rather than if(
strlen(username)  MAX_PW_NAME). 

Is this intentional, and if so then why is the mysql column
defined the way it is?

Cheers,

Nick





Nicholas Harring

Ph/Fax/VM 877-609-4795

Sr. System Administrator

Parus Interactive










RE: [vchkpw] Max username length

2005-04-04 Thread Nick Harring








Nevermind, just noticed this is fixed in
5.4.7.

Nick













From: Nick Harring
[mailto:[EMAIL PROTECTED] 
Sent: Monday, April 04, 2005 3:51
PM
To: vchkpw@inter7.com
Subject: [vchkpw] Max username
length





In vpopmail.h MAX_PW_NAME is defined as 32, and the mysql
column for pw_name is a varchar(32). This would lead me to believe it was
intended to support up to 32 character usernames. However vadduser in
vpopmail.c does:

If( strlen(username) = MAX_PW_NAME ) rather than if(
strlen(username)  MAX_PW_NAME). 

Is this intentional, and if so then why is the mysql column
defined the way it is?

Cheers,

Nick





Nicholas Harring

Ph/Fax/VM 877-609-4795

Sr. System Administrator

Parus Interactive












[vchkpw] compile vpopmail with -fPIC on x86_64

2005-04-04 Thread Marco Prechel
Hello all :)

I'm trying to bring up courier-imap, which requires courier-authlib, however i am unable to compile courier-authlib. it complains about vpopmail. says i should recompile it with -fPIC.



x-tad-bigger my configure flags are as followed: /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger for vpopmail: /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger ./configure CFLAGS=-fPIC --enable-roaming-users=y --enable-logging=p --enable-qmaildir=/var/qmail/x-tad-biggerx-tad-bigger

/x-tad-biggerx-tad-bigger for courier-authlib: /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger ./configure CFLAGS=-fPIC --prefix=/usr/local --exec-prefix=/usr/local --with-authvchkpw --without-authldap --without-authmysql --disable-root-check --with-ssl --with-authchangepwdir=/usr/local/libexec/authlib --with-redhat/x-tad-biggerx-tad-bigger


/x-tad-biggerx-tad-bigger I am going by the qmailrocks.org latest distro package. /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger vpopmail-5.4.9 /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger courier-authlib-0.55 /x-tad-biggerx-tad-bigger

/x-tad-biggerx-tad-bigger The following is the error message i receive from courier-authlib when i try to MAKE /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger --- /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger /usr/bin/ld: /home/vpopmail/lib/libvpopmail.a(vpopmail.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger /home/vpopmail/lib/libvpopmail.a: could not read symbols: Bad value /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger collect2: ld returned 1 exit status /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger make[2]: *** [libauthvchkpw.la] Error 1 /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger make[2]: Leaving directory `/downloads/qmailrocks/courier-authlib-0.55' /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger make[1]: *** [all-recursive] Error 1 /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger make[1]: Leaving directory `/downloads/qmailrocks/courier-authlib-0.55' /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger make: *** [all] Error 2 /x-tad-biggerx-tad-bigger
/x-tad-bigger




ANY help, pointers, fixes .. support is greatly appreciated. :)

Thanks,

--marco

Marco Prechel
Storm Ready Builders, LLC
www.StormReadyBuilders.com

12651 McGregor Blvd.
Suite 1-101
Fort Myers, FL  33919

P.  239.481.0177
C.  239.410.2983
F.  239.481.4844


-
Note:  The information contained in this email and in any attachments is
intended only for the person or entity to which it is addressed and may
contain confidential and/or privileged material.  Any review,
retransmission, dissemination or other use of, or taking of any action in
reliance upon, this information by persons or entities other than the
intended recipient is prohibited.  The recipient should check this email and
any attachments for the presence of viruses.  Sender accepts no liability
for any damages caused by any virus transmitted by this email. If you have
received this email in error, please notify us immediately by replying to
the message and delete the email from your computer.  This e-mail is and any
response to it will be unencrypted and, therefore, potentially insecure.
Thank you.


Re: [vchkpw] compile vpopmail with -fPIC on x86_64

2005-04-04 Thread Marco Prechel
Sorry if i forgot to mention ... 

this is a

Dual Opteron (AMD64 - x86_64)
w/ FC3


--marco

Marco Prechel
Storm Ready Builders, LLC
www.StormReadyBuilders.com

12651 McGregor Blvd.
Suite 1-101
Fort Myers, FL  33919

P.  239.481.0177
C.  239.410.2983
F.  239.481.4844


-
Note:  The information contained in this email and in any attachments is
intended only for the person or entity to which it is addressed and may
contain confidential and/or privileged material.  Any review,
retransmission, dissemination or other use of, or taking of any action in
reliance upon, this information by persons or entities other than the
intended recipient is prohibited.  The recipient should check this email and
any attachments for the presence of viruses.  Sender accepts no liability
for any damages caused by any virus transmitted by this email. If you have
received this email in error, please notify us immediately by replying to
the message and delete the email from your computer.  This e-mail is and any
response to it will be unencrypted and, therefore, potentially insecure.
Thank you.

On Apr 4, 2005, at 4:57 PM, Marco Prechel wrote:

Hello all :)

I'm trying to bring up courier-imap, which requires courier-authlib, however i am unable to compile courier-authlib. it complains about vpopmail. says i should recompile it with -fPIC.



x-tad-bigger my configure flags are as followed: /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger for vpopmail: /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger ./configure CFLAGS=-fPIC --enable-roaming-users=y --enable-logging=p --enable-qmaildir=/var/qmail/x-tad-biggerx-tad-bigger

/x-tad-biggerx-tad-bigger for courier-authlib: /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger ./configure CFLAGS=-fPIC --prefix=/usr/local --exec-prefix=/usr/local --with-authvchkpw --without-authldap --without-authmysql --disable-root-check --with-ssl --with-authchangepwdir=/usr/local/libexec/authlib --with-redhat/x-tad-biggerx-tad-bigger


/x-tad-biggerx-tad-bigger I am going by the qmailrocks.org latest distro package. /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger vpopmail-5.4.9 /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger courier-authlib-0.55 /x-tad-biggerx-tad-bigger

/x-tad-biggerx-tad-bigger The following is the error message i receive from courier-authlib when i try to MAKE /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger --- /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger /usr/bin/ld: /home/vpopmail/lib/libvpopmail.a(vpopmail.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger /home/vpopmail/lib/libvpopmail.a: could not read symbols: Bad value /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger collect2: ld returned 1 exit status /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger make[2]: *** [libauthvchkpw.la] Error 1 /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger make[2]: Leaving directory `/downloads/qmailrocks/courier-authlib-0.55' /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger make[1]: *** [all-recursive] Error 1 /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger make[1]: Leaving directory `/downloads/qmailrocks/courier-authlib-0.55' /x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger make: *** [all] Error 2 /x-tad-biggerx-tad-bigger
/x-tad-bigger




ANY help, pointers, fixes .. support is greatly appreciated. :)

Thanks,

--marco

Marco Prechel
Storm Ready Builders, LLC
www.StormReadyBuilders.com

12651 McGregor Blvd.
Suite 1-101
Fort Myers, FL  33919

P.  239.481.0177
C.  239.410.2983
F.  239.481.4844


-
Note:  The information contained in this email and in any attachments is
intended only for the person or entity to which it is addressed and may
contain confidential and/or privileged material.  Any review,
retransmission, dissemination or other use of, or taking of any action in
reliance upon, this information by persons or entities other than the
intended recipient is prohibited.  The recipient should check this email and
any attachments for the presence of viruses.  Sender accepts no liability
for any damages caused by any virus transmitted by this email. If you have
received this email in error, please notify us immediately by replying to
the message and delete the email from your computer.  This e-mail is and any
response to it will be unencrypted and, therefore, potentially insecure.
Thank you.


RE: [vchkpw] compile vpopmail with -fPIC on x86_64

2005-04-04 Thread Nick Harring

I'm trying to bring up courier-imap, which requires courier-authlib,
however i am unable to compile courier-authlib. it complains about
vpopmail. says i should recompile it with -fPIC. 
my configure flags are as followed: 
for vpopmail: 
./configure CFLAGS=-fPIC --enable-roaming-users=y --enable-logging=p
--enable-qmaildir=/var/qmail 

for courier-authlib: 
./configure CFLAGS=-fPIC --prefix=/usr/local --exec-prefix=/usr/local
--with-authvchkpw --without-authldap --without-authmysql
--disable-root-check --with-ssl
--with-authchangepwdir=/usr/local/libexec/authlib --with-redhat 
The way to do this is:
CFLAGS=-fPIC ./configure --enable-roaming-users=y --enable-logging=p
--enable-qmaildir=/var/qmail

CFLAGS is an environment variable, not an argument to configure.
Hope that helps,
Nick


Re: [vchkpw] compile vpopmail with -fPIC on x86_64

2005-04-04 Thread Marco Prechel
any idea how to use it then?
if you run a
#./configure --help
it lists this on the bottom:
---
Some influential environment variables:
  CC  C compiler command
  CFLAGS  C compiler flags
  LDFLAGS linker flags, e.g. -Llib dir if you have libraries in a 
nonstandard directory lib dir
  CPPFLAGSC/C++ preprocessor flags, e.g. -Iinclude dir if you 
have headers in a nonstandard directory include dir
  CPP C preprocessor

Use these variables to override the choices made by `configure' or to 
help
it to find libraries and programs with nonstandard names/locations.
---

so would you not use it within the ./configure flags ?   thats what i 
was thinking ... however that was my best guess 

--marco

On Apr 4, 2005, at 5:01 PM, Nick Harring wrote:

I'm trying to bring up courier-imap, which requires courier-authlib,
however i am unable to compile courier-authlib. it complains about
vpopmail. says i should recompile it with -fPIC.
my configure flags are as followed:
for vpopmail:
./configure CFLAGS=-fPIC --enable-roaming-users=y --enable-logging=p
--enable-qmaildir=/var/qmail
for courier-authlib:
./configure CFLAGS=-fPIC --prefix=/usr/local --exec-prefix=/usr/local
--with-authvchkpw --without-authldap --without-authmysql
--disable-root-check --with-ssl
--with-authchangepwdir=/usr/local/libexec/authlib --with-redhat
The way to do this is:
CFLAGS=-fPIC ./configure --enable-roaming-users=y --enable-logging=p
--enable-qmaildir=/var/qmail
CFLAGS is an environment variable, not an argument to configure.
Hope that helps,
Nick



RE: [vchkpw] compile vpopmail with -fPIC on x86_64

2005-04-04 Thread Nick Harring
 
 any idea how to use it then?
 
snip
 
 so would you not use it within the ./configure flags ?   thats what
i
 was thinking ... however that was my best guess 
 
 
 --marco
 
 
 
Marco -
Run it the way I showed. You put CFLAGS=-fPIC BEFORE the ./configure.
This makes it an environment variable. You can find more out about
environment variables in man bash, ksh, or whatever shell you use.
Hope that helps,
Nick


Re: [vchkpw] compile vpopmail with -fPIC on x86_64

2005-04-04 Thread Marco Prechel
i will most def. try that tonight. however i can only test on the 
production machine, as all my other test machines are 32bit Intels.

I will let you know most def. ... should be another 2 hours or so till 
i can take it down again.

--marco
ANYBODY ELSE HAVE ANY IDEAS/SOLUTIONS?
On Apr 4, 2005, at 5:12 PM, Nick Harring wrote:
any idea how to use it then?
snip
so would you not use it within the ./configure flags ?   thats what
i
was thinking ... however that was my best guess 
--marco

Marco -
Run it the way I showed. You put CFLAGS=-fPIC BEFORE the ./configure.
This makes it an environment variable. You can find more out about
environment variables in man bash, ksh, or whatever shell you use.
Hope that helps,
Nick



Re: [vchkpw] compile vpopmail with -fPIC on x86_64

2005-04-04 Thread Marco Prechel
Jeremy,

are you saying that one will have to run

CFLAGS=-fPIC BEFORE the ./configure 

like Nick stated? so in essence i would run my configure as followed:


x-tad-bigger#CFLAGS=-fPIC  /x-tad-biggerx-tad-bigger./configure --enable-roaming-users=y --enable-logging=p --enable-qmaildir=/var/qmail/x-tad-bigger


I apologize in advance, I'm learning.


Thank You,

--marco




On Apr 4, 2005, at 5:25 PM, Jeremy Kitchen wrote:

On Monday 04 April 2005 04:08 pm, Marco Prechel wrote:
any idea how to use it then?

if you run a

#./configure --help

it lists this on the bottom:

---
Some influential environment variables:

[snip]

so would you not use it within the ./configure flags ?   thats what i
was thinking ... however that was my best guess 

no, if you read the first line of the section you pasted it says influential 
environment variables

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
[EMAIL PROTECTED] ++ inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l
kitchen @ #qmail #gentoo on EFnet IRC ++ scriptkitchen.com/qmail
GnuPG Key ID: 481BF7E2 ++ jabber:[EMAIL PROTECTED]


Re: [vchkpw] compile vpopmail with -fPIC on x86_64

2005-04-04 Thread Jeremy Kitchen
On Monday 04 April 2005 04:48 pm, Marco Prechel wrote:
 Jeremy,

 are you saying that one will have to run

 CFLAGS=-fPIC BEFORE the ./configure

 like Nick stated? so in essence i would run my configure as followed:


 #CFLAGS=-fPIC  ./configure --enable-roaming-users=y --enable-logging=p
 --enable-qmaildir=/var/qmail

yep, that's how you would do it.  You could also do something like (assuming 
bash):

# export CFLAGS=-fPIC
# ./configure .

but that would also affect all subsequent builds within that session.

One thing I like to do, is create (outside of the source tree) files called 
say... ./configure-sqwebmail, ./configure-vpopmail, etc.. that contain my 
configure command lines.  For instance, here's my ./configure-apache

#!/bin/sh

exec ./configure --with-so --enable-rewrite --enable-suexec \
--with-suexec-caller=nobody --with-suexec-docroot=/home/www --enable-ssl \
--enable-proxy --enable-dav --enable-dav-fs

you could easily do something like:

#!/bin/sh

exec CFLAGS=-fPIC ./configure ..

 I apologize in advance, I'm learning.

no need for apologies, everyone is new at some point :)

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
[EMAIL PROTECTED] ++ inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l
  kitchen @ #qmail #gentoo on EFnet IRC ++ scriptkitchen.com/qmail
 GnuPG Key ID: 481BF7E2 ++ jabber:[EMAIL PROTECTED]


pgp1Djpyk37fJ.pgp
Description: PGP signature


Re: [vchkpw] compile vpopmail with -fPIC on x86_64

2005-04-04 Thread Marco Prechel
Jeremy,
this is a little off the main topic, but i was wondering ..
what does the -fPIC do? what causes this issue ? good buddy of mine 
wrote  updates a QMAIL Install script ... does it all for you, 
including courier-IMAP or Bincc ... and he was wondering whether or not 
he shoudl include the -fPIC command when his script compiles vpopmail - 
whether this command will bomb  cause errors on 32bit systems.

I will take the production server down in a little, and try to install 
vpopmail with fpic the way you suggested.

Thanks again,
--marco
On Apr 4, 2005, at 6:26 PM, Jeremy Kitchen wrote:
On Monday 04 April 2005 04:48 pm, Marco Prechel wrote:
Jeremy,
are you saying that one will have to run
CFLAGS=-fPIC BEFORE the ./configure
like Nick stated? so in essence i would run my configure as followed:
#CFLAGS=-fPIC  ./configure --enable-roaming-users=y --enable-logging=p
--enable-qmaildir=/var/qmail
yep, that's how you would do it.  You could also do something like 
(assuming
bash):

# export CFLAGS=-fPIC
# ./configure .
but that would also affect all subsequent builds within that session.
One thing I like to do, is create (outside of the source tree) files 
called
say... ./configure-sqwebmail, ./configure-vpopmail, etc.. that contain 
my
configure command lines.  For instance, here's my ./configure-apache

#!/bin/sh
exec ./configure --with-so --enable-rewrite --enable-suexec \
--with-suexec-caller=nobody --with-suexec-docroot=/home/www 
--enable-ssl \
--enable-proxy --enable-dav --enable-dav-fs

you could easily do something like:
#!/bin/sh
exec CFLAGS=-fPIC ./configure ..
I apologize in advance, I'm learning.
no need for apologies, everyone is new at some point :)
-Jeremy
--
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet 
Technologies, Inc.
[EMAIL PROTECTED] ++ inter7.com ++ 866.528.3530 ++ 815.776.9465 
int'l
  kitchen @ #qmail #gentoo on EFnet IRC ++ scriptkitchen.com/qmail
 GnuPG Key ID: 481BF7E2 ++ jabber:[EMAIL PROTECTED]



Re: [vchkpw] compile vpopmail with -fPIC on x86_64

2005-04-04 Thread Marco Prechel
Jeremy,

I did compile vpopmail the way you suggested ... and now i'm getting another 
error - different but same nature.




--


Compiling authvchkpw.c
authvchkpw.c: In function `auth_vchkpw_changepass':
authvchkpw.c:142: warning: passing arg 1 of `parse_email' discards qualifiers 
from pointer target type
Compiling authvchkpwlib.c
Compiling preauthvchkpw.c
preauthvchkpw.c: In function `auth_vchkpw_pre':
preauthvchkpw.c:67: warning: passing arg 1 of `parse_email' discards qualifiers 
from pointer target type
preauthvchkpw.c:141: warning: passing arg 3 of `vset_lastauth' discards 
qualifiers from pointer target type
Linking libauthvchkpw.la
/usr/bin/ld: /home/vpopmail/lib/libvpopmail.a(cdb_seek.o): relocation 
R_X86_64_PC32 against `read@@GLIBC_2.2.5' can not be used when making a shared 
object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libauthvchkpw.la] Error 1
make[2]: Leaving directory `/downloads/qmailrocks/courier-authlib-0.55'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/downloads/qmailrocks/courier-authlib-0.55'
make: *** [all] Error 2
[EMAIL PROTECTED] courier-authlib-0.55]#

-






On Monday, April 04, 2005, at 06:26PM, Jeremy Kitchen [EMAIL PROTECTED] wrote:

On Monday 04 April 2005 04:48 pm, Marco Prechel wrote:
 Jeremy,

 are you saying that one will have to run

 CFLAGS=-fPIC BEFORE the ./configure

 like Nick stated? so in essence i would run my configure as followed:


 #CFLAGS=-fPIC  ./configure --enable-roaming-users=y --enable-logging=p
 --enable-qmaildir=/var/qmail

yep, that's how you would do it.  You could also do something like (assuming 
bash):

# export CFLAGS=-fPIC
# ./configure .

but that would also affect all subsequent builds within that session.

One thing I like to do, is create (outside of the source tree) files called 
say... ./configure-sqwebmail, ./configure-vpopmail, etc.. that contain my 
configure command lines.  For instance, here's my ./configure-apache

#!/bin/sh

exec ./configure --with-so --enable-rewrite --enable-suexec \
--with-suexec-caller=nobody --with-suexec-docroot=/home/www --enable-ssl \
--enable-proxy --enable-dav --enable-dav-fs

you could easily do something like:

#!/bin/sh

exec CFLAGS=-fPIC ./configure ..

 I apologize in advance, I'm learning.

no need for apologies, everyone is new at some point :)

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
[EMAIL PROTECTED] ++ inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l
  kitchen @ #qmail #gentoo on EFnet IRC ++ scriptkitchen.com/qmail
 GnuPG Key ID: 481BF7E2 ++ jabber:[EMAIL PROTECTED]