Comment vous faites quand vous avez des erreurs a la compilation?

Comment vous faites quand vous avez des erreurs a la compilation? - Installation - Linux et OS Alternatifs

Marsh Posté le 28-08-2003 à 12:56:24    

Bonjour,
j'essaye d'installé un serveur irc sur ma mandrake:
 
le fichier s appel Unreal3.2-beta17.tar.gz je décompresse >>
Unreal3.2
./configure me met une erreur que j'arrive a détourner , mais lors de la compilation j'ai des erreurs; merci a ceux qui se donnerons la peine de jeter un oeil a ca:
 

[jerry@localhost jerry]$ cd U
Unreal3.2                Unreal3.2-beta17.tar.gz
[jerry@localhost jerry]$ cd Unreal3.2
[jerry@localhost Unreal3.2]$ ls
aliases/               config.sub  ircdcron/                   m_template.c
autoconf/              configure*  keys/                       networks/
badwords.channel.conf  CVS/        LICENSE                     newnet*
badwords.message.conf  doc/        Makefile.in                 READTHIS.NOW
badwords.quit.conf     Donation    makefile.win32              src/
Changes                extras/     makefile.win32.ssl          unreal.in
Changes.old            help.conf   makefile.win32.ssl.ziplink  Unreal.nfo
Config*                include/    makefile.win32.ziplink      update*
config.guess           install-sh  modulize*
[jerry@localhost Unreal3.2]$ ./configure
You might want to run ./Config or provide some parameters to this script.
./configure --help for information about this script
[jerry@localhost Unreal3.2]$ ./configure --help
`configure' configures this package to adapt to many kinds of systems.
 
Usage: ./configure [OPTION]... [VAR=VALUE]...
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
Defaults for the options are specified in brackets.
 
Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print `checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']
 
Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]
 
By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.
 
For better control, use the options below.
 
Fine tuning of the installation directories:
  --bindir=DIR           user executables [EPREFIX/bin]
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
  --libexecdir=DIR       program executables [EPREFIX/libexec]
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  --libdir=DIR           object code libraries [EPREFIX/lib]
  --includedir=DIR       C header files [PREFIX/include]
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  --infodir=DIR          info documentation [PREFIX/info]
  --mandir=DIR           man documentation [PREFIX/man]
 
Optional Features:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 --enable-nospoof     Enable spoofing protection
 --enable-hub     Compile as a hub server
  --enable-ssl enable ssl will check /usr/local/ssl
                              /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr
 
  --enable-ziplinks enable ziplinks will check /usr/local /usr /usr/pkg
 
 --enable-dynamic-linking     Make the IRCd dynamically link shared objects rather than statically
 --enable-inet6     Make the IRCd support IPv6
 
Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 --with-listen=backlog     Specify the listen backlog value
 --with-nick-history=length     Specify the length of the nickname history
 --with-sendq=maxsendq     Specify the max sendq for the server
 --with-bufferpool=size     Specify the size of the buffer pool
 --with-hostname=host     Specify the local hostname of the server
 --with-permissions=permissions     Specify the default permissions for
configuration files
 --with-dpath=path     Specify the path where configuration files are stored
 --with-fd-setsize=size     Specify the max file descriptors to use
 --with-spath     Specify the location of the executable
 
Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
              headers in a nonstandard directory <include dir>
  CPP         C preprocessor
 
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
 
