Discussion:
VQADMIN ERROR
Amit Dalia
2010-08-14 14:39:48 UTC
Permalink
Hi Everyone,
 
  I had just compiled and installed vpopmail 5.5.0 with LDAP support
from
  source package. Now when I'm trying to install vqadmin it is
giving
  error. I'm installing vqadmin from source package.
 
 1) Output of "./configure --enable-cgibindir=/var/www/cgi-bin
--enable-qmaildir=/var/qmail --enable-htmldir=/var/www/html"
 
 Current settings
  ---------------------------------------
  vpopmail directory = /home/vpopmail
  uid = 7807
  gid = 7802
  cgi-bin dir = /var/www/cgi-bin
  vqadmin dir = /var/www/cgi-bin/vqadmin
 
  No error
 
  2) Output of "make && make install"
 
  make all-recursive
  make[1]: Entering directory `/root/Desktop/vqadmin-2.3.7'
  make[2]: Entering directory `/root/Desktop/vqadmin-2.3.7'
  gcc -I. -I/home/vpopmail/include/vpopmail -I. -I. -I. -g -O2 -Wall
-c `test -f 'domain.c' || echo './'`domain.c
  In file included from domain.c:32: 
/home/vpopmail/include/vpopmail/vpopmail_config.h:244:1: warning:
"PACKAGE_NAME" redefined
  In file included from domain.c:29:  config.h:68:1: warning: this
is the location of the previous definition
  In file included from domain.c:32: 
/home/vpopmail/include/vpopmail/vpopmail_config.h:247:1: warning:
"PACKAGE_STRING" redefined
  In file included from domain.c:29: config.h:71:1: warning: this is
the location of the previous definition
  In file included from domain.c:32: 
/home/vpopmail/include/vpopmail/vpopmail_config.h:250:1: warning:
"PACKAGE_TARNAME" redefined
  In file included from domain.c:29: config.h:74:1: warning: this is
the location of the previous definition
  In file included from domain.c:32:
/home/vpopmail/include/vpopmail/vpopmail_config.h:253:1: warning:
"PACKAGE_VERSION" redefined
  In file included from domain.c:29: config.h:77:1: warning: this is
the location of the previous definition domain.c: In function
‘add_domain’: 
  domain.c:105: error: ‘VPOPMAILDIR’ undeclared (first use in
this function)
  domain.c:105: error: (Each undeclared identifier is reported only
once
  domain.c:105: error: for each function it appears in.)
  domain.c:105: error: ‘VPOPMAILUID’ undeclared (first use in
this function)
  domain.c:105: error: ‘VPOPMAILGID’ undeclared (first use in
this function)
  make[2]: *** [domain.o] Error 1
  make[2]: Leaving directory `/root/Desktop/vqadmin-2.3.7'
  make[1]: *** [all-recursive] Error 1
  make[1]: Leaving directory `/root/Desktop/vqadmin-2.3.7'
  make: *** [all] Error 2
 
Please help.
 
Thanks and regards,

Amit


!DSPAM:4c66aac832711996956123!
Lawrence Sheed
2010-08-14 17:39:24 UTC
Permalink
IMHO

Forget about 5.5, it doesn't play nice with the other tools.
I just spent about 3 or 4 hours on this on a new 64bit server build on Wednesday.

You can compile it by copying over the config.guess and config.sub files from the vpopmail source directory (so it has a slightly newer build map), and by adding in manually #define VPOPMAILDIR / VPOPMAILGUID / VPOPMAILUID into the config.h file, but it proves to be buggy and segfault at least in 64bit.

You'd do this by adding something like the following (for your settings) into the config.h file for vqadmin


#define VPOPMAILUID 7807
#define VPOPMAILGUID 7802
#define VPOPMAILDIR "/home/vpopmail"



I've given up on 5.5, and stick to the 5.4 series, at least until the other utils that really make up vpopmail - vqadmin / qmailadmin are ready.

