[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

(qpopper_4.0.5-4sarge1_amd64 + qpopper-mysql-0.14.patch) compilation error (fwd)




Dear Debian users,

I tired to compile and make a package from the qpopper_4.0.5-4sarge1_amd64
source files after I applied the qpopper-mysql-0.14.patch, but I had got
some problem during the proceudre.

1. I couldn't applie the patch fully by the debian src however there was
no problem with the original qpopper files with the same patch.
(ftp://ftp.qualcomm.com/eudora/servers/unix/popper/old/qpopper4.0.5.tar.gz)

2. By the original qpopper files after the configuration the compilation finished without any problem but with the debian source it was halted with the following msg:

gcc -c -I.. -I.. -I. \
        -I../mmangle -I../common -I/usr/local/ssl/include \
        -g -O2 -DHAVE_CONFIG_H  -I/usr/include/mysql -DLINUX -DUNIX
pop_get_subcommand.c -o pop_get_subcommand.o
gcc -c -I.. -I.. -I. \
        -I../mmangle -I../common -I/usr/local/ssl/include \
        -g -O2 -DHAVE_CONFIG_H  -I/usr/include/mysql -DLINUX -DUNIX
pop_init.c -o pop_init.o
gcc -c -I.. -I.. -I. \
        -I../mmangle -I../common -I/usr/local/ssl/include \
        -g -O2 -DHAVE_CONFIG_H  -I/usr/include/mysql -DLINUX -DUNIX
pop_last.c -o pop_last.o
gcc -c -I.. -I.. -I. \
        -I../mmangle -I../common -I/usr/local/ssl/include \
        -g -O2 -DHAVE_CONFIG_H  -I/usr/include/mysql -DLINUX -DUNIX
pop_list.c -o pop_list.o
gcc -c -I.. -I.. -I. \
        -I../mmangle -I../common -I/usr/local/ssl/include \
        -g -O2 -DHAVE_CONFIG_H  -I/usr/include/mysql -DLINUX -DUNIX
pop_log.c -o pop_log.o
gcc -c -I.. -I.. -I. \
        -I../mmangle -I../common -I/usr/local/ssl/include \
        -g -O2 -DHAVE_CONFIG_H  -I/usr/include/mysql -DLINUX -DUNIX
pop_lower.c -o pop_lower.o
gcc -c -I.. -I.. -I. \
        -I../mmangle -I../common -I/usr/local/ssl/include \
        -g -O2 -DHAVE_CONFIG_H  -I/usr/include/mysql -DLINUX -DUNIX
pop_msg.c -o pop_msg.o
gcc -c -I.. -I.. -I. \
        -I../mmangle -I../common -I/usr/local/ssl/include \
        -g -O2 -DHAVE_CONFIG_H  -I/usr/include/mysql -DLINUX -DUNIX
pop_parse.c -o pop_parse.o
gcc -c -I.. -I.. -I. \
        -I../mmangle -I../common -I/usr/local/ssl/include \
        -g -O2 -DHAVE_CONFIG_H  -I/usr/include/mysql -DLINUX -DUNIX
pop_pass.c -o pop_pass.o
pop_pass.c: In function `pop_pass':
pop_pass.c:1614: error: `mysqlauth_host' undeclared (first use in this
function)
pop_pass.c:1614: error: (Each undeclared identifier is reported only once
pop_pass.c:1614: error: for each function it appears in.)
pop_pass.c:1614: error: `mysqlauth_username' undeclared (first use in this
function)
pop_pass.c:1615: error: `mysqlauth_password' undeclared (first use in this
function)
pop_pass.c:1615: error: `mysqlauth_db' undeclared (first use in this
function)
pop_pass.c:1616: error: `mysqlauth_port' undeclared (first use in this
function)
make[2]: *** [pop_pass.o] Error 1
make[2]: Leaving directory `/usr/src/qpopper-4.0.5/popper'
make[1]: *** [popper_server] Error 2
make[1]: Leaving directory `/usr/src/qpopper-4.0.5'
make: *** [install] Error 2