[jerry@localhost Unreal3.2]$ ./configure --prefix=/usr/local/unreal
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking if gcc has a working -pipe... yes
checking for rm... /bin/rm
checking for cp... /bin/cp
checking for touch... /bin/touch
checking for openssl... /usr//bin/openssl
checking for install... /usr//bin/install
checking for crypt in -ldescrypt... no
checking for crypt in -lcrypt... yes
checking for socket in -lsocket... no
checking for inet_ntoa in -lnsl... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for stdlib.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking sys/syslog.h usability... yes
checking sys/syslog.h presence... yes
checking for sys/syslog.h... yes
checking for unistd.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking sys/rusage.h usability... no
checking sys/rusage.h presence... no
checking for sys/rusage.h... no
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uid_t in sys/types.h... yes
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for int16_t... yes
checking for u_int16_t... yes
checking for int32_t... yes
checking for u_int32_t... yes
checking for rlim_t... no
checking size of rlim_t... 0
checking what kind of nonblocking sockets you have... O_NONBLOCK
checking whether gcc needs -traditional... no
checking whether setpgrp takes no argument... yes
checking whether setvbuf arguments are reversed... no
checking for snprintf... yes
checking for vsnprintf... yes
checking for strlcpy... no
checking for strlcat... no
checking for strlncat... no
checking if we can set the core size to unlimited... yes
checking for vprintf... yes
checking for _doprnt... no
checking for gettimeofday... yes
checking for getrusage... yes
checking for setproctitle... no
checking for setproctitle in -lutil... no
checking for pstat... no
checking what type of signals you have... POSIX
checking for strtoken... no
checking for strtok... yes
checking for strerror... yes
checking for index... yes
checking for strtoul... yes
checking for bcopy... yes
checking for bcmp... yes
checking for bzero... yes
checking for strcasecmp... yes
checking for inet_addr... yes
checking for inet_ntoa... yes
checking for inet_netof... yes
checking for syslog... yes
checking for vsyslog... yes
checking if FD_SETSIZE is large enough to allow 1024 file descriptors... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/modules/Makefile
config.status: creating unreal
config.status: creating include/setup.h
[jerry@localhost Unreal3.2]$ make
Building src
make[1]: Entering directory `/home/jerry/Unreal3.2/src'
gcc -I../include -pipe -g -O2 -funsigned-char   -c auth.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c aln.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c badwords.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c channel.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c cloak.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c crule.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c dbuf.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c events.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c fdlist.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c hash.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c help.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c ircd.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c ircsprintf.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c list.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c lusers.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c match.c
gcc -I../include -pipe -g -O2 -funsigned-char     -c -o modules.o modules.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c packet.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c parse.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c res.c
gcc -I../include -pipe -g -O2 -funsigned-char     -c -o res_init.o res_init.c
gcc -I../include -pipe -g -O2 -funsigned-char     -c -o res_comp.o res_comp.c
gcc -I../include -pipe -g -O2 -funsigned-char     -c -o res_mkquery.o res_mkquery.c
gcc -I../include -pipe -g -O2 -funsigned-char     -c -o res_skipname.o res_skipname.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c s_auth.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c s_bsd.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c s_conf.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c s_debug.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c s_err.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c s_extra.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c s_kline.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c s_misc.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c s_numeric.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c s_serv.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c s_svs.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c socket.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c ssl.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c s_user.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c scache.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c send.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c support.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c umodes.c
/bin/sh version.c.SH
Extracting src/version.c...
1.1.1.1.2.1.2.31 2003/06/15 17:13:30
gcc -I../include -pipe -g -O2 -funsigned-char   -c version.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c webtv.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c whowas.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c zip.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c cidr.c
gcc -I../include -pipe -g -O2 -funsigned-char   -c random.c
gcc -I../include -pipe -g -O2 -funsigned-char    -o ircd auth.o aln.o badwords.o channel.o cloak.o crule.o dbuf.o events.o fdlist.o hash.o help.o ircd.o ircsprintf.o list.o lusers.o match.o modules.o packet.o parse.o  res.o res_init.o res_comp.o res_mkquery.o res_skipname.o s_auth.o s_bsd.o s_conf.o s_debug.o s_err.o s_extra.o s_kline.o s_misc.o s_numeric.o s_serv.o s_svs.o  socket.o ssl.o s_user.o scache.o send.o support.o umodes.o version.o webtv.o whowas.o zip.o cidr.o random.o  -lcrypt -lnsl
modules.o(.text+0xa7): In function `Module_Create':
/home/jerry/Unreal3.2/src/modules.c:135: undefined reference to `dlopen'
modules.o(.text+0xc1):/home/jerry/Unreal3.2/src/modules.c:138: undefined reference to `dlsym'
modules.o(.text+0xde):/home/jerry/Unreal3.2/src/modules.c:146: undefined reference to `dlclose'
modules.o(.text+0x135):/home/jerry/Unreal3.2/src/modules.c:160: undefined reference to `dlclose'
modules.o(.text+0x155):/home/jerry/Unreal3.2/src/modules.c:165: undefined reference to `dlclose'
modules.o(.text+0x171):/home/jerry/Unreal3.2/src/modules.c:169: undefined reference to `dlsym'
modules.o(.text+0x189):/home/jerry/Unreal3.2/src/modules.c:175: undefined reference to `dlsym'
modules.o(.text+0x1a1):/home/jerry/Unreal3.2/src/modules.c:181: undefined reference to `dlsym'
modules.o(.text+0x1cc):/home/jerry/Unreal3.2/src/modules.c:192: undefined reference to `dlsym'
modules.o(.text+0x1e2):/home/jerry/Unreal3.2/src/modules.c:195: undefined reference to `dlsym'
modules.o(.text+0x2d5):/home/jerry/Unreal3.2/src/modules.c:153: undefined reference to `dlclose'
modules.o(.text+0x2e3):/home/jerry/Unreal3.2/src/modules.c:141: undefined reference to `dlclose'
modules.o(.text+0x2f2):/home/jerry/Unreal3.2/src/modules.c:225: undefined reference to `dlerror'
modules.o(.text+0x3ec): In function `Init_all_testing_modules':
/home/jerry/Unreal3.2/src/modules.c:279: undefined reference to `dlsym'
modules.o(.text+0x49e): In function `Unload_all_loaded_modules':
/home/jerry/Unreal3.2/src/modules.c:315: undefined reference to `dlsym'
modules.o(.text+0x53a):/home/jerry/Unreal3.2/src/modules.c:352: undefined reference to `dlclose'
modules.o(.text+0x686): In function `Unload_all_testing_modules':
/home/jerry/Unreal3.2/src/modules.c:395: undefined reference to `dlclose'
modules.o(.text+0x7e8): In function `Module_free':
/home/jerry/Unreal3.2/src/modules.c:452: undefined reference to `dlclose'
modules.o(.text+0x8b8): In function `Module_Unload':
/home/jerry/Unreal3.2/src/modules.c:480: undefined reference to `dlsym'
modules.o(.text+0x936): In function `Module_SymEx':
/home/jerry/Unreal3.2/src/modules.c:516: undefined reference to `dlsym'
modules.o(.text+0x99a): In function `Module_Sym':
/home/jerry/Unreal3.2/src/modules.c:538: undefined reference to `dlsym'
modules.o(.text+0x9f9): In function `Module_SymX':
/home/jerry/Unreal3.2/src/modules.c:560: undefined reference to `dlsym'
modules.o(.text+0xa5c): In function `module_loadall':
/home/jerry/Unreal3.2/src/modules.c:591: undefined reference to `dlsym'
modules.o(.text+0xa6e):/home/jerry/Unreal3.2/src/modules.c:592: more undefined references to `dlsym' follow
collect2: ld returned 1 exit status
make[1]: *** [ircd] Erreur 1
make[1]: Leaving directory `/home/jerry/Unreal3.2/src'
make: *** [build] Erreur 2
[jerry@localhost Unreal3.2]$


je suis un peu perdu :(

Reply

Marsh Posté le 28-08-2003 à 12:56:24   

Reply

Marsh Posté le 28-08-2003 à 13:09:30    

il te dis d'utiliser ./Config non ?
pourquoi ne _pas_ l'écouter :)
d'ailleurs en lisant la conf ( chose _de_ base a faire quand on veut compiler un truc )
on tombe sur  

Installation Instructions
 Linux:
 
 
gunzip -d Unreal3.2-beta13.tar.gz  
tar xvf Unreal3.2-beta13.tar  
cd Unreal3.2  
./Config  
Answer these questions to the best of your knowledge. Generally if your not sure, the default will work just fine!  
make  
Now create your unrealircd.conf and other configuration files, see section 4


voila :)

Reply

Marsh Posté le 28-08-2003 à 14:19:32    

merci a toi!
j'ai reussi a compilé et a l'installer :jap:
 
j'ai des petits problemes pour le lancer maintenant, lorsque je fait  
./unreal start (unreal est un fichier sh )
 
y a plein de "y" a la suite qui apparaissent dans la console :


y
y
y
y
y
y
y
y


 
je fait un ps -ux (si j ai bien compris ca affiche tout les processus ( je debute hein :D ) )
et la je vois (de memoire)  
...
/bin/sh ./unreal start
...
 
alors je me dit que le serveur est lancé, je lance mon client irc , il n arrive pas a se connecter en localhost ni en 127.0.0.1
je precise qd meme que dans le fichier de conf,j'ai bien mis localhost comme nom de serveur...
 
ma question est: quel est la commande permettant de connaitre tout les ports de ma machine qui ecoute?
un scanner de port en local en quelque sorte...
 
merci de votre aide toujours aussi precieuse  :ange:


Message édité par veryfree le 28-08-2003 à 14:21:29
Reply

Marsh Posté le 28-08-2003 à 14:31:00    

je me sers de unreal pour mon réseau [:tetardking] ( irc.tafiole.net  [:cupra] )
il serait bien que tu me montres ton unrealircd.conf
ensuite perso le mien j'ai pas utilisé un préfix en /usr/local/unreal  
plutot un /home/ircd/unreal
pour le nom  tu serveur
pour l'écoute des ports un netstat -ltpe par exemple
 

Reply

Marsh Posté le 28-08-2003 à 14:40:44    

Mikala a écrit :

je me sers de unreal pour mon réseau [:tetardking] ( irc.tafiole.net  [:cupra] )
il serait bien que tu me montres ton unrealircd.conf
ensuite perso le mien j'ai pas utilisé un préfix en /usr/local/unreal  
plutot un /home/ircd/unreal
pour le nom  tu serveur
pour l'écoute des ports un netstat -ltpe par exemple


 
ahhhhhhhhhh
 
c toi le mikala dont je@nb me parle!  
 
ben la je suis sous windows et j'ai pas le net sous nux, donc jte filerait ca ce soir ;)
 
j'essayerai pour le netstats :)
 

Reply

Marsh Posté le 28-08-2003 à 21:37:22    

Mikala a écrit :

je me sers de unreal pour mon réseau [:tetardking] ( irc.tafiole.net  [:cupra] )
il serait bien que tu me montres ton unrealircd.conf
ensuite perso le mien j'ai pas utilisé un préfix en /usr/local/unreal  
plutot un /home/ircd/unreal
pour le nom  tu serveur
pour l'écoute des ports un netstat -ltpe par exemple
 
 


 
voila donc mon fichier de conf ( a la racine du prog [rep Unreal 2.1 ])
 