Lawrence / ComputerSolutions.cn
Post by Amit Dalia
Hi Everyone,
I had just compiled and installed vpopmail 5.5.0 with LDAP support from
source package. Now when I'm trying to install vqadmin it is giving
error. I'm installing vqadmin from source package.
1) Output of "./configure --enable-cgibindir=/var/www/cgi-bin --enable-qmaildir=/var/qmail --enable-htmldir=/var/www/html"
Current settings
---------------------------------------
vpopmail directory = /home/vpopmail
uid = 7807
gid = 7802
cgi-bin dir = /var/www/cgi-bin
vqadmin dir = /var/www/cgi-bin/vqadmin
No error
2) Output of "make && make install"
make all-recursive
make[1]: Entering directory `/root/Desktop/vqadmin-2.3.7'
make[2]: Entering directory `/root/Desktop/vqadmin-2.3.7'
gcc -I. -I/home/vpopmail/include/vpopmail -I. -I. -I. -g -O2 -Wall -c `test -f 'domain.c' || echo './'`domain.c
In file included from domain.c:32: /home/vpopmail/include/vpopmail/vpopmail_config.h:244:1: warning: "PACKAGE_NAME" redefined
In file included from domain.c:29: config.h:68:1: warning: this is the location of the previous definition
In file included from domain.c:32: /home/vpopmail/include/vpopmail/vpopmail_config.h:247:1: warning: "PACKAGE_STRING" redefined
In file included from domain.c:29: config.h:71:1: warning: this is the location of the previous definition
In file included from domain.c:32: /home/vpopmail/include/vpopmail/vpopmail_config.h:250:1: warning: "PACKAGE_TARNAME" redefined
In file included from domain.c:29: config.h:74:1: warning: this is the location of the previous definition
In file included from domain.c:32: /home/vpopmail/include/vpopmail/vpopmail_config.h:253:1: warning: "PACKAGE_VERSION" redefined
domain.c:105: error: ‘VPOPMAILDIR’ undeclared (first use in this function)
domain.c:105: error: (Each undeclared identifier is reported only once
domain.c:105: error: for each function it appears in.)
domain.c:105: error: ‘VPOPMAILUID’ undeclared (first use in this function)
domain.c:105: error: ‘VPOPMAILGID’ undeclared (first use in this function)
make[2]: *** [domain.o] Error 1
make[2]: Leaving directory `/root/Desktop/vqadmin-2.3.7'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Desktop/vqadmin-2.3.7'
make: *** [all] Error 2
Please help.
Thanks and regards,
Amit
!DSPAM:4c66d4d232713477510152!
Amit Dalia
2010-08-14 19:47:37 UTC
Permalink
Hi Lawrence,

Now i'm getting below error:

In file included from domain.c:29:
config.h:81:1: warning: this is the location of the previous
definition
domain.c: In function ‘add_domain’:
domain.c:105: error: ‘VPOPMAILGID’ undeclared (first use in this
function)
domain.c:105: error: (Each undeclared identifier is reported only
once
domain.c:105: error: for each function it appears in.)
make[2]: *** [domain.o] Error 1
make[2]: Leaving directory `/root/Desktop/vqadmin-2.3.7'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Desktop/vqadmin-2.3.7'
make: *** [all] Error 2

Regards,

Amit

At Saturday, 14-08-2010 on 23:09 Lawrence Sheed wrote:

IMHO 

Forget about 5.5, it doesn't play nice with the other tools.
I just spent about 3 or 4 hours on this on a new 64bit server build
on Wednesday.

You can compile it by copying over the config.guess and config.sub
files from the vpopmail source directory (so it has a slightly newer
build map), and by adding in manually #define VPOPMAILDIR /
VPOPMAILGUID / VPOPMAILUID into the config.h file, but it proves to be
buggy and segfault at least in 64bit.

You'd do this by adding something like the following (for your
settings) into the config.h file for vqadmin

#define VPOPMAILUID 7807
#define VPOPMAILGUID 7802
#define VPOPMAILDIR "/home/vpopmail"

I've given up on 5.5, and stick to the 5.4 series, at least until the
other utils that really make up  vpopmail  - vqadmin / qmailadmin
are ready..

Lawrence / ComputerSolutions.cn [1]

On Aug 14, 2010, at 10:39 PM, Amit Dalia wrote:

Hi Everyone,
 
  I had just compiled and installed vpopmail 5.5.0 with LDAP support
from
  source package. Now when I'm trying to install vqadmin it is
giving
  error. I'm installing vqadmin from source package.
 
 1) Output of "./configure --enable-cgibindir=/var/www/cgi-bin
--enable-qmaildir=/var/qmail --enable-htmldir=/var/www/html"
 
 Current settings
  ---------------------------------------
  vpopmail directory = /home/vpopmail
  uid = 7807
  gid = 7802
  cgi-bin dir = /var/www/cgi-bin
  vqadmin dir = /var/www/cgi-bin/vqadmin
 
  No error
 
  2) Output of "make && make install"
 
  make all-recursive
  make[1]: Entering directory `/root/Desktop/vqadmin-2.3.7'
  make[2]: Entering directory `/root/Desktop/vqadmin-2.3.7'
  gcc -I. -I/home/vpopmail/include/vpopmail -I. -I. -I. -g -O2 -Wall
-c `test -f 'domain.c' || echo './'`domain.c
  In file included from domain.c:32: 
/home/vpopmail/include/vpopmail/vpopmail_config.h:244:1: warning:
"PACKAGE_NAME" redefined
  In file included from domain.c:29:  config.h:68:1: warning: this
is the location of the previous definition
  In file included from domain.c:32: 
/home/vpopmail/include/vpopmail/vpopmail_config.h:247:1: warning:
"PACKAGE_STRING" redefined
  In file included from domain.c:29: config.h:71:1: warning: this is
the location of the previous definition
  In file included from domain.c:32: 
/home/vpopmail/include/vpopmail/vpopmail_config.h:250:1: warning:
"PACKAGE_TARNAME" redefined
  In file included from domain.c:29: config.h:74:1: warning: this is
the location of the previous definition
  In file included from domain.c:32:
/home/vpopmail/include/vpopmail/vpopmail_config.h:253:1: warning:
"PACKAGE_VERSION" redefined
  In file included from domain.c:29: config.h:77:1: warning: this is
the location of the previous definition domain.c: In function
‘add_domain’: 
  domain.c:105: error: ‘VPOPMAILDIR’ undeclared (first use in
this function)
  domain.c:105: error: (Each undeclared identifier is reported only
once
  domain.c:105: error: for each function it appears in.)
  domain.c:105: error: ‘VPOPMAILUID’ undeclared (first use in
this function)
  domain.c:105: error: ‘VPOPMAILGID’ undeclared (first use in
this function)
  make[2]: *** [domain.o] Error 1
  make[2]: Leaving directory `/root/Desktop/vqadmin-2.3.7'
  make[1]: *** [all-recursive] Error 1
  make[1]: Leaving directory `/root/Desktop/vqadmin-2.3.7'
  make: *** [all] Error 2
 
Please help.
 
Thanks and regards,

Amit





Links:
------
[1] http://ComputerSolutions.cn



!DSPAM:4c66f2f132711224511487!
Lawrence Sheed
2010-08-15 02:34:03 UTC
Permalink
Suggest try using that squishy grey mass between your ears.

VPOPMAILGID is what?

Vpopmail group id perhaps? (which in your install was? 7802?)

What on earth could you possibly try given an error like that, given that we resolved *exactly* that same issue somehow not 1 email previously.

Could you either:

Rename VPOPMAILGID to VPOPMAILGUID in domain.c?

Or perhaps add yet another line in config.h defining this new variable?

