Bug 266324 - mail/archiveopteryx - compilation error
Summary: mail/archiveopteryx - compilation error
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Mark Felder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-09 16:55 UTC by Carlos Alberto
Modified: 2022-09-11 16:01 UTC (History)
1 user (show)

See Also:


Attachments
compilation log (289.07 KB, text/plain)
2022-09-09 16:55 UTC, Carlos Alberto
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Alberto 2022-09-09 16:55:55 UTC
Created attachment 236458 [details]
compilation log

when compiling mail/archiveopteryx, the following errors occur and compilation stops:

clang -c -o build/clang/aoxexport/aoxexport.o -I/usr/local/include -g -Werror -funsigned-char -Wno-invalid-source-encoding -Wno-string-plus-int -pthread -O3  -Iaoxexport -Icore -Iabnf -Iserver -Imessage -Iextractors -Iencodings -Idb -Ismtp -Isasl -Iimap -Isieve -Icollations -Ilogd -Iaox -Ipop aoxexport/aoxexport.cpp


clang -c -o build/clang/aoxexport/exporter.o -I/usr/local/include -g -Werror -funsigned-char -Wno-invalid-source-encoding -Wno-string-plus-int -pthread -O3  -Iaoxexport -Icore -Iabnf -Iserver -Imessage -Iextractors -Iencodings -Idb -Ismtp -Isasl -Iimap -Isieve -Icollations -Ilogd -Iaox -Ipop aoxexport/exporter.cpp

In file included from aoxexport/exporter.cpp:3:
aoxexport/exporter.h:13:14: error: expected class name
    : public EventHandler
             ^
aoxexport/exporter.cpp:60:5: error: use of undeclared identifier 'setLog'
    setLog( new Log );
    ^
aoxexport/exporter.cpp:67:35: error: cannot initialize a parameter of type 'class EventHandler *' with an rvalue of type 'Exporter *'
        Database::notifyWhenIdle( this );
                                  ^~~~
db/database.h:49:54: note: passing argument to parameter here
    static void notifyWhenIdle( class EventHandler * );
                                                     ^
aoxexport/exporter.cpp:83:57: error: cannot initialize a parameter of type 'class EventHandler *' with an rvalue of type 'Exporter *'
        d->find = d->selector->query( 0, d->mailbox, 0, this,
                                                        ^~~~
server/selector.h:60:57: note: passing argument to parameter here
                   class Session *, class EventHandler *,
                                                        ^
aoxexport/exporter.cpp:99:26: error: no matching constructor for initialization of 'Fetcher'
        d->fetcher = new Fetcher( d->messages, this, 0 );
                         ^        ~~~~~~~~~~~~~~~~~~~~
message/fetcher.h:23:5: note: candidate constructor not viable: no known conversion from 'Exporter *' to 'EventHandler *' for 2nd argument
    Fetcher( List<Message> *, EventHandler *, Connection * );
    ^
message/fetcher.h:25:5: note: candidate constructor not viable: requires 2 arguments, but 3 were provided
    Fetcher( Message *, EventHandler * );
    ^
message/fetcher.h:19:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided
class Fetcher
      ^
message/fetcher.h:19:7: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 3 were provided
5 errors generated.
...skipped aoxexport for lack of <aoxexport>exporter.o...
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/mail/archiveopteryx
*** Error code 1

Stop.
make: stopped in /usr/ports/mail/archiveopteryx

FreeBSD version: 13.1-STABLE FreeBSD 13.1-STABLE #25 stable/13-n251461-f195c503ad63
Platform: amd64/i386/arm
Comment 1 Nuno Teixeira freebsd_committer freebsd_triage 2022-09-11 16:01:47 UTC
Assigning properly.