Hello,
I am trying to setup alpine mail client on my archlinux 6.12.7-arch1-1.
I have cloned the AUR package:
https://aur.archlinux.org/packages/alpine
However, when I run makepkg command to build the package tarball, it
throws the below error
NOTE: I have attached .log file, if anyone wants to see the full error
log.
--------
Rebuilding c-client for slx...
cd c-client;make all CC=`cat CCTYPE` \
CFLAGS="`cat CFLAGS`" `cat SPECIALS`
make[3]: Entering directory
'/home/ragini/aur/alpine/src/alpine-2.26/imap/c-client'
Building OS-dependent module
If you get No such file error messages for files x509.h, ssl.h,
pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL
is not installed on your system. Either install OpenSSL first
or build with command: make slx SSLTYPE=none
`cat CCTYPE` -c `cat CFLAGS` `cat OSCFLAGS` -c osdep.c
In file included from osdep.c:47:
env_unix.c: In function ‘pw_login’:
env_unix.c:823:44: warning: ignoring return value of ‘chdir’ declared
with attribute ‘warn_unused_result’ [-Wunused-result]
823 | (ret = env_init (user,home))) chdir (myhomedir ());
| ^~~~~~~~~~~~~~~~~~~~
`cat CCTYPE` -c `cat CFLAGS` mail.c
`cat CCTYPE` -c `cat CFLAGS` misc.c
`cat CCTYPE` -c `cat CFLAGS` newsrc.c
`cat CCTYPE` -c `cat CFLAGS` smanager.c
`cat CCTYPE` -c `cat CFLAGS` utf8.c
`cat CCTYPE` -c `cat CFLAGS` utf8aux.c
`cat CCTYPE` -c `cat CFLAGS` dummy.c
In file included from dummy.c:36:
maildir.h:123:16: error: redeclaration of enumerator ‘Draft’
123 | typedef enum {Draft, Flagged, Passed, Replied, Seen, Trashed,
.
.
.
.
make[3]: *** [Makefile:887: dummy.o] Error 1
make[3]: Leaving directory
'/home/ragini/aur/alpine/src/alpine-2.26/imap/c-client'
make[2]: *** [Makefile:709: rebuild] Error 2
make[2]: Leaving directory
'/home/ragini/aur/alpine/src/alpine-2.26/imap'
make[1]: *** [Makefile:314: slx] Error 2
make[1]: Leaving directory
'/home/ragini/aur/alpine/src/alpine-2.26/imap'
make: *** [Makefile:979: c-client] Error 2
==> ERROR: A failure occurred in build().
Aborting...
------
Warm regards
Ragini.
env_unix.c: In function âpw_loginâ:
env_unix.c:823:44: warning: ignoring return value of âchdirâ declared with
attribute âwarn_unused_resultâ [-Wunused-result]
823 | (ret = env_init (user,home))) chdir (myhomedir ());
| ^~~~~~~~~~~~~~~~~~~~
`cat CCTYPE` -c `cat CFLAGS` mail.c
`cat CCTYPE` -c `cat CFLAGS` misc.c
`cat CCTYPE` -c `cat CFLAGS` newsrc.c
`cat CCTYPE` -c `cat CFLAGS` smanager.c
`cat CCTYPE` -c `cat CFLAGS` utf8.c
`cat CCTYPE` -c `cat CFLAGS` utf8aux.c
`cat CCTYPE` -c `cat CFLAGS` dummy.c
In file included from dummy.c:36:
maildir.h:123:16: error: redeclaration of enumerator âDraftâ
123 | typedef enum {Draft, Flagged, Passed, Replied, Seen, Trashed,
| ^~~~~
maildir.h:1:16: note: previous definition of âDraftâ with type âenum
<anonymous>â
1 | typedef enum {Draft, Flagged, Passed, Replied, Seen, Trashed,
| ^~~~~
maildir.h:123:23: error: redeclaration of enumerator âFlaggedâ
123 | typedef enum {Draft, Flagged, Passed, Replied, Seen, Trashed,
| ^~~~~~~
maildir.h:1:23: note: previous definition of âFlaggedâ with type âenum
<anonymous>â
1 | typedef enum {Draft, Flagged, Passed, Replied, Seen, Trashed,
| ^~~~~~~
maildir.h:123:32: error: redeclaration of enumerator âPassedâ
123 | typedef enum {Draft, Flagged, Passed, Replied, Seen, Trashed,
| ^~~~~~
maildir.h:1:32: note: previous definition of âPassedâ with type âenum
<anonymous>â
1 | typedef enum {Draft, Flagged, Passed, Replied, Seen, Trashed,
| ^~~~~~
maildir.h:123:40: error: redeclaration of enumerator âRepliedâ
123 | typedef enum {Draft, Flagged, Passed, Replied, Seen, Trashed,
| ^~~~~~~
maildir.h:1:40: note: previous definition of âRepliedâ with type âenum
<anonymous>â
1 | typedef enum {Draft, Flagged, Passed, Replied, Seen, Trashed,
| ^~~~~~~
maildir.h:123:49: error: redeclaration of enumerator âSeenâ
123 | typedef enum {Draft, Flagged, Passed, Replied, Seen, Trashed,
| ^~~~
maildir.h:1:49: note: previous definition of âSeenâ with type âenum
<anonymous>â
1 | typedef enum {Draft, Flagged, Passed, Replied, Seen, Trashed,
| ^~~~
maildir.h:123:55: error: redeclaration of enumerator âTrashedâ
123 | typedef enum {Draft, Flagged, Passed, Replied, Seen, Trashed,
| ^~~~~~~
maildir.h:1:55: note: previous definition of âTrashedâ with type âenum
<anonymous>â
1 | typedef enum {Draft, Flagged, Passed, Replied, Seen, Trashed,
| ^~~~~~~
maildir.h:124:16: error: redeclaration of enumerator âEmptyFlagâ
124 | EmptyFlag, EndFlags} MdFlagNamesType;
| ^~~~~~~~~
maildir.h:2:16: note: previous definition of âEmptyFlagâ with type âenum
<anonymous>â
2 | EmptyFlag, EndFlags} MdFlagNamesType;
| ^~~~~~~~~
maildir.h:124:27: error: redeclaration of enumerator âEndFlagsâ
124 | EmptyFlag, EndFlags} MdFlagNamesType;
| ^~~~~~~~
maildir.h:2:27: note: previous definition of âEndFlagsâ with type âenum
<anonymous>â
2 | EmptyFlag, EndFlags} MdFlagNamesType;
| ^~~~~~~~
maildir.h:124:37: error: conflicting types for âMdFlagNamesTypeâ; have
âenum <anonymous>â
124 | EmptyFlag, EndFlags} MdFlagNamesType;
| ^~~~~~~~~~~~~~~
maildir.h:2:37: note: previous declaration of âMdFlagNamesTypeâ with type
âMdFlagNamesTypeâ
2 | EmptyFlag, EndFlags} MdFlagNamesType;
| ^~~~~~~~~~~~~~~
maildir.h:126:15: error: redeclaration of enumerator âCurâ
126 | typedef enum {Cur, Tmp, New, EndDir} DirNamesType;
| ^~~
maildir.h:4:15: note: previous definition of âCurâ with type âenum
<anonymous>â
4 | typedef enum {Cur, Tmp, New, EndDir} DirNamesType;
| ^~~
maildir.h:126:20: error: redeclaration of enumerator âTmpâ
126 | typedef enum {Cur, Tmp, New, EndDir} DirNamesType;
| ^~~
maildir.h:4:20: note: previous definition of âTmpâ with type âenum
<anonymous>â
4 | typedef enum {Cur, Tmp, New, EndDir} DirNamesType;
| ^~~
maildir.h:126:25: error: redeclaration of enumerator âNewâ
126 | typedef enum {Cur, Tmp, New, EndDir} DirNamesType;
| ^~~
maildir.h:4:25: note: previous definition of âNewâ with type âenum
<anonymous>â
4 | typedef enum {Cur, Tmp, New, EndDir} DirNamesType;
| ^~~
maildir.h:126:30: error: redeclaration of enumerator âEndDirâ
126 | typedef enum {Cur, Tmp, New, EndDir} DirNamesType;
| ^~~~~~
maildir.h:4:30: note: previous definition of âEndDirâ with type âenum
<anonymous>â
4 | typedef enum {Cur, Tmp, New, EndDir} DirNamesType;
| ^~~~~~
maildir.h:126:38: error: conflicting types for âDirNamesTypeâ; have âenum
<anonymous>â
126 | typedef enum {Cur, Tmp, New, EndDir} DirNamesType;
| ^~~~~~~~~~~~
maildir.h:4:38: note: previous declaration of âDirNamesTypeâ with type
âDirNamesTypeâ
4 | typedef enum {Cur, Tmp, New, EndDir} DirNamesType;
| ^~~~~~~~~~~~
maildir.h:128:16: error: redefinition of âstruct courier_localâ
128 | typedef struct courier_local {
| ^~~~~~~~~~~~~
maildir.h:6:16: note: originally defined here
6 | typedef struct courier_local {
| ^~~~~~~~~~~~~
maildir.h:131:3: error: conflicting types for âCOURIERLOCALâ; have
âstruct courier_localâ
131 | } COURIERLOCAL;
| ^~~~~~~~~~~~
maildir.h:9:3: note: previous declaration of âCOURIERLOCALâ with type
âCOURIERLOCALâ {aka âstruct courier_localâ}
9 | } COURIERLOCAL;
| ^~~~~~~~~~~~
maildir.h:133:16: error: redefinition of âstruct courierâ
133 | typedef struct courier {
| ^~~~~~~
maildir.h:11:16: note: originally defined here
11 | typedef struct courier {
| ^~~~~~~
maildir.h:138:3: error: conflicting types for âCOURIER_Sâ; have âstruct
courierâ
138 | } COURIER_S;
| ^~~~~~~~~
maildir.h:16:3: note: previous declaration of âCOURIER_Sâ with type
âCOURIER_Sâ {aka âstruct courierâ}
16 | } COURIER_S;
| ^~~~~~~~~
maildir.h:140:16: error: redefinition of âstruct maildir_file_infoâ
140 | typedef struct maildir_file_info {
| ^~~~~~~~~~~~~~~~~
maildir.h:18:16: note: originally defined here
18 | typedef struct maildir_file_info {
| ^~~~~~~~~~~~~~~~~
maildir.h:148:3: error: conflicting types for âMAILDIRFILEâ; have âstruct
maildir_file_infoâ
148 | } MAILDIRFILE;
| ^~~~~~~~~~~
maildir.h:26:3: note: previous declaration of âMAILDIRFILEâ with type
âMAILDIRFILEâ {aka âstruct maildir_file_infoâ}
26 | } MAILDIRFILE;
| ^~~~~~~~~~~
maildir.h:195:16: error: conflicting types for âmaildir_parse_messageâ;
have âlong unsigned int(MAILSTREAM *, long unsigned int, DirNamesType)â
{aka âlong unsigned int(struct mail_stream *, long unsigned int,
DirNamesType)â}
195 | unsigned long maildir_parse_message(MAILSTREAM *stream, unsigned long
msgno,
| ^~~~~~~~~~~~~~~~~~~~~
maildir.h:73:16: note: previous declaration of âmaildir_parse_messageâ with
type âlong unsigned int(MAILSTREAM *, long unsigned int, DirNamesType)â
{aka âlong unsigned int(struct mail_stream *, long unsigned int,
DirNamesType)â}
73 | unsigned long maildir_parse_message(MAILSTREAM *stream, unsigned long
msgno,
| ^~~~~~~~~~~~~~~~~~~~~
maildir.h:206:7: error: conflicting types for âmaildir_initial_checkâ; have
âint(MAILSTREAM *, DirNamesType)â {aka âint(struct mail_stream *,
DirNamesType)â}
206 | int maildir_initial_check (MAILSTREAM *stream, DirNamesType dirtype);
| ^~~~~~~~~~~~~~~~~~~~~
maildir.h:84:7: note: previous declaration of âmaildir_initial_checkâ with
type âint(MAILSTREAM *, DirNamesType)â {aka âint(struct mail_stream *,
DirNamesType)â}
84 | int maildir_initial_check (MAILSTREAM *stream, DirNamesType dirtype);
| ^~~~~~~~~~~~~~~~~~~~~
maildir.h:207:16: error: conflicting types for âmaildir_parse_dirâ; have
âlong unsigned int(MAILSTREAM *, long unsigned int, DirNamesType, struct
dirent **, long unsigned int, int)â {aka âlong unsigned int(struct
mail_stream *, long unsigned int, DirNamesType, struct dirent **, long
unsigned int, int)â}
207 | unsigned long maildir_parse_dir(MAILSTREAM *stream, unsigned long
nmsgs,
| ^~~~~~~~~~~~~~~~~
maildir.h:85:16: note: previous declaration of âmaildir_parse_dirâ with
type âlong unsigned int(MAILSTREAM *, long unsigned int, DirNamesType,
struct dirent **, long unsigned int, int)â {aka âlong unsigned int(struct
mail_stream *, long unsigned int, DirNamesType, struct dirent **, long
unsigned int, int)â}
85 | unsigned long maildir_parse_dir(MAILSTREAM *stream, unsigned long
nmsgs,
| ^~~~~~~~~~~~~~~~~
maildir.h:220:6: error: conflicting types for âmaildir_get_fileâ; have
âvoid(MAILDIRFILE **)â {aka âvoid(struct maildir_file_info **)â}
220 | void maildir_get_file (MAILDIRFILE **mdfile);
| ^~~~~~~~~~~~~~~~
maildir.h:98:6: note: previous declaration of âmaildir_get_fileâ with type
âvoid(MAILDIRFILE **)â {aka âvoid(struct maildir_file_info **)â}
98 | void maildir_get_file (MAILDIRFILE **mdfile);
| ^~~~~~~~~~~~~~~~
maildir.h:228:6: error: conflicting types for âcourier_free_cdirâ; have
âvoid(COURIER_S **)â {aka âvoid(struct courier **)â}
228 | void courier_free_cdir (COURIER_S **cdir);
| ^~~~~~~~~~~~~~~~~
maildir.h:106:6: note: previous declaration of âcourier_free_cdirâ with
type âvoid(COURIER_S **)â {aka âvoid(struct courier **)â}
106 | void courier_free_cdir (COURIER_S **cdir);
| ^~~~~~~~~~~~~~~~~
maildir.h:229:12: error: conflicting types for âcourier_get_cdirâ; have
âCOURIER_S *(int)â {aka âstruct courier *(int)â}
229 | COURIER_S *courier_get_cdir (int total);
| ^~~~~~~~~~~~~~~~
maildir.h:107:12: note: previous declaration of âcourier_get_cdirâ with
type âCOURIER_S *(int)â {aka âstruct courier *(int)â}
107 | COURIER_S *courier_get_cdir (int total);
| ^~~~~~~~~~~~~~~~
maildir.h:230:5: error: conflicting types for âcourier_search_listâ; have
âint(COURIERLOCAL **, char *, int, int)â {aka âint(struct courier_local
**, char *, int, int)â}
230 | int courier_search_list(COURIERLOCAL **data, char *name, int first, int
last);
| ^~~~~~~~~~~~~~~~~~~
maildir.h:108:5: note: previous declaration of âcourier_search_listâ with
type âint(COURIERLOCAL **, char *, int, int)â {aka âint(struct
courier_local **, char *, int, int)â}
108 | int courier_search_list(COURIERLOCAL **data, char *name, int first, int
last);
| ^~~~~~~~~~~~~~~~~~~
maildir.h:231:12: error: conflicting types for âcourier_list_dirâ; have
âCOURIER_S *(char *)â {aka âstruct courier *(char *)â}
231 | COURIER_S *courier_list_dir(char *curdir);
| ^~~~~~~~~~~~~~~~
maildir.h:109:12: note: previous declaration of âcourier_list_dirâ with
type âCOURIER_S *(char *)â {aka âstruct courier *(char *)â}
109 | COURIER_S *courier_list_dir(char *curdir);
| ^~~~~~~~~~~~~~~~
maildir.h:232:6: error: conflicting types for âcourier_list_infoâ; have
âvoid(COURIER_S **, char *, int)â {aka âvoid(struct courier **, char *,
int)â}
232 | void courier_list_info(COURIER_S **cdirp, char *data, int i);
| ^~~~~~~~~~~~~~~~~
maildir.h:110:6: note: previous declaration of âcourier_list_infoâ with
type âvoid(COURIER_S **, char *, int)â {aka âvoid(struct courier **, char
*, int)â}
110 | void courier_list_info(COURIER_S **cdirp, char *data, int i);
| ^~~~~~~~~~~~~~~~~
dummy.c: In function âdummy_scan_contentsâ:
dummy.c:390:7: warning: ignoring return value of âreadâ declared with
attribute âwarn_unused_resultâ [-Wunused-result]
390 | read (fd,buf+ssiz,bsiz = min (fsiz,BUFSIZE));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:887: dummy.o] Error 1
make[3]: Leaving directory
'/home/ragini/aur/alpine/src/alpine-2.26/imap/c-client'
make[2]: *** [Makefile:709: rebuild] Error 2
make[2]: Leaving directory '/home/ragini/aur/alpine/src/alpine-2.26/imap'
make[1]: *** [Makefile:314: slx] Error 2
make[1]: Leaving directory '/home/ragini/aur/alpine/src/alpine-2.26/imap'
make: *** [Makefile:979: c-client] Error 2
==> ERROR: A failure occurred in build().
Aborting...
(base) $