/*
 * example.conf by Daniel Hawton AKA Osiris (osiris@unrealircd.org).
 * $Id: example.conf,v 1.1.1.1.6.15 2003/06/15 17:13:36 stskeeps Exp $
 *  
 * Works for Unreal3.2 and up
 *  
 * Okay guys.  This is the new example.conf. Its look is much like C++, kinda.
 * Anyway it is time to go over this.  It's hard to pick up at first, but
 * with some pratice and reading you'll understand.
 *
 * Just copy this file to your main unrealircd dir and call it 'unrealircd.conf'.
 *  
 * NOTE:  All lines, except the opening { line, end in an ;, including the
 * closing } line. The IRCd will ignore commented lines.
 *
 * PLEASE READ doc/unreal32docs.html! The online version is also available at:
 * www.vulnscan.org/UnrealIrcd/unreal32docs.html
 * It contains a lot information about the configfile: gives information about
 * every block, variable, etc.
 */
 
/* Type of comments */
#Comment type 1 (Shell type)
// Comment type 2(C++ style)
/* Comment type 3 (C Style) */
#those lines are ignored by the ircd.
 
/*
 * At *NIX UnrealIrcd supports modules.
 * Loading the commands module is required:
 */
loadmodule "src/modules/commands.so";
 
/*
 * You can also include other configuration files. help.conf contains all the
 * /helpop text so you probably want this include:
 */
include "help.conf";
 
/*
 * NEW: me {}  
 * OLD: M:Line  
 * me {} defines the name, description and unreal server numeric for
 * this server. Syntax is as follows:  
 * me {  
 *  name "server.name";  
 *  info "Server Description";
 *  numeric (server numeric*);
 * };  
 * If linking, this numeric may not be used by any other server on the network.
 */
me
{
 name "localhost";
 info "FooNet Server";
 numeric 1;
};
 
/*
 * NEW: admin {}  
 * OLD: A:Line Admin gives information on the server admin. you
 * may put as many lines under admin { as you wish.  
 * Syntax is as follows:
 * admin {
 *   "first line";  
 *   "second line";  
 *   [etc]
 * };
 */
admin {
 "very free";
 "jerry";
 "very.free@free.fr";
};
 
/*
 * NEW: class {}  
 * OLD: Y:line (old was confusing)  
 * These define settings for classes. A class is a group setting for  
 * connections. Example, server connections, instead of going to a client's
 * class, you direct it to the server class. Syntax is as follows
 * class (class name)
 * {
 *     pingfreq (how often to ping a user/server in seconds);
 *     maxclients (how many connections for this class);
 *     sendq (maximum send queue from a connection);
 *     recvq (maximum receive queue from a connection [flood control]);
 *  };
 */
 
class           clients
{
 pingfreq 90;
 maxclients 500;
 sendq 100000;
 recvq 8000;
};
 
class           servers
{
 pingfreq 90;
 maxclients 10;  /* Max servers we can have linked at a time */
 sendq 1000000;
 connfreq 100; /* How many seconds between each connection attempt */
};
 
/*
 * NEW: allow {}  
 * OLD: I:Line
 * This defines allowing of connections...
 * Basically for clients, it allows them to connect so you can have some
 * control and/or set a password.  
 * Syntax is as follows:  
 * allow {
 *    ip (ip mask to allow);
 *    hostname (host mask);
 *    class (class to send them to [see class {}]);
 *    password "(password)"; (optional)
 *    maxperip (how many connections per ip); (optional)  
 * };
 */
 
allow {
 ip             *@*;
 hostname       *@*;
 class           clients;
 maxperip 5;
};
 
/* Passworded allow line */
allow {
 ip             *@255.255.255.255;
 hostname       *@*.passworded.ugly.people;
 class           clients;
 password "f00Ness";
 maxperip 1;
};
 
/*
 * NEW: allow channel {}  
 * OLD: chrestrict  
 * Allows a user to join a channel...
 * like an except from deny channel.  
 * Syntax:
 * allow channel {
 *   channel "channel name";
 * };
 */
allow           channel {
 channel "#WarezSucks";
};
 
/*
 * NEW: oper {}  
 * OLD: O:Line  
 * Defines an IRC Operator
 * IRC operators are there to keep sanity to the server and usually keep it
 * maintained and connected to the network.  
 * The syntax is as follows:  
 * oper (login) {  
 *     class (class to put them in, if different from I, moves them to new
 *                class);  
 *     from {  
 *        userhost (ident@host);
 *        userhost (ident@host);
 *     };  
 *     flags
 *     {  
 *       (flags here*);
 *     };
 *     OR
 *     flags "old type flags, like OAaRD";
 * };
 */
 