Stay tuned our next episode of "Give a man a fish and feed him for a day; Set a man on fire, keep him warm for life."
Post by Amit Dalia
Hi Lawrence,
config.h:81:1: warning: this is the location of the previous definition
domain.c:105: error: ‘VPOPMAILGID’ undeclared (first use in this function)
domain.c:105: error: (Each undeclared identifier is reported only once
domain.c:105: error: for each function it appears in.)
make[2]: *** [domain.o] Error 1
make[2]: Leaving directory `/root/Desktop/vqadmin-2.3.7'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Desktop/vqadmin-2.3.7'
make: *** [all] Error 2
Regards,
Amit
IMHO
Forget about 5.5, it doesn't play nice with the other tools.
I just spent about 3 or 4 hours on this on a new 64bit server build on Wednesday.
You can compile it by copying over the config.guess and config.sub files from the vpopmail source directory (so it has a slightly newer build map), and by adding in manually #define VPOPMAILDIR / VPOPMAILGUID / VPOPMAILUID into the config.h file, but it proves to be buggy and segfault at least in 64bit.
You'd do this by adding something like the following (for your settings) into the config.h file for vqadmin
#define VPOPMAILUID 7807
#define VPOPMAILGUID 7802
#define VPOPMAILDIR "/home/vpopmail"
I've given up on 5.5, and stick to the 5.4 series, at least until the other utils that really make up vpopmail - vqadmin / qmailadmin are ready.
Lawrence / ComputerSolutions.cn
Post by Amit Dalia
Hi Everyone,
I had just compiled and installed vpopmail 5.5.0 with LDAP support from
source package. Now when I'm trying to install vqadmin it is giving
error. I'm installing vqadmin from source package.
1) Output of "./configure --enable-cgibindir=/var/www/cgi-bin --enable-qmaildir=/var/qmail --enable-htmldir=/var/www/html"
Current settings
---------------------------------------
vpopmail directory = /home/vpopmail
uid = 7807
gid = 7802
cgi-bin dir = /var/www/cgi-bin
vqadmin dir = /var/www/cgi-bin/vqadmin
No error
2) Output of "make && make install"
make all-recursive
make[1]: Entering directory `/root/Desktop/vqadmin-2.3.7'
make[2]: Entering directory `/root/Desktop/vqadmin-2.3.7'
gcc -I. -I/home/vpopmail/include/vpopmail -I. -I. -I. -g -O2 -Wall -c `test -f 'domain.c' || echo './'`domain.c
In file included from domain.c:32: /home/vpopmail/include/vpopmail/vpopmail_config.h:244:1: warning: "PACKAGE_NAME" redefined
In file included from domain.c:29: config.h:68:1: warning: this is the location of the previous definition
In file included from domain.c:32: /home/vpopmail/include/vpopmail/vpopmail_config.h:247:1: warning: "PACKAGE_STRING" redefined
In file included from domain.c:29: config.h:71:1: warning: this is the location of the previous definition
In file included from domain.c:32: /home/vpopmail/include/vpopmail/vpopmail_config.h:250:1: warning: "PACKAGE_TARNAME" redefined
In file included from domain.c:29: config.h:74:1: warning: this is the location of the previous definition
In file included from domain.c:32: /home/vpopmail/include/vpopmail/vpopmail_config.h:253:1: warning: "PACKAGE_VERSION" redefined
domain.c:105: error: ‘VPOPMAILDIR’ undeclared (first use in this function)
domain.c:105: error: (Each undeclared identifier is reported only once
domain.c:105: error: for each function it appears in.)
domain.c:105: error: ‘VPOPMAILUID’ undeclared (first use in this function)
domain.c:105: error: ‘VPOPMAILGID’ undeclared (first use in this function)
make[2]: *** [domain.o] Error 1
make[2]: Leaving directory `/root/Desktop/vqadmin-2.3.7'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Desktop/vqadmin-2.3.7'
make: *** [all] Error 2
Please help.
Thanks and regards,
Amit
!DSPAM:4c67522132713997617819!
Amit Dalia
2010-08-15 06:33:20 UTC
Permalink
Hi Lawrence,

Thanks and really sorry for not noticing such small thing. I think I
had successfully compiled vqadmin now as "make && make install" didn't
throw any other error.

Thanks again.

Regards,

Amit

At Sunday, 15-08-2010 on 8:04 Lawrence Sheed wrote:

Suggest try using that squishy grey mass between your ears.

VPOPMAILGID is what?

Vpopmail group id perhaps?  (which in your install was? 7802?)

What on earth could you possibly try given an error like that, given
that we resolved *exactly* that same issue somehow not 1 email
previously.

Could you either:

Rename VPOPMAILGID to VPOPMAILGUID in domain.c?

Or perhaps add yet another line in config.h defining this new
variable?

Stay tuned our next episode of "Give a man a fish and feed him for a
day; Set a man on fire, keep him warm for life."

On Aug 15, 2010, at 3:47 AM, Amit Dalia wrote:

Hi Lawrence,

Now i'm getting below error:

