Source: postal
Version: 0.74
Severity: serious
Tags: stretch sid
User: [email protected]
Usertags: qa-ftbfs-20160707 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
> g++  -O2 -g -Wall -W -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings 
> -Wcast-qual -pedantic -Woverloaded-virtual -ffor-scope -c smtp.cpp
> In file included from smtp.cpp:1:0:
> smtp.h:28:58: error: 'hash' was not declared in this scope
>  typedef std::tr1::unordered_map<unsigned long, string *, hash<unsigned 
> long>, eqlng> NAME_MAP;
>                                                           ^
> smtp.h:28:58: note: suggested alternative:
> In file included from /usr/include/c++/5/tr1/unordered_map:40:0,
>                  from smtp.h:9,
>                  from smtp.cpp:1:
> /usr/include/c++/5/tr1/functional_hash.h:45:12: note:   'std::tr1::hash'
>      struct hash : public std::unary_function<_Tp, size_t>
>             ^
> In file included from smtp.cpp:1:0:
> smtp.h:28:76: error: template argument 3 is invalid
>  typedef std::tr1::unordered_map<unsigned long, string *, hash<unsigned 
> long>, eqlng> NAME_MAP;
>                                                                             ^
> smtp.h:28:77: error: expected unqualified-id before ',' token
>  typedef std::tr1::unordered_map<unsigned long, string *, hash<unsigned 
> long>, eqlng> NAME_MAP;
>                                                                              ^
> smtp.h:28:84: error: expected initializer before '>' token
>  typedef std::tr1::unordered_map<unsigned long, string *, hash<unsigned 
> long>, eqlng> NAME_MAP;
>                                                                               
>       ^
> smtp.h:70:3: error: 'NAME_MAP' does not name a type
>    NAME_MAP m_names;
>    ^
> In file included from smtp.cpp:10:0:
> results.h:36:17: warning: ISO C++ 1998 does not support 'long long' 
> [-Wlong-long]
>    unsigned long long m_bytes;
>                  ^
> smtp.cpp: In member function 'const string* 
> smtpData::getMailName(sockaddr_in&)':
> smtp.cpp:30:18: error: 'm_names' was not declared in this scope
>    string *name = m_names[ip];
>                   ^
> smtp.cpp: In member function 'void smtpData::setRand(int)':
> smtp.cpp:69:43: error: 'random' was not declared in this scope
>      m_randBuf[i] = m_randomLetters[random() % m_randomLen];
>                                            ^
> smtp.cpp: In member function 'void smtpData::randomString(char*, int) const':
> smtp.cpp:79:25: error: 'random' was not declared in this scope
>      int offset = random() % (MAP_SIZE - (len - 2));
>                          ^
> smtp.cpp: In member function 'void smtpData::randomBuf(char*, int) const':
> smtp.cpp:91:27: error: 'random' was not declared in this scope
>      int line_len = random() % max_line_len;
>                            ^
> smtp.cpp: In member function 'void smtpData::date(char*) const':
> smtp.cpp:109:20: error: 'random' was not declared in this scope
>    t += 60 - random() % 600;
>                     ^
> In file included from tcp.h:8:0,
>                  from smtp.h:10,
>                  from smtp.cpp:1:
> smtp.cpp: In member function 'virtual int smtp::action(PVOID)':
> postal.h:44:48: error: 'rand' was not declared in this scope
>  #define CHECK_PERCENT(XX) ((XX) == 100 || rand() % 100 < (XX))
>                                                 ^
> smtp.cpp:146:22: note: in expansion of macro 'CHECK_PERCENT'
>        if(m_canTLS && CHECK_PERCENT(m_useTLS) )
>                       ^
> smtp.cpp:164:23: error: 'random' was not declared in this scope
>          msgs = random() % m_msgsPerConnection + 1;
>                        ^
> smtp.cpp: In member function 'int smtp::sendMsg()':
> smtp.cpp:288:19: error: 'random' was not declared in this scope
>      size = random() % (m_maxMsgSize - m_minMsgSize) + m_minMsgSize;
>                    ^
> smtp.cpp:321:25: error: 'random' was not declared in this scope
>    int subj_len = random() % (sizeof(subj_buf) - 3) + 2;
>                          ^
> smtp.cpp:332:42: error: 'malloc' was not declared in this scope
>    char *sendbuf = (char *)malloc(size + 1);
>                                           ^
> smtp.cpp:340:17: error: 'free' was not declared in this scope
>      free(sendbuf);
>                  ^
> smtp.cpp:351:15: error: 'free' was not declared in this scope
>    free(sendbuf);
>                ^
> make[1]: *** [smtp.o] Error 1

The full build log is available from:
   
http://people.debian.org/~lucas/logs/2016/07/07/postal_0.74_unstable_reb.normal.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.

Reply via email to