/* OLD OPER FLAG  | NEW FLAG NAME
 O  global
 o  local
 a  services-admin
 A  admin
 r  can_rehash
 D  can_die
 R  can_restart
 h  helpop
 w  can_wallops
 g  can_globops
 c  can_localroute
 L  can_globalroute
 k  can_localkill
 K  can_globalkill
 b  can_kline
 Z  can_gzline
 t  can_gkline
 B  can_unkline
 n  can_localnotice
 G  can_globalnotice
 N  netadmin
 C  coadmin
 z  can_zline
 W  get_umodew
 H  get_host
 v  can_override
*/
 
/*
Note: netadmin gives you OaAN
admin and services-admin give you o as well
*/
 
oper bobsmith {
 class           clients;
 from {
  userhost bob@smithco.com;
 };
 password "f00";
 flags
 {
  netadmin;
  global;
 };
};
/*
 * NEW: listen {}
 * OLD: P:Line
 * This defines a port for the ircd to bind to, to
 * allow users/servers to connect to the server.  
 * Syntax is as follows:
 * listen (ip number):(port number)  
 * {  
 *   options {
 *     (options here);
 *   };
 * };
 * or for a plain
 * listen: listen (ip):(port);
 *  
 * NOTICE: for ipv6 ips (3ffe:b80:2:51d::2 etc), use listen [ip]:port;
 *  
 * That works also.
 */
 
/* Options for listen:
 OLD |  NEW
 S  serversonly
 C  clientsonly
 J  java
 s  ssl
 *  standard
*/
 
listen         *:6601
{
 options
 {
  ssl;
  clientsonly;
 };
};
 
listen         *:8067;
listen         *:6667;
 
/*
 * NEW: link {}
 * OLD: C/N:Lines
 * This defines an okay for a server connection.
 * NOTE: BOTH SERVERS NEED A LINK {} SETTING TO CONNECT PROPERLY!
 * Syntax is as follows:
 * link (server name)
 * {
 * username (username, * works too);
 *  hostname (ip number/hostmask);
 * bind-ip  (What IP to bind to when connecting, or *);
 * port  (port to connect to, if any);
 * hub (If this is a hub, * works, or servermasks it may bring in);
 * [or leaf *;]
 * password-connect "(pass to send)";
 * password-receive "(pass we should receive)";
 * class  (class to direct servers into);
 * options {
 *  (options here*);
 * };
 *      /* If we use SSL, we can choose what cipher to use in SSL mode
 *       * Retrieve a list by "openssl ciphers", seperate ciphers with :'s
 *      */
 *      ciphers "DES-CBC3-MD5";
 *  
 * };
*/
 
/*
 options:
 OLD | NEW
 S  ssl
 Z  zip
 N/A  autoconnect
 N/A  quarantine
 N/A  nodnscache
*/
 
 
link            hub.mynet.com
{
 username *;
 hostname  1.2.3.4;
 bind-ip  *;
 port   7029;
 hub             *;
 password-connect "LiNk";
 password-receive "LiNk";
 class           servers;
  options {
   autoconnect;
   ssl;
   zip;
  };
};
/*
 *
 * NEW: ulines {}
 * OLD: U:Line
 * U-lines give servers more power/commands, this should ONLY be set
 * for services/stats servers and NEVER for normal UnrealIRCd servers!
 * Syntax is as follows:
 * ulines {
 * (server to uline);
 * (server to uline);
 *  [etc]
 * };
*/
ulines {
 services.roxnet.org;
 stats.roxnet.org;
};
 
/*
 * NEW: drpass {}
 * OLD: X:Line
 * This defines the passwords for /die and /restart.
 * Syntax is as follows:
 * drpass {  
 *  restart  "(password for restarting)";
 *  die          "(password for die)";
 * };
 */
drpass {
 restart "I-love-to-restart";
 die "die-you-stupid";
};
 
/*
 * NEW: log {} OLD: N/A Tells the ircd where and what to log(s). You can have
 * as many as you wish.
 *  
 * FLAGS: errors, kills, tkl, connects, server-connects, kline, oper
 *  
 * NOTICE: Right now, SEGV messages are *always* sent to ircd.log. codemastr is
 * working on a way to redirect the messages to this log file. *
 * Syntax:  
 * log "log file"  
 * {
 *    flags
 *    {
 *        flag;
 *        flag;  
 *        etc..  
 *    };  
 * };
 */
 
log "ircd.log" {
 /* Delete the log file and start a new one when it reaches 2MB, leave this out to always use the  
    same log */
 maxsize 2097152;
 flags {
  oper;
  kline;
  connects;
  server-connects;
  kills;
  errors;
 };
};
 
/*
 * NEW: alias {}
 * OLD: N/A
 * This allows you to set command aliases such as /nickserv, /chanserv etc
 * FLAGS: services, stats, normal
 *
 * Syntax:
 * alias "name" {
 * nick "points to";
 * type aliastype;
 * };
 *
 * [NOTE: You could also include a pre-defined alias file here, see doc/unreal32docs.html section 2.9]
 */
 