In file included from domain.c:29:
config.h:81:1: warning: this is the location of the previous
definition
domain.c: In function ‘add_domain’:
domain.c:105: error: ‘VPOPMAILGID’ undeclared (first use in this
function)
domain.c:105: error: (Each undeclared identifier is reported only
once
domain.c:105: error: for each function it appears in.)
make[2]: *** [domain.o] Error 1
make[2]: Leaving directory `/root/Desktop/vqadmin-2.3.7'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Desktop/vqadmin-2.3.7'
make: *** [all] Error 2

Regards,

Amit

At Saturday, 14-08-2010 on 23:09 Lawrence Sheed wrote:

IMHO 

Forget about 5.5, it doesn't play nice with the other tools.
I just spent about 3 or 4 hours on this on a new 64bit server build
on Wednesday.

You can compile it by copying over the config.guess and config.sub
files from the vpopmail source directory (so it has a slightly newer
build map), and by adding in manually #define VPOPMAILDIR /
VPOPMAILGUID / VPOPMAILUID into the config.h file, but it proves to be
buggy and segfault at least in 64bit.

You'd do this by adding something like the following (for your
settings) into the config.h file for vqadmin

#define VPOPMAILUID 7807
#define VPOPMAILGUID 7802
#define VPOPMAILDIR "/home/vpopmail"

I've given up on 5.5, and stick to the 5.4 series, at least until the
other utils that really make up  vpopmail  - vqadmin / qmailadmin
are ready.

Lawrence / ComputerSolutions.cn [1]

On Aug 14, 2010, at 10:39 PM, Amit Dalia wrote:

Hi Everyone,
 
  I had just compiled and installed vpopmail 5.5.0 with LDAP support
from
  source package. Now when I'm trying to install vqadmin it is
giving
  error. I'm installing vqadmin from source package.
 
 1) Output of "./configure --enable-cgibindir=/var/www/cgi-bin
--enable-qmaildir=/var/qmail --enable-htmldir=/var/www/html"
 
 Current settings
  ---------------------------------------
  vpopmail directory = /home/vpopmail
  uid = 7807
  gid = 7802
  cgi-bin dir = /var/www/cgi-bin
  vqadmin dir = /var/www/cgi-bin/vqadmin
 
  No error
 
  2) Output of "make && make install"
 
  make all-recursive
  make[1]: Entering directory `/root/Desktop/vqadmin-2.3.7'
  make[2]: Entering directory `/root/Desktop/vqadmin-2.3.7'
  gcc -I. -I/home/vpopmail/include/vpopmail -I. -I. -I. -g -O2 -Wall
-c `test -f 'domain.c' || echo './'`domain.c
  In file included from domain.c:32: 
/home/vpopmail/include/vpopmail/vpopmail_config.h:244:1: warning:
"PACKAGE_NAME" redefined
  In file included from domain.c:29:  config.h:68:1: warning: this
is the location of the previous definition
  In file included from domain.c:32: 
/home/vpopmail/include/vpopmail/vpopmail_config.h:247:1: warning:
"PACKAGE_STRING" redefined
  In file included from domain.c:29: config.h:71:1: warning: this is
the location of the previous definition
  In file included from domain.c:32: 
/home/vpopmail/include/vpopmail/vpopmail_config.h:250:1: warning:
"PACKAGE_TARNAME" redefined
  In file included from domain.c:29: config.h:74:1: warning: this is
the location of the previous definition
  In file included from domain.c:32:
/home/vpopmail/include/vpopmail/vpopmail_config.h:253:1: warning:
"PACKAGE_VERSION" redefined
  In file included from domain.c:29: config.h:77:1: warning: this is
the location of the previous definition domain.c: In function
‘add_domain’: 
  domain.c:105: error: ‘VPOPMAILDIR’ undeclared (first use in
this function)
  domain.c:105: error: (Each undeclared identifier is reported only
once
  domain.c:105: error: for each function it appears in.)
  domain.c:105: error: ‘VPOPMAILUID’ undeclared (first use in
this function)
  domain.c:105: error: ‘VPOPMAILGID’ undeclared (first use in
this function)
  make[2]: *** [domain.o] Error 1
  make[2]: Leaving directory `/root/Desktop/vqadmin-2.3.7'
  make[1]: *** [all-recursive] Error 1
  make[1]: Leaving directory `/root/Desktop/vqadmin-2.3.7'
  make: *** [all] Error 2
 
Please help.
 
Thanks and regards,

Amit





Links:
------
[1] http://ComputerSolutions.cn/



!DSPAM:4c678a3932716511615275!

Loading...