Compile errors on windows xp using MSVC 6.0

Mouse mouse_103 at phreaker.net
Sat Oct 7 02:48:17 EDT 2006


Can anyone advice me on those compile errors.
Im using MSVC++ 6.0 on Windows XP pro.

I want to get windows hybrid ircd going.



IRCD-Hybrid Windows build script
(C) Copyright 2005 by the past and present ircd coders, and others.

Do you want to edit default ircd settings now? [Type YES or NO]

Your choice? no

------------------------------------------------

Which compiler do you want to use?
* If you are going to compile with Borland C++ Compiler, type: BCC
* If you want to use Microsoft Visual C++ Compiler, type: MSVC

Your choice? MSVC

*** Building ircd-hybrid
balloc.c
channel.c
channel_mode.c
client.c
crypt.c
csvlib.c
dbuf.c
event.c
fdlist.c
fileio.c
src\fileio.c(47) : error C2065: 'O_CREAT' : undeclared identifier
src\fileio.c(47) : error C2065: 'O_TRUNC' : undeclared identifier
src\fileio.c(47) : error C2065: 'O_APPEND' : undeclared identifier
src\fileio.c(49) : error C2065: 'O_RDONLY' : undeclared identifier
src\fileio.c(49) : error C2051: case expression not constant
src\fileio.c(52) : error C2065: 'O_WRONLY' : undeclared identifier
src\fileio.c(52) : error C2051: case expression not constant
src\fileio.c(55) : error C2065: 'O_RDWR' : undeclared identifier
src\fileio.c(55) : error C2051: case expression not constant
getopt.c
hash.c
hook.c
hostmask.c
inet_misc.c
irc_getaddrinfo.c
irc_getnameinfo.c
irc_string.c
ircd.c
lex.yy.c
src\lex.yy.c(12) : fatal error C1083: Cannot open include file: 
'unistd.h': No such file or directory
Generating Code...
Compiling...
list.c
listener.c
m_error.c
match.c
memory.c
modules.c
motd.c
src\motd.c(157) : error C2079: 'sb' uses undefined struct 'stat'
src\motd.c(183) : error C2224: left of '.st_mtime' must have 
struct/union type
src\motd.c(183) : error C2198: 'localtime' : too few actual parameters
numeric.c
packet.c
parse.c
restart.c
resv.c
s_auth.c
s_bsd.c
s_bsd_win32.c
src\s_bsd_win32.c(26) : fatal error C1083: Cannot open include file: 
'iphlpapi.h': No such file or directory
s_conf.c
s_gline.c
s_log.c
s_misc.c
s_serv.c
Generating Code...
Compiling...
s_stats.c
s_user.c
send.c
snprintf.c
sprintf_irc.c
tools.c
version.c
whowas.c
y.tab.c
m_accept.c
m_admin.c
m_away.c
m_cap.c
m_capab.c
m_cburst.c
m_change.c
m_close.c
m_connect.c
m_drop.c
m_encap.c
Generating Code...
Compiling...
m_eob.c
m_etrace.c
m_force.c
m_gline.c
m_hash.c
m_help.c
modules\m_help.c(129) : error C2079: 'sb' uses undefined struct 'stat'
m_info.c
m_invite.c
m_ison.c
m_kline.c
m_knock.c
m_links.c
m_list.c
m_lljoin.c
m_llnick.c
m_locops.c
m_lusers.c
m_map.c
m_motd.c
m_names.c
Generating Code...
Compiling...
m_nburst.c
m_omotd.c
m_oper.c
m_operwall.c
m_pass.c
m_ping.c
m_pong.c
m_post.c
m_rehash.c
m_restart.c
m_resv.c
m_rkline.c
m_rxline.c
m_set.c
m_stats.c
m_svinfo.c
m_tburst.c
m_testline.c
m_testmask.c
m_time.c
Generating Code...
Compiling...
m_topic.c
m_trace.c
m_user.c
m_userhost.c
m_users.c
m_version.c
m_wallops.c
m_who.c
m_whois.c
m_whowas.c
m_xline.c
m_die.c
m_join.c
m_kick.c
m_kill.c
m_message.c
m_mode.c
m_nick.c
m_part.c
m_quit.c
Generating Code...
Compiling...
m_server.c
m_sjoin.c
m_squit.c
pcre_chartables.c
pcre_compile.c
pcre_exec.c
pcre_fullinfo.c
pcre_globals.c
pcre_study.c
pcre_tables.c
pcre_try_flipped.c
m_capture.c
m_change.c
m_classlist.c
m_clearchan.c
m_ctrace.c
m_flags.c
m_force.c
m_jupe.c
m_killhost.c
Generating Code...
Compiling...
m_ltrace.c
m_mkpasswd.c
m_ojoin.c
m_operspy.c
m_opme.c
m_services.c
m_spoof.c
spy_admin_notice.c
spy_info_notice.c
spy_links_notice.c
spy_motd_notice.c
spy_stats_notice.c
spy_stats_p_notice.c
spy_trace_notice.c
spy_whois_notice.c
Generating Code...

The compilation has failed. Make sure the MSVC compiler you choose
is actually installed, and that you haven't accidentally corrupted
your setup.h file. A common problem is also not having the directory of
compiler binary in PATH environment variable.

Press any key to continue . . .



More information about the hybrid mailing list