// This points the command /nickserv to the user NickServ who is connected to the set::services-server server
/*alias NickServ {
 nick "NickServ";
 type services;
};*/
 
// If you want the command to point to the same nick as the command, you can leave the nick entry out
//alias ChanServ { type services; };
 
// Points the /statserv command to the user StatServ on the set::stats-name server
//alias StatServ { type stats; };
 
// Points the /superbot command to the user SuperBot
//alias SuperBot { type normal; };
 
 
/* Standard aliases */
alias NickServ { type services; };
alias ChanServ { type services; };
alias OperServ { type services; };
alias HelpServ { type services; };
alias StatServ { type stats; };
 
/*
 * NEW: alias {}
 * OLD: N/A
 * This allows you to set command aliases such as /identify, /services, etc
 *
 * Syntax:
 * alias "name" {
 * format "format string" {
 *  nick "points to";
 *              type aliastype;
 *  parameters "parameters to send";
 * };
 * type command;
 * };
 */
/* This is shown seperately because even though it has teh same name as the previous directive, it is very
 * different in syntax, although it provides a similar function and relys on the standard aliases to work.
 */
/*
alias "identify" {
 format "^#" {
  nick "chanserv";
  type services;
  parameters "IDENTIFY %1-";
 };
 format "^[^#]" {
  nick "nickserv";
  type services;
  parameters "IDENTIFY %1-";
 };
 type command;
};
*/
/* The alias::format directive is a regular expression. The first format matches the /identify command when
 * the first character is a #. It then passes this along to the chanserv alias with the parameters IDENTIFY
 * %1-. The second format matches then /identify command when the first character is not a #. It then
 * passes the command to the nickserv alias with parameters IDENTIFY %1-.
 */
 
/* The alias::format::parameters is similar to scripting languages. %N (where N is a number) represents a
 * parameter sent to the command (in this case /identify). If you specify %N- it means all parameters from
 * N until the last parameter in the string.
*/
 
/* Standard aliases */
alias "services" {
 format "^#" {
  nick "chanserv";
  type services;
  parameters "%1-";
 };
 format "^[^#]" {
  nick "nickserv";
  type services;
  parameters "%1-";
 };
 type command;
};
 
alias "identify" {
 format "^#" {
  nick "chanserv";
  type services;
  parameters "IDENTIFY %1-";
 };
 format "^[^#]" {
  nick "nickserv";
  type services;
  parameters "IDENTIFY %1-";
 };
 type command;
};
 
 
/*
 * NEW: tld {}
 * OLD: T:Line
 * This sets a different motd and rules files
 * depending on the clients hostmask.
 * Syntax is as follows:  
 * tld {
 *    mask (ident@host);
 *    motd "(motd file)";
 *    rules "(rules file)";
 * };
 */
 
tld {
 mask *@*.fr;
 motd "ircd.motd.fr";
 rules "ircd.rules.fr";
};
 
/*
 * NEW: ban nick {}
 * OLD: Q:Line
 * Bans a nickname, so it can't be used.
 * Syntax is as follows:
 * ban nick {
 * mask "(nick to ban)";
 * reason "(reason)";
 * };
*/
ban nick {
 mask "*C*h*a*n*S*e*r*v*";
 reason "Reserved for Services";
};
/*
 * NEW: ban ip {}
 * OLD: Z:Line
 * Bans an ip from connecting to the network.
 * Syntax:
 * ban ip { mask (ip number/hostmask); reason "(reason)"; };
*/
ban ip {
 mask 195.86.232.81;
 reason "Delinked server";
};
/*
 * NEW: ban server {}
 * OLD: Server Q:Line
 * Disables a server from connecting to you.
 * Syntax is as follows:
 * ban server {
 * mask "(server name)";
 * reason "(reason to give)";
 * };
*/
 
ban server {
 mask eris.berkeley.edu;
 reason "Get out of here.";
};
/*
 * NEW: ban user {}
 * OLD: K:Line
 * This makes it so a user from a certain mask can't connect
 * to your server.
 * Syntax:
 * ban user { mask (hostmask/ip number); reason "(reason)"; };
*/
 
ban user {
 mask *tirc@*.saturn.bbn.com;
        reason "Idiot";
};
 
/*
 * NEW: ban realname {}
 * OLD: n:Line
 * This bans a certain realname from being used.
 * Syntax:
 * ban realname {
 * mask "(real name)";
 *  reason "(reason)";
 * };
*/
 
ban realname {
 mask "Swat Team";
 reason "mIRKFORCE";
};
 
ban realname {
 mask "sub7server";
 reason "sub7";
};
 
/*
 * NOTE FOR ALL BANS, they may be repeated for addition entries!
 *  
 * NEW: except ban {}  
 * OLD: E:Line
 * This makes it so you can't get banned.  
 * Syntax:
 * except ban { mask (ident@host); };
 * Repeat the except ban {} as many times
 * as you want for different hosts.
 */
 
except ban {
 /* don't ban stskeeps */
 mask           *stskeeps@212.*;
};
 
/*
 * NEW: deny dcc {}  
 * OLD: dccdeny.conf
 * Use this to block dcc send's... stops
 * viruses better.  
 * Syntax:  
 * deny dcc  
 * {  
 *   filename "file to block (ie, *exe)";
 *   reason "reason";
 * };
 */
deny dcc {
 filename "*sub7*";
 reason "Possible Sub7 Virus";
};
 
/*
 * NEW: deny channel {}
 * OLD: N/A (NEW)
 * This blocks channels from being joined.
 * Syntax:
 * deny channel {
 *  channel "(channel)";
 *  reason "reason";
 * };
*/
deny channel {
 channel "*warez*";
 reason "Warez is illegal";
};
 
/*
 * NEW: vhost {}
 * OLD: Vhost.conf file
 * This sets a fake ip for non-opers, or
 * opers too lazy to /sethost :P
 * Syntax:  
 *   vhost {  
 *       vhost (vhost.com);  
 *       from {
 *            userhost (ident@host to allow to use it);
 *       };
 *       login (login name);
 *       password (password);
 *   };
 *        then to use this vhost, do /vhost (login) (password) in IRC
 */
vhost {
 vhost           i.hate.microsefrs.com;
 from {
  userhost       *@*.image.dk;
 };
 login           stskeeps;
 password        moocowsrulemyworld;
};
 
/* You can include other configuration files */
/* include "klines.conf"; */
 
/*
 * Cloak-keys must be > 10000, and random. MUST be the same all over the
 * network
 *  
 * cloak-keys { 39999; 99398; 99397; }; for example
 */
 
/* Network configuration */
set {
 network-name   "ROXnet";
 default-server   "irc.roxnet.org";
 services-server  "services.roxnet.org";
 stats-server   "stats.roxnet.org";
 help-channel   "#ROXnet";
 hiddenhost-prefix "rox";
 prefix-quit   "no";
 cloak-keys {
  9666;
  3333;
  3330;
 };
 /* on-oper host */
 hosts {
  local  "locop.roxnet.org";
  global  "ircop.roxnet.org";
  coadmin  "coadmin.roxnet.org";
  admin  "admin.roxnet.org";
  servicesadmin  "csops.roxnet.org";
  netadmin  "netadmin.roxnet.org";
  host-on-oper-up "no";
 };
};
 
/* Server specific configuration */
 
set {
 kline-address "set.this.email";
 modes-on-connect "+xw";
 modes-on-oper  "+xwgs";
 oper-auto-join "#opers";
 dns {
  nameserver 127.0.0.1;
  timeout 2s;
  retries 2;
 };
 options {
  hide-ulines;
  /* You can enable ident checking here if you want */
  /* identd-check; */
  show-connect-info;
 };
 
 ssl {
  /* Reads entropy from the domain socket located at '~/entropy' */
  /* egd "~/entropy"; */
  /* Where to locate the server X509 certificate */
  certificate "server.cert.pem";
  /* Where to locate the server's RSA private key */
  key "server.key.pem";
 };
 maxchannelsperuser 10;
 /* The minimum time a user must be connected before being allowed to use a QUIT message,
  * This will hopefully help stop spam */
 anti-spam-quit-message-time 10s;
 /* Make the message in static-quit show in all quits - meaning no
           custom quits are allowed on local server */
 /* static-quit "Client quit"; */
 /* This allows you to make certain stats oper only, use * for all stats or leave this out to allow  
  * all users to use any stats. */
 oper-only-stats "okG";
 
 /* Throttling: this example sets a limit of 3 connections per 60s. */
 throttle {
  connections 3;
  period 60s;
 };
 
};
 
/*
 * Need more help ?  
 * 1) Read the documentation, doc/unreal32docs.html !!
 * 2) Mail unreal-users@lists.sourceforge.net
 * 3) Come to irc.ircsystems.net #Unreal-Support
 */


 
et le resultat de netstat:

[root@localhost jerry]# netstat -ltpe
Connexions Internet actives (seulement serveurs)
Proto Recv-Q Send-Q Adresse locale          Adresse distante        Etat        Utilisatr  Inode      PID/Program name
tcp        0      0 *:32768                 *:*                     LISTEN      rpcuser    3145       1060/
tcp        0      0 localhost:32769         *:*                     LISTEN      root       3641       1458/xinetd
tcp        0      0 *:sunrpc                *:*                     LISTEN      root       3037       985/
tcp        0      0 *:10000                 *:*                     LISTEN      root       4245       1892/perl
tcp        0      0 *:http                  *:*                     LISTEN      root       4099       1805/httpd2
tcp        0      0 *:x11                   *:*                     LISTEN      root       3418       1400/X
tcp        0      0 *:ftp                   *:*                     LISTEN      nobody     4194       1855/
tcp        0      0 localhost:smtp          *:*                     LISTEN      root       3871       1615/
tcp        0      0 *:https                 *:*                     LISTEN      root       4096       1805/httpd2
tcp        0      0 *:7741                  *:*                     LISTEN      root       4657       1917/lisa
[root@localhost jerry]#


 
 
merci de ton aide :jap:

Reply

Marsh Posté le 28-08-2003 à 23:25:29    

hum
tu m'as l'air d'avoir pris l'exemple de base sans y avoir vraiment touché  [:ddr555]  
allez va on va te pondre un fichier un peu plus simple/clair
(par contre connaitre tes options de compilation aurait été interressant aussi  )


 
loadmodule "src/modules/commands.so"; /* <-- vérifies que ce chemin correspond bien a ton install si tu l'as installé dans /usr/local/unreal , il y a des chances que ce soit un modules/commands.so */
include "help.conf";
 
me
{
 name "serv.veryfree.net";
 info "Serveur Irc de Veryfree";
 numeric 1;
};
 
admin {
 "very free";
 "jerry";
 "very.free@free.fr";
};
 
class           clients
{
 pingfreq 90;
 maxclients 500;
 sendq 100000;
 recvq 8000;
};
 
class           servers
{
 pingfreq 90;
 maxclients 10;  
 sendq 1000000;
 connfreq 100;
};
 
allow {
 ip             *@*;
 hostname       *@*;
 class           clients;
 maxperip 5;
};
 
oper veryfree {
 class           clients;
 from {
  userhost *@localhost;
 };
 password "veryfree"; /* je ne sais pas si tu as choisi l'encryption des mots de passe ,je suis parti sur l'idée que non donc mot de passe en clair dans le fichier de conf */
 flags
 {
  netadmin;
  global;
 };
};
 
listen         *:6667;
drpass {
 restart "I-love-to-restart"; /* <-- tu peux changer les pass */  
 die "die-you-stupid"; /* ici aussi */
};
 
 
log "ircd.log" {
 maxsize 2097152;
 flags {
  oper;
  kline;
  connects;
  server-connects;
  kills;
  errors;
 };
};
 
 
 
/* Network configuration */
set {
 network-name   "Veryfree";
 default-server   "serv.veryfree.net";
 services-server  "services.veryfree.net";
 stats-server   "stats.veryfree.net";
 help-channel   "#veryfree";
 hiddenhost-prefix "free";
 prefix-quit   "no";
 cloak-keys {
  19666;
  13333;
  13330;
 };
 /* on-oper host */
 hosts {
  local  "locop.veryfree.net";
  global  "ircop.veryfree.net";
  coadmin  "coadmin.veryfree.net";
  admin  "admin.veryfree.net";
  servicesadmin  "csops.veryfree.net";
  netadmin  "netadmin.veryfree.net";
  host-on-oper-up "no";
 };
};
 
/* Server specific configuration */
 
set {
 kline-address "veryfree@free.fr";
 modes-on-connect "+xw";
 modes-on-oper  "+xwgs";
 oper-auto-join "#opers";
 dns {
  nameserver 127.0.0.1; /* <-- colles le dns de ton fai la  */
  timeout 2s;
  retries 2;
 };
 options {
  hide-ulines;
  identd-check;  
  show-connect-info;
 };
 
 maxchannelsperuser 10;
 anti-spam-quit-message-time 10s;
 oper-only-stats "okG";
 
};


voila :o
c'est un peu plus clair la non ? ;)

Reply

Marsh Posté le 28-08-2003 à 23:35:21    

merci de ta patience :love:
 
j'essaye ca des que je peux  :jap:

Reply

Marsh Posté le 29-08-2003 à 00:36:25    


j'ai mis ton fichier de conf; j ai verifié que src/modules/commands.so existait bien, jai lancé le serveur:
toujours des "y" en boucle...
 
netstat ne vois rien "en ecoute" sur le port 6667
 
j'ai l'impression que j'y arriverai pas la :(


Message édité par veryfree le 29-08-2003 à 00:37:35
Reply

Marsh Posté le 29-08-2003 à 01:50:55    

tiens au fait j'ai testé ton client , il fonctionne
(bon j'aime pas le java mais ca fonctionne quand meme :D )

Reply

Marsh Posté le 29-08-2003 à 01:50:55   

Reply

Marsh Posté le 29-08-2003 à 13:55:30    

Mikala a écrit :

tiens au fait j'ai testé ton client , il fonctionne
(bon j'aime pas le java mais ca fonctionne quand meme :D )


 
encore heureux qu il fonctionne :D
 
on est meme passé devant miranda ce matin !!!
 
https://sourceforge.net/softwaremap [...] orm_cat=24
 
 [:vinz416@school]

Reply

Marsh Posté le 12-09-2003 à 22:34:08    

etrangement ton script marche parfaitement sous windows ,par contre sous nux...
 
enfin ca me convens de toute facon :)
 
merci a toi :jap:

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed