Discussion:
AMD64
Eduardo M. Bragatto
2005-07-03 00:15:23 UTC
Permalink
Are there any patches for compiling vqadmin on x86_64 plataforms? I'm
trying it with 2.3.6 but even after updating the config.sub,
config.guess, mkinstalldirs, missing and install-sh scripts and running
"autoreconf --force", I'm getting errors from gcc when I execute "make":

mail vqadmin-2.3.6 # make
make all-recursive
make[1]: Entering directory `/usr/src/vqadmin-2.3.6'
make[2]: Entering directory `/usr/src/vqadmin-2.3.6'
gcc -I. -I/var/vpopmail/include -I. -I. -I. -g -O2 -Wall -c `test -f
'vqadmin.c' || echo './'`vqadmin.c
gcc -I. -I/var/vpopmail/include -I. -I. -I. -g -O2 -Wall -c `test -f
'cgi.c' || echo './'`cgi.c
gcc -I. -I/var/vpopmail/include -I. -I. -I. -g -O2 -Wall -c `test -f
'template.c' || echo './'`template.c
In file included from template.c:31:
/var/vpopmail/include/vpopmail_config.h:212:1: warning: "PACKAGE" redefined
In file included from template.c:30:
config.h:63:1: warning: this is the location of the previous definition
In file included from template.c:31:
/var/vpopmail/include/vpopmail_config.h:218:1: warning: "PACKAGE_NAME"
redefined
In file included from template.c:30:
config.h:69:1: warning: this is the location of the previous definition
In file included from template.c:31:
/var/vpopmail/include/vpopmail_config.h:221:1: warning: "PACKAGE_STRING"
redefined
In file included from template.c:30:
config.h:72:1: warning: this is the location of the previous definition
In file included from template.c:31:
/var/vpopmail/include/vpopmail_config.h:224:1: warning:
"PACKAGE_TARNAME" redefined
In file included from template.c:30:
config.h:75:1: warning: this is the location of the previous definition
In file included from template.c:31:
/var/vpopmail/include/vpopmail_config.h:227:1: warning:
"PACKAGE_VERSION" redefined
In file included from template.c:30:
config.h:78:1: warning: this is the location of the previous definition
In file included from template.c:31:
/var/vpopmail/include/vpopmail_config.h:305:1: warning: "VERSION" redefined
In file included from template.c:30:
config.h:87:1: warning: this is the location of the previous definition
template.c: In function `t_code':
template.c:43: error: `VQA_PACKAGE' undeclared (first use in this function)
template.c:43: error: (Each undeclared identifier is reported only once
template.c:43: error: for each function it appears in.)
template.c:43: error: `VQA_VERSION' undeclared (first use in this function)
make[2]: *** [template.o] Error 1
make[2]: Leaving directory `/usr/src/vqadmin-2.3.6'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/vqadmin-2.3.6'
make: *** [all] Error 2
mail vqadmin-2.3.6 #

Any suggestions?

--
Best regards,
Eduardo M. Bragatto.
Ken Jones
2005-07-05 14:31:10 UTC
Permalink
Post by Eduardo M. Bragatto
Are there any patches for compiling vqadmin on x86_64 plataforms? I'm
trying it with 2.3.6 but even after updating the config.sub,
config.guess, mkinstalldirs, missing and install-sh scripts and running
mail vqadmin-2.3.6 # make
make all-recursive
make[1]: Entering directory `/usr/src/vqadmin-2.3.6'
make[2]: Entering directory `/usr/src/vqadmin-2.3.6'
gcc -I. -I/var/vpopmail/include -I. -I. -I. -g -O2 -Wall -c `test -f
'vqadmin.c' || echo './'`vqadmin.c
gcc -I. -I/var/vpopmail/include -I. -I. -I. -g -O2 -Wall -c `test -f
'cgi.c' || echo './'`cgi.c
gcc -I. -I/var/vpopmail/include -I. -I. -I. -g -O2 -Wall -c `test -f
'template.c' || echo './'`template.c
/var/vpopmail/include/vpopmail_config.h:212:1: warning: "PACKAGE" redefined
config.h:63:1: warning: this is the location of the previous definition
/var/vpopmail/include/vpopmail_config.h:218:1: warning: "PACKAGE_NAME"
redefined
config.h:69:1: warning: this is the location of the previous definition
/var/vpopmail/include/vpopmail_config.h:221:1: warning: "PACKAGE_STRING"
redefined
config.h:72:1: warning: this is the location of the previous definition
"PACKAGE_TARNAME" redefined
config.h:75:1: warning: this is the location of the previous definition
"PACKAGE_VERSION" redefined
config.h:78:1: warning: this is the location of the previous definition
/var/vpopmail/include/vpopmail_config.h:305:1: warning: "VERSION" redefined
config.h:87:1: warning: this is the location of the previous definition
template.c:43: error: `VQA_PACKAGE' undeclared (first use in this function)
template.c:43: error: (Each undeclared identifier is reported only once
template.c:43: error: for each function it appears in.)
template.c:43: error: `VQA_VERSION' undeclared (first use in this function)
make[2]: *** [template.o] Error 1
make[2]: Leaving directory `/usr/src/vqadmin-2.3.6'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/vqadmin-2.3.6'
make: *** [all] Error 2
mail vqadmin-2.3.6 #
Any suggestions?
--
Best regards,
Eduardo M. Bragatto.
The autoconf program updates one of the automatically generated
configuration files, which over writes where VQA_PACKAGE and VQA_VERSION
are defined. I have not been able to figure out how to make the autoconf
files use VQA_VERSION and VQA_PACKAGE instead of the standard
PACKAGE and VERSION defines.

So you need to edit the file where PACKAGE and VERSION are defined
and manually change them to have VQA in front of them. I did this so
that the version and package defines are different than the vpopmail
defines.

Sounds like we should release a new version that has the new config.guess
that supports the 64bit option.

Ken Jones
inter7.com

Loading...