Hello to everybody,

I have tried to compile vpopmail 5.4.17 from the original source and after a 
succesfull configuration phase I hit the following erros during make:
____________________________________________________
vauth.c: In function 'load_connection_info':
vauth.c:134: error: assignment of read-only location
vauth.c:134: error: incompatible types in assignment
vauth.c:139: error: assignment of read-only location
vauth.c:139: error: incompatible types in assignment
vauth.c:141: error: assignment of read-only location
vauth.c:141: error: incompatible types in assignment
vauth.c:153: error: assignment of read-only location
vauth.c:153: error: incompatible types in assignment
vauth.c:155: error: assignment of read-only location
vauth.c:155: error: incompatible types in assignment
vauth.c:156: error: assignment of read-only location
vauth.c:156: error: incompatible types in assignment
vauth.c:160: error: assignment of read-only location
vauth.c:160: error: incompatible types in assignment
vauth.c:165: error: assignment of read-only location
vauth.c:165: error: incompatible types in assignment
vauth.c:167: error: assignment of read-only location
vauth.c:167: error: incompatible types in assignment
make[2]: *** [libvpopmail_a-vauth.o] Error 1
make[2]: Leaving directory `/usr/src/vpopmail-5.4.17'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/vpopmail-5.4.17'
make: *** [all] Error 2
________________________________________________

Below is the output of the configuration phase:

_____________________________________
           vpopmail 5.4.17
            Current settings
---------------------------------------
vpopmail directory = /var/lib/vpopmail
 domains directory = /var/lib/vpopmail/domains
               uid = 89
               gid = 89
     roaming users = ON  --enable-roaming-users
    tcpserver file = /var/lib/vpopmail/etc/tcp.smtp
    open_smtp file = /var/lib/vpopmail/etc/open-smtp
rebuild tcpserver file = ON  --enable-rebuild-tcpserver-file (default)
 password learning = OFF --disable-learn-passwords (default)
     md5 passwords = ON  --enable-md5-passwords (default)
      file locking = ON  --enable-file-locking (default)
vdelivermail fsync = OFF --disable-file-sync (default)
     make seekable = ON  --enable-make-seekable (default)
      clear passwd = ON  --enable-clear-passwd (default)
 user dir hashing  = ON  --enable-users-big-dir (default)
address extensions = ON  --enable-qmail-ext
          ip alias = OFF --disable-ip-alias-domains (default)
       auth module = mysql --enable-auth-module=mysql
 mysql replication = OFF --disable-mysql-replication (default)
       sql logging = ON  --enable-sql-logging
      mysql limits = OFF --disable-mysql-limits (default)
  SQL valias table = ON  --enable-valias
          auth inc = -I/usr/include/mysql
          auth lib = -L/usr/lib/mysql  -lmysqlclient -lz -lm
  system passwords = OFF --disable-passwd (default)
        pop syslog = show failed attempts with clear text password
                     --enable-logging=p
      auth logging = ON  --enable-auth-logging (default)
all domains in one SQL table = --enable-many-domains (default)
_______________________________________________

The file vauth.c is a symlink to the file vmysql.c and the offending lines are 
as follows:
Line 134                MYSQL_READ_SERVER = strtok(conf_read, delimiters);
Line 139                MYSQL_READ_USER = strtok(NULL, delimiters);
Line 141                MYSQL_READ_PASSWD = strtok(NULL, delimiters);
Line 153                MYSQL_UPDATE_SERVER = MYSQL_READ_SERVER;
Line 155                MYSQL_UPDATE_USER = MYSQL_READ_USER;
Line 156                MYSQL_UPDATE_PASSWD = MYSQL_READ_PASSWD;
Line 160                MYSQL_UPDATE_SERVER = strtok(conf_update, delimiters);
Line 165                MYSQL_UPDATE_USER = strtok(NULL, delimiters);
Line 167                MYSQL_UPDATE_PASSWD = strtok(NULL, delimiters);
After some reading I created the file /var/lib/vpopmail/etc/vpopmail.mysql as 
instructed in the file vpopmail.mysql from the root of the source tree. The 
database vpopmail and the assigning of all rights to the user [EMAIL PROTECTED] 
had been created previously. Then I hit make again but received exactly the 
same errors.
Can anyone give a helping hand?
Regards,
Florin 

Reply via email to