please write my any intruduction how can I make a working packege.
thanx
Szabolcs Toth
***************
*** 1531,1541 ****
  {
      int         rslt;
      char        buf [ 256 ];
      struct stat stat_buf;


      if ( p->bUser_opts ) {
          rslt = Qsnprintf ( buf, sizeof(buf), "%s/.qpopper-options", pwp->pw_dir );
          if ( rslt == -1 )
              pop_log ( p, POP_PRIORITY, HERE,
                        "Unable to build user options file name for user %s",
--- 1551,1579 ----
  {
      int         rslt;
      char        buf [ 256 ];
+     char        tempbuf [ 256 ];
      struct stat stat_buf;


      if ( p->bUser_opts ) {
+ #ifdef MYSQLAUTH
+       /* assumes home directory? */
+       strcpy(tempbuf,pwp->pw_dir);
+       /* tack on domain */
+       if (strcmp(p->domain,"NULL")) {
+               strlcat ( tempbuf, p->domain, sizeof(tempbuf) );
+               strlcat ( tempbuf, "/", sizeof(tempbuf) );
+       }
+       /* tack on hashing */
+       if ( p->hash_spool != 0 ) {
+        strlcat ( tempbuf, get_hash_dir ( p->user, p->hash_spool ), sizeof(tempbuf) );
+       }
+       /* tack on user */
+       strlcat ( tempbuf, p->user, sizeof(tempbuf) );
+         rslt = Qsnprintf ( buf, sizeof(buf), "%s/.qpopper-options", tempbuf );
+ #else
          rslt = Qsnprintf ( buf, sizeof(buf), "%s/.qpopper-options", pwp->pw_dir );
+ #endif
          if ( rslt == -1 )
              pop_log ( p, POP_PRIORITY, HERE,
                        "Unable to build user options file name for user %s",

oracle:/usr/src/qpopper-4.0.5# patch -p1 < qpopper-mysql-0.14.patch
patching file config.h.in
Hunk #1 succeeded at 295 (offset 9 lines).
Hunk #2 succeeded at 616 (offset 14 lines).
patching file configure
Hunk #1 succeeded at 833 (offset 159 lines).
Hunk #2 succeeded at 843 (offset 159 lines).
Hunk #3 succeeded at 878 (offset 159 lines).
Hunk #4 succeeded at 899 (offset 160 lines).
Hunk #5 succeeded at 3168 with fuzz 2 (offset 460 lines).
Hunk #6 succeeded at 4531 with fuzz 2 (offset 539 lines).
Hunk #7 FAILED at 6043.
Hunk #8 succeeded at 8233 with fuzz 2 (offset 438 lines).
1 out of 8 hunks FAILED -- saving rejects to file configure.rej
patching file configure.in
patching file doc/Changes.MAILDIR
patching file doc/Changes.MYSQL
patching file example-maildir-configure.txt
patching file example-mysql-configure.txt
patching file mysql-popper.conf
patching file popper/genpath.c
patching file popper/maildir.c
patching file popper/maildir.h
patching file popper/Makefile.in
patching file popper/msg_ptr.c
patching file popper/pop_conf.c
patching file popper/pop_config.c
Hunk #1 succeeded at 230 (offset 1 line).
Hunk #2 succeeded at 306 (offset 1 line).
Hunk #3 succeeded at 403 (offset 1 line).
Hunk #4 succeeded at 424 (offset 1 line).
Hunk #5 succeeded at 471 (offset 1 line).
Hunk #6 succeeded at 926 (offset 1 line).
Hunk #7 FAILED at 1551.
Hunk #8 succeeded at 1588 (offset -3 lines).
Hunk #9 succeeded at 1682 (offset 27 lines).
1 out of 9 hunks FAILED -- saving rejects to file popper/pop_config.c.rej
patching file popper/pop_dropcopy.c
patching file popper/pop_init.c
Hunk #1 succeeded at 585 (offset 57 lines).
patching file popper/pop_list.c
patching file popper/pop_pass.c
patching file popper/popper.c
patching file popper/popper.h
patching file popper/pop_send.c
patching file popper/pop_uidl.c
patching file popper/pop_updt.c
patching file popper/pop_user.c
patching file popper/pop_util.c
patching file popper/version.h
patching file popper/xtnd_xlst.c
patching file README.MAILDIR
patching file README.MYSQL
***************
*** 5835,5840 ****
    DBM_H="no"
  fi
  
  echo "$as_me:5299: checking for t_accept in -lnsl" >&5
  echo $ECHO_N "checking for t_accept in -lnsl... $ECHO_C" >&6
  if test "${ac_cv_lib_nsl_t_accept+set}" = set; then
--- 6043,6093 ----
    DBM_H="no"
  fi
  
+ # check for mysql.h
+ if test "$mysql" != "no"; then
+ ac_hdr="$mysqlincludepath/mysql.h"
+ ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ echo $ECHO_N "checking for $ac_hdr... $ECHO_C" 1>&6
+ echo "configure:3755: checking for $ac_hdr" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+   echo $ECHO_N "(cached) $ECHO_C" 1>&6
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 3760 "configure"
+ #include "confdefs.h"
+ #include <$ac_hdr>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ { (eval echo configure:3765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out`
+ if test -z "$ac_err"; then
+   rm -rf conftest*
+   eval "ac_cv_header_$ac_safe=yes"
+ else
+   echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   eval "ac_cv_header_$ac_safe=no"
+ fi
+ rm -f conftest*
+ fi
+ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+   echo "$ac_t""yes" 1>&6
+ else
+   echo "$ac_t""no" 1>&6
+ { echo "configure: error: "mysql.h not found"" 1>&2;
+   echo "Try specifying your mysql include path with --with-mysqlincludepath=path" 1>&2;
+   exit 1; }
+ fi
+ 
+        echo "$ac_t""Turning on mysql authentication" 1>&6
+        cat >> confdefs.h <<\EOF
+ #define MYSQLAUTH 1
+ EOF
+ 
+ fi
+ # check for mysql.h
+ 
  echo "$as_me:5299: checking for t_accept in -lnsl" >&5
  echo $ECHO_N "checking for t_accept in -lnsl... $ECHO_C" >&6
  if test "${ac_cv_lib_nsl_t_accept+set}" = set; then

Reply to: