This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
g++ internal compiler error 980711
- To: bug-gcc at gnu dot org
- Subject: g++ internal compiler error 980711
- From: Vadim Zaliva <lord at us dot matranet dot com>
- Date: Tue, 28 Sep 1999 21:26:34 -0700 (PDT)
GCC version: egcs-2.91.66
System type: Linux babylon.us.matranet.com 2.2.5-15 #1 Mon Apr 19 23:00:46
EDT 1999 i686 unknown
Options:
cd /export/home/lord/src/icqmail/src/
make
c++ -v --save-temps -g -O2 -DHAVE_LIBICQ=1 -DHAVE_LIBNSL=1
-DHAVE_LIBGUILE=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_MALLOC_H=1
-DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1
-DHAVE_BYTESWAP_H=1 -DHAVE_ENDIAN_H=1 -DHAVE_LIBGUILE_H=1
-DHAVE_GUILE_GH_H=1 -DTIME_WITH_SYS_TIME=1 -DRETSIGTYPE=void
-DHAVE_SELECT=1 -DHAVE_STRDUP=1 -DHAVE_VSNPRINTF=1 -DHAVE_VSPRINTF=1 -c
cfg.cc
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cpp -lang-c++ -v -undef
-D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF__
-Dunix -Di386 -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__
-D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(posix)
-D__EXCEPTIONS -D__OPTIMIZE__ -g -Asystem(unix) -Acpu(i386)
-Amachine(i386) -Di386 -D__i386 -D__i386__ -DHAVE_LIBICQ=1 -DHAVE_LIBNSL=1
-DHAVE_LIBGUILE=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_MALLOC_H=1
-DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1
-DHAVE_BYTESWAP_H=1 -DHAVE_ENDIAN_H=1 -DHAVE_LIBGUILE_H=1
-DHAVE_GUILE_GH_H=1 -DTIME_WITH_SYS_TIME=1 -DRETSIGTYPE=void
-DHAVE_SELECT=1 -DHAVE_STRDUP=1 -DHAVE_VSNPRINTF=1 -DHAVE_VSPRINTF=1
cfg.cc cfg.ii
GNU CPP version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386
Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/include/g++-2
/usr/local/include
/usr/i386-redhat-linux/include
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include
/usr/include
End of search list.
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cc1plus cfg.ii -quiet
-dumpbase cfg.cc -g -O2 -version -o cfg.s
GNU C++ version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
(i386-redhat-linux) compiled by GNU C version egcs-2.91.66 19990314/Linux
(egcs-1.1.2 release).
cfg.cc: In method `SCM ::Configuration::Cfg::alist()':
cfg.cc:282: warning: passing `const char *' as argument 1 of
`gh_str02scm(char *)' discards const
cfg.cc:284: warning: passing `const char *const' as argument 1 of
`gh_str02scm(char *)' discards const
as -V -Qy -o cfg.o cfg.s
GNU assembler version 2.9.1 (i386-redhat-linux), using BFD version
2.9.1.0.23
c++ -v --save-temps -g -O2 -DHAVE_LIBICQ=1 -DHAVE_LIBNSL=1
-DHAVE_LIBGUILE=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_MALLOC_H=1
-DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1
-DHAVE_BYTESWAP_H=1 -DHAVE_ENDIAN_H=1 -DHAVE_LIBGUILE_H=1
-DHAVE_GUILE_GH_H=1 -DTIME_WITH_SYS_TIME=1 -DRETSIGTYPE=void
-DHAVE_SELECT=1 -DHAVE_STRDUP=1 -DHAVE_VSNPRINTF=1 -DHAVE_VSPRINTF=1 -c
log.cc
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cpp -lang-c++ -v -undef
-D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF__
-Dunix -Di386 -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__
-D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(posix)
-D__EXCEPTIONS -D__OPTIMIZE__ -g -Asystem(unix) -Acpu(i386)
-Amachine(i386) -Di386 -D__i386 -D__i386__ -DHAVE_LIBICQ=1 -DHAVE_LIBNSL=1
-DHAVE_LIBGUILE=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_MALLOC_H=1
-DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1
-DHAVE_BYTESWAP_H=1 -DHAVE_ENDIAN_H=1 -DHAVE_LIBGUILE_H=1
-DHAVE_GUILE_GH_H=1 -DTIME_WITH_SYS_TIME=1 -DRETSIGTYPE=void
-DHAVE_SELECT=1 -DHAVE_STRDUP=1 -DHAVE_VSNPRINTF=1 -DHAVE_VSPRINTF=1
log.cc log.ii
GNU CPP version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386
Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/include/g++-2
/usr/local/include
/usr/i386-redhat-linux/include
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include
/usr/include
End of search list.
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cc1plus log.ii -quiet
-dumpbase log.cc -g -O2 -version -o log.s
GNU C++ version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
(i386-redhat-linux) compiled by GNU C version egcs-2.91.66 19990314/Linux
(egcs-1.1.2 release).
as -V -Qy -o log.o log.s
GNU assembler version 2.9.1 (i386-redhat-linux), using BFD version
2.9.1.0.23
c++ -v --save-temps -g -O2 -DHAVE_LIBICQ=1 -DHAVE_LIBNSL=1
-DHAVE_LIBGUILE=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_MALLOC_H=1
-DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1
-DHAVE_BYTESWAP_H=1 -DHAVE_ENDIAN_H=1 -DHAVE_LIBGUILE_H=1
-DHAVE_GUILE_GH_H=1 -DTIME_WITH_SYS_TIME=1 -DRETSIGTYPE=void
-DHAVE_SELECT=1 -DHAVE_STRDUP=1 -DHAVE_VSNPRINTF=1 -DHAVE_VSPRINTF=1 -c
icqmail.cc
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cpp -lang-c++ -v -undef
-D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF__
-Dunix -Di386 -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__
-D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(posix)
-D__EXCEPTIONS -D__OPTIMIZE__ -g -Asystem(unix) -Acpu(i386)
-Amachine(i386) -Di386 -D__i386 -D__i386__ -DHAVE_LIBICQ=1 -DHAVE_LIBNSL=1
-DHAVE_LIBGUILE=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_MALLOC_H=1
-DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1
-DHAVE_BYTESWAP_H=1 -DHAVE_ENDIAN_H=1 -DHAVE_LIBGUILE_H=1
-DHAVE_GUILE_GH_H=1 -DTIME_WITH_SYS_TIME=1 -DRETSIGTYPE=void
-DHAVE_SELECT=1 -DHAVE_STRDUP=1 -DHAVE_VSNPRINTF=1 -DHAVE_VSPRINTF=1
icqmail.cc icqmail.ii
GNU CPP version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386
Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/include/g++-2
/usr/local/include
/usr/i386-redhat-linux/include
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include
/usr/include
End of search list.
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cc1plus icqmail.ii -quiet
-dumpbase icqmail.cc -g -O2 -version -o icqmail.s
GNU C++ version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
(i386-redhat-linux) compiled by GNU C version egcs-2.91.66 19990314/Linux
(egcs-1.1.2 release).
icqmail.cc: In method `void IcqMail::ctrlc(int)':
icqmail.cc:1044: warning: negative value `-1' passed as argument 1 of
`icq_ChangeStatus(long unsigned int)'
as -V -Qy -o icqmail.o icqmail.s
GNU assembler version 2.9.1 (i386-redhat-linux), using BFD version
2.9.1.0.23
cc -c icqbyteorder.c -o icqbyteorder.o
c++ -v --save-temps -g -O2 -DHAVE_LIBICQ=1 -DHAVE_LIBNSL=1
-DHAVE_LIBGUILE=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_MALLOC_H=1
-DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1
-DHAVE_BYTESWAP_H=1 -DHAVE_ENDIAN_H=1 -DHAVE_LIBGUILE_H=1
-DHAVE_GUILE_GH_H=1 -DTIME_WITH_SYS_TIME=1 -DRETSIGTYPE=void
-DHAVE_SELECT=1 -DHAVE_STRDUP=1 -DHAVE_VSNPRINTF=1 -DHAVE_VSPRINTF=1 -c
main.cc
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cpp -lang-c++ -v -undef
-D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF__
-Dunix -Di386 -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__
-D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(posix)
-D__EXCEPTIONS -D__OPTIMIZE__ -g -Asystem(unix) -Acpu(i386)
-Amachine(i386) -Di386 -D__i386 -D__i386__ -DHAVE_LIBICQ=1 -DHAVE_LIBNSL=1
-DHAVE_LIBGUILE=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_MALLOC_H=1
-DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1
-DHAVE_BYTESWAP_H=1 -DHAVE_ENDIAN_H=1 -DHAVE_LIBGUILE_H=1
-DHAVE_GUILE_GH_H=1 -DTIME_WITH_SYS_TIME=1 -DRETSIGTYPE=void
-DHAVE_SELECT=1 -DHAVE_STRDUP=1 -DHAVE_VSNPRINTF=1 -DHAVE_VSPRINTF=1
main.cc main.ii
GNU CPP version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386
Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/include/g++-2
/usr/local/include
/usr/i386-redhat-linux/include
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include
/usr/include
End of search list.
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cc1plus main.ii -quiet
-dumpbase main.cc -g -O2 -version -o main.s
GNU C++ version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
(i386-redhat-linux) compiled by GNU C version egcs-2.91.66 19990314/Linux
(egcs-1.1.2 release).
In file included from main.cc:26:
icqmail.hh:61: Internal compiler error 980711.
icqmail.hh:61: Please submit a full bug report to
`egcs-bugs@egcs.cygnus.com'.
icqmail.hh:61: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for
details.
make: *** [main.o] Error 1
Compilation exited abnormally with code 2 at Tue Sep 28 21:16:02
Preprocessed files attached. Please do not mind the code stupidity, I was
in the middle of painful translation from C to C++. this source is not
supposed to be working yet.
I was trying to enclose preprocessed compiler output, but archive was
around 370K and your mail system refused to receive it. So, attached just
one source file.
Sincerely,
Vadim
--
;;-----------------------------------+-----------------------------------+
;; Vadim.Zaliva@us.matranet.com + Those who do not understand Unix +
;; Project Manager, Matranet Inc. + are condemned to reinvent it, +
;; http://www.matranet.com/ + poorly. (H. Spencer) +
;;-----------------------------------+-----------------------------------+
/*
* $Id: icqmail.hh,v 1.1 1999/09/27 19:25:09 lord Exp $
*
* ICQMAIL Simple ICQ->EMail Gateway
* Vadim Zaliva <lord@crocodile.org>
* http://www.crocodile.org/
*
* Copyright (C) 1999 Vadim Zaliva
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
#ifndef ICQMAIL_HH_FLAG
#define ICQMAIL_HH_FLAG
#ifndef MAXHOSTNAMELEN
# define MAXHOSTNAMELEN 2048
#endif
#define CONNECT_DELAY 3 /* pause between connect attempts. */
#define LOGIN_DELAY 30 /* seconds */
#define KEEP_ALIVE_DELAY 120 /* seconds */
#define CFG_NAME "icqmail.cfg"
#define ICQMAILVERSION "1.2"
#define SAME 0
class IcqMail
{
public:
IcqMail(int ac, char **av);
int run(void (*init_hooks)());
int getICQLogLevel();
protected:
typedef unsigned long uin_t;
class UinCompare
{
public:
bool operator()(uin_t a, const uin_t b) const
{
return a-b;//TODO
}
};
typedef std::map<uin_t, unsigned int, UinCompare> MonitorList;
MonitorList monitorlist;
typedef enum
{
status_ch_online = 1,
status_ch_offline = 2,
status_ch_changed = 4
} status_change_type;
// Protocol callbacks
void doLog(time_t time, unsigned char level, const char *str);
void connectionLost();
void loginOK();
void processMessage(uin_t uin,
unsigned char hour,
unsigned char minute,
unsigned char day,
unsigned char month,
unsigned short year,
const char *msg);
void processURL(uin_t uin,
unsigned char hour,
unsigned char minute,
unsigned char day,
unsigned char month,
unsigned short year,
const char *url,
const char *descr);
void RespondAuthReq (uin_t uin,
unsigned char hour,
unsigned char minute,
unsigned char day,
unsigned char month,
unsigned short year,
const char *nick,
const char *first,
const char *last,
const char *email,
const char *reason);
void userOnline(uin_t uin, unsigned long status, unsigned long ip, unsigned long port, unsigned long real_ip);
void userOffline(uin_t uin);
void userStatusUpdate(uin_t uin, unsigned long status);
int IcqMail::call_script_procedure(const char *name, Configuration::Cfg *data);
private:
void IcqMail::login(unsigned long status,
uin_t uin,
const char *pass);
int do_connect(const char *server, int port);
unsigned int str2uin(const char *start, uin_t *res);
char *uin2name(uin_t uin);
char *uin2replyto(uin_t uin);
void icqIP2str(unsigned long ip,char *res);
void IcqMail::emailStatusChange(uin_t uin,
status_change_type type,
unsigned long status,
unsigned long ip,
unsigned long port,
unsigned long real_ip
);
void IcqMail::sendEmail(uin_t uin,
const char *name,
const char *email,
int isurl,
int is_email_express,
const char *msg0);
int doICQProtocol();
int watching(uin_t uin, int mask);
void add_to_monitor_list(uin_t uin, int mask);
int loadTemplates();
char *loadFile(const char *fname);
int read_cfg_file(char *name);
void IcqMail::ctrlc(int st);
char *dup(const char *s);
Configuration::Cfg *cfg;
Configuration::Cfg *aliases;
Log *log;
enum
{
NOT_YET,
RECONNECT,
EXIT
} done;
int dodaemon;
bool login_ok;
int login_attempt;
// cfg values
int icqloglevel;
int port;
const char *server;
uin_t uin;
char *password;
const char *email;
const char *mta;
const char *subject;
const char *returnsuffix;
const char *replymsg;
int status;
int sendassubj;
int login_attempts;
const char *message_template;
const char *contacts_template;
const char *one_contact_template;
const char *email_template;
const char *offline_template;
const char *online_template;
const char *status_change_template;
const char *url_template;
char *scriptfile; /* hack */
};
#endif