TomatoUSB und Asterisk kompilieren - Fehlermeldung

Kompilieren von Asterisk, ZAPTel, Asterisk-Addons usw.

Moderatoren: rainer, Tim

Benutzeravatar
rainer
Profi
Beiträge: 183
Registriert: Di 17. Nov 2009, 20:18
Wohnort: Bonn
Kontaktdaten:

Re: TomatoUSB und Asterisk kompilieren - Fehlermeldung

Beitrag von rainer » Do 29. Sep 2011, 11:10

hier noch meine fcns.c zum vergleichen ...
die Datei ist im Asterisk source Verzeichnis /main/editline/fcns.c


/* Automatically generated file, do not edit */
#include "sys.h"
#include "el.h"
private const el_func_t el_func[] = {
ed_argument_digit, ed_clear_screen,
ed_command, ed_delete_next_char,
ed_delete_prev_char, ed_delete_prev_word,
ed_digit, ed_end_of_file,
ed_insert, ed_kill_line,
ed_move_to_beg, ed_move_to_end,
ed_newline, ed_next_char,
ed_next_history, ed_next_line,
ed_prev_char, ed_prev_history,
ed_prev_line, ed_prev_word,
ed_quoted_insert, ed_redisplay,
ed_search_next_history, ed_search_prev_history,
ed_sequence_lead_in, ed_start_over,
ed_transpose_chars, ed_tty_dsusp,
ed_tty_flush_output, ed_tty_sigint,
ed_tty_sigquit, ed_tty_sigtstp,
ed_tty_start_output, ed_tty_stop_output,
ed_unassigned, em_capitol_case,
em_copy_prev_word, em_copy_region,
em_delete_next_word, em_delete_or_list,
em_exchange_mark, em_gosmacs_traspose,
em_inc_search_next, em_inc_search_prev,
em_kill_line, em_kill_region,
em_lower_case, em_meta_next,
em_next_word, em_set_mark,
em_toggle_overwrite, em_universal_argument,
em_upper_case, em_yank,
vi_add, vi_add_at_eol,
vi_change_case, vi_change_meta,
vi_change_to_eol, vi_command_mode,
vi_delete_meta, vi_delete_prev_char,
vi_end_word, vi_insert,
vi_insert_at_bol, vi_kill_line_prev,
vi_list_or_eof, vi_next_char,
vi_next_space_word, vi_next_word,
vi_paste_next, vi_paste_prev,
vi_prev_char, vi_prev_space_word,
vi_prev_word, vi_repeat_next_char,
vi_repeat_prev_char, vi_repeat_search_next,
vi_repeat_search_prev, vi_replace_char,
vi_replace_mode, vi_search_next,
vi_search_prev, vi_substitute_char,
vi_substitute_line, vi_to_end_word,
vi_to_next_char, vi_to_prev_char,
vi_undo, vi_zero,
};

protected const el_func_t* func__get() { return el_func; }
Rainer Piper - Bonn - 0228 97167161 or SIP-URI: sip:7000@sip.soho-piper.de:5072
Software: kamailio 4.2.0 -> Asterisk 13.0.1 mit pjsip stack
Hardware: 2x QuadCore, 128GB ECC-RAM, 4x HDD Raid 10

Benutzeravatar
rainer
Profi
Beiträge: 183
Registriert: Di 17. Nov 2009, 20:18
Wohnort: Bonn
Kontaktdaten:

Re: TomatoUSB und Asterisk kompilieren - Fehlermeldung

Beitrag von rainer » Do 29. Sep 2011, 11:17

und hier noch die fcns.h

/* Automatically generated file, do not edit */
#ifndef _h_fcns_c
#define _h_fcns_c
#define ED_ARGUMENT_DIGIT 0
#define ED_CLEAR_SCREEN 1
#define ED_COMMAND 2
#define ED_DELETE_NEXT_CHAR 3
#define ED_DELETE_PREV_CHAR 4
#define ED_DELETE_PREV_WORD 5
#define ED_DIGIT 6
#define ED_END_OF_FILE 7
#define ED_INSERT 8
#define ED_KILL_LINE 9
#define ED_MOVE_TO_BEG 10
#define ED_MOVE_TO_END 11
#define ED_NEWLINE 12
#define ED_NEXT_CHAR 13
#define ED_NEXT_HISTORY 14
#define ED_NEXT_LINE 15
#define ED_PREV_CHAR 16
#define ED_PREV_HISTORY 17
#define ED_PREV_LINE 18
#define ED_PREV_WORD 19
#define ED_QUOTED_INSERT 20
#define ED_REDISPLAY 21
#define ED_SEARCH_NEXT_HISTORY 22
#define ED_SEARCH_PREV_HISTORY 23
#define ED_SEQUENCE_LEAD_IN 24
#define ED_START_OVER 25
#define ED_TRANSPOSE_CHARS 26
#define ED_TTY_DSUSP 27
#define ED_TTY_FLUSH_OUTPUT 28
#define ED_TTY_SIGINT 29
#define ED_TTY_SIGQUIT 30
#define ED_TTY_SIGTSTP 31
#define ED_TTY_START_OUTPUT 32
#define ED_TTY_STOP_OUTPUT 33
#define ED_UNASSIGNED 34
#define EM_CAPITOL_CASE 35
#define EM_COPY_PREV_WORD 36
#define EM_COPY_REGION 37
#define EM_DELETE_NEXT_WORD 38
#define EM_DELETE_OR_LIST 39
#define EM_EXCHANGE_MARK 40
#define EM_GOSMACS_TRASPOSE 41
#define EM_INC_SEARCH_NEXT 42
#define EM_INC_SEARCH_PREV 43
#define EM_KILL_LINE 44
#define EM_KILL_REGION 45
#define EM_LOWER_CASE 46
#define EM_META_NEXT 47
#define EM_NEXT_WORD 48
#define EM_SET_MARK 49
#define EM_TOGGLE_OVERWRITE 50
#define EM_UNIVERSAL_ARGUMENT 51
#define EM_UPPER_CASE 52
#define EM_YANK 53
Rainer Piper - Bonn - 0228 97167161 or SIP-URI: sip:7000@sip.soho-piper.de:5072
Software: kamailio 4.2.0 -> Asterisk 13.0.1 mit pjsip stack
Hardware: 2x QuadCore, 128GB ECC-RAM, 4x HDD Raid 10

astrakid
Regelmäßiger Poster
Beiträge: 62
Registriert: Di 20. Sep 2011, 13:55

Re: TomatoUSB und Asterisk kompilieren - Fehlermeldung

Beitrag von astrakid » Do 29. Sep 2011, 11:23

hi,

folgendes ist mir aufgefallen:
in der fcns.c sind bei mir tabulatoren verwendet - habs ausgetauscht, aber das hat nichts geändert.

in der fcns.h wird die definition em_upper_case überschrieben (doppelter eintrag), das war bei deiner nicht der fall. das habe ich jetzt auch mal ausgetauscht und lasse ihn gerade nochmal komplett durchlaufen. das lässt mich nochmal hoffen.

danke, bis gleich. ;-)
astrakid

astrakid
Regelmäßiger Poster
Beiträge: 62
Registriert: Di 20. Sep 2011, 13:55

Re: TomatoUSB und Asterisk kompilieren - Fehlermeldung

Beitrag von astrakid » Do 29. Sep 2011, 11:29

gut, bzw. nicht gut: ich bekomme jetzt eine andere, aber ähnliche fehlermeldung:

make[1]: Leaving directory `/opt/16gb/tmp/asterisk-1.8.6.0/menuselect'
Generating embedded module rules ...
In file included from chared.h:136,
from el.h:101,
from common.c:51,
from editline.c:4:
fcns.h:2:1: error: unterminated #ifndef
In file included from el.h:105,
from common.c:51,
from editline.c:4:
map.h:63: error: expected specifier-qualifier-list before 'el_func_t'
map.h:77: error: expected declaration specifiers or '...' before 'el_func_t'
In file included from editline.c:8:
el.c: In function 'el_set':
el.c:227: error: 'el_func_t' undeclared (first use in this function)
el.c:227: error: (Each undeclared identifier is reported only once
el.c:227: error: for each function it appears in.)
el.c:227: error: expected ';' before 'func'
el.c:229: error: 'func' undeclared (first use in this function)
el.c:229: error: too many arguments to function 'map_addfunc'
In file included from editline.c:11:

also scheint das auch nicht zu helfen...

ich werd noch bekloppt... ;-)

gruß,
astrakid

astrakid
Regelmäßiger Poster
Beiträge: 62
Registriert: Di 20. Sep 2011, 13:55

Re: TomatoUSB und Asterisk kompilieren - Fehlermeldung

Beitrag von astrakid » Do 29. Sep 2011, 12:15

mal andersherum betrachtet: reicht es, nur die res_fax_spandsp.c zu kompilieren, oder muss das asterisk-binary auch beim kompilieren schon die information haben? wenn asterisk nämlich nur die resourcen beim start sucht, würde ja das nachkompilieren reichen. vielleicht könnte ich mich darauf beschränken...

gruß,
astrakid

Benutzeravatar
rainer
Profi
Beiträge: 183
Registriert: Di 17. Nov 2009, 20:18
Wohnort: Bonn
Kontaktdaten:

Re: TomatoUSB und Asterisk kompilieren - Fehlermeldung

Beitrag von rainer » Do 29. Sep 2011, 12:42

sollen wir jetzt die el.h, map.h und die el.c vergleichen?
Rainer Piper - Bonn - 0228 97167161 or SIP-URI: sip:7000@sip.soho-piper.de:5072
Software: kamailio 4.2.0 -> Asterisk 13.0.1 mit pjsip stack
Hardware: 2x QuadCore, 128GB ECC-RAM, 4x HDD Raid 10

astrakid
Regelmäßiger Poster
Beiträge: 62
Registriert: Di 20. Sep 2011, 13:55

Re: TomatoUSB und Asterisk kompilieren - Fehlermeldung

Beitrag von astrakid » Do 29. Sep 2011, 13:14

el.c

Code: Alles auswählen

root@Rantanplan_Asus:/opt/16gb/tmp/asterisk-1.8.6.0/main/editline# cat el.c
/*      $NetBSD: el.c,v 1.29 2002/03/18 16:00:52 christos Exp $ */

/*-
 * Copyright (c) 1992, 1993
 *      The Regents of the University of California.  All rights reserved.
 *
 * This code is derived from software contributed to Berkeley by
 * Christos Zoulas of Cornell University.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. All advertising materials mentioning features or use of this software
 *    must display the following acknowledgement:
 *      This product includes software developed by the University of
 *      California, Berkeley and its contributors.
 * 4. Neither the name of the University nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */

#include "config.h"
#if !defined(lint) && !defined(SCCSID)
#if 0
static char sccsid[] = "@(#)el.c        8.2 (Berkeley) 1/3/94";
#else
__RCSID("$NetBSD: el.c,v 1.29 2002/03/18 16:00:52 christos Exp $");
#endif
#endif /* not lint && not SCCSID */

/*
 * el.c: EditLine interface functions
 */
#include <sys/types.h>
#include <sys/param.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include "el.h"

/* el_init():
 *      Initialize editline and set default parameters.
 */
public EditLine *
el_init(const char *prog, FILE *fin, FILE *fout, FILE *ferr)
{

        EditLine *el = (EditLine *) el_malloc(sizeof(EditLine));

        if (el == NULL)
                return (NULL);

        memset(el, 0, sizeof(EditLine));

        el->el_infd = fileno(fin);
        el->el_outfile = fout;
        el->el_errfile = ferr;
        el->el_prog = strdup(prog);

        /*
         * Initialize all the modules. Order is important!!!
         */
        el->el_flags = 0;

        if (term_init(el) == -1) {
                free(el->el_prog);
                el_free(el);
                return NULL;
        }
        (void) key_init(el);
        (void) map_init(el);
        if (tty_init(el) == -1)
                el->el_flags |= NO_TTY;
        (void) ch_init(el);
        (void) search_init(el);
        (void) hist_init(el);
        (void) prompt_init(el);
        (void) sig_init(el);
        (void) read_init(el);

        return (el);
}


/* el_end():
 *      Clean up.
 */
public void
el_end(EditLine *el)
{

        if (el == NULL)
                return;

        el_reset(el);

        term_end(el);
        key_end(el);
        map_end(el);
        tty_end(el);
        ch_end(el);
        search_end(el);
        hist_end(el);
        prompt_end(el);
        sig_end(el);

        if (el->el_prog)
                el_free((ptr_t) el->el_prog);
        el_free((ptr_t) el);
}


/* el_reset():
 *      Reset the tty and the parser
 */
public void
el_reset(EditLine *el)
{

        tty_cookedmode(el);
        ch_reset(el);           /* XXX: Do we want that? */
}


/* el_set():
 *      set the editline parameters
 */
public int
el_set(EditLine *el, int op, ...)
{
        va_list va;
        int rv = 0;

        if (el == NULL)
                return (-1);
        va_start(va, op);

        switch (op) {
        case EL_PROMPT:
        case EL_RPROMPT:
                rv = prompt_set(el, va_arg(va, el_pfunc_t), op);
                break;

        case EL_TERMINAL:
                rv = term_set(el, va_arg(va, char *));
                break;

        case EL_EDITOR:
                rv = map_set_editor(el, va_arg(va, char *));
                break;

        case EL_SIGNAL:
                if (va_arg(va, int))
                        el->el_flags |= HANDLE_SIGNALS;
                else
                        el->el_flags &= ~HANDLE_SIGNALS;
                break;

        case EL_BIND:
        case EL_TELLTC:
        case EL_SETTC:
        case EL_ECHOTC:
        case EL_SETTY:
        {
                const char *argv[20];
                int i;

                for (i = 1; i < 20; i++)
                        if ((argv[i] = va_arg(va, char *)) == NULL)
                                break;

                switch (op) {
                case EL_BIND:
                        argv[0] = "bind";
                        rv = map_bind(el, i, argv);
                        break;

                case EL_TELLTC:
                        argv[0] = "telltc";
                        rv = term_telltc(el, i, argv);
                        break;

                case EL_SETTC:
                        argv[0] = "settc";
                        rv = term_settc(el, i, argv);
                        break;

                case EL_ECHOTC:
                        argv[0] = "echotc";
                        rv = term_echotc(el, i, argv);
                        break;

                case EL_SETTY:
                        argv[0] = "setty";
                        rv = tty_stty(el, i, argv);
                        break;

                default:
                        rv = -1;
                        EL_ABORT((el->el_errfile, "Bad op %d\n", op));
                        break;
                }
                break;
        }

        case EL_ADDFN:
        {
                char *name = va_arg(va, char *);
                char *help = va_arg(va, char *);
                el_func_t func = va_arg(va, el_func_t);

                rv = map_addfunc(el, name, help, func);
                break;
        }

        case EL_HIST:
        {
                hist_fun_t func = va_arg(va, hist_fun_t);
                ptr_t ptr = va_arg(va, char *);

                rv = hist_set(el, func, ptr);
                break;
        }

        case EL_EDITMODE:
                if (va_arg(va, int))
                        el->el_flags &= ~EDIT_DISABLED;
                else
                        el->el_flags |= EDIT_DISABLED;
                rv = 0;
                break;

        case EL_GETCFN:
        {
                el_rfunc_t rc = va_arg(va, el_rfunc_t);
                rv = el_read_setfn(el, rc);
                break;
        }

        case EL_CLIENTDATA:
                el->el_data = va_arg(va, void *);
                break;

        default:
                rv = -1;
                break;
        }

        va_end(va);
        return (rv);
}


/* el_get():
 *      retrieve the editline parameters
 */
public int
el_get(EditLine *el, int op, void *ret)
{
        int rv;

        if (el == NULL || ret == NULL)
                return (-1);
        switch (op) {
        case EL_PROMPT:
        case EL_RPROMPT:
                rv = prompt_get(el, (el_pfunc_t *) & ret, op);
                break;

        case EL_EDITOR:
                rv = map_get_editor(el, (const char **) &ret);
                break;

        case EL_SIGNAL:
                *((int *) ret) = (el->el_flags & HANDLE_SIGNALS);
                rv = 0;
                break;

        case EL_EDITMODE:
                *((int *) ret) = (!(el->el_flags & EDIT_DISABLED));
                rv = 0;
                break;

#if 0                           /* XXX */
        case EL_TERMINAL:
                rv = term_get(el, (const char *) &ret);
                break;

        case EL_BIND:
        case EL_TELLTC:
        case EL_SETTC:
        case EL_ECHOTC:
        case EL_SETTY:
        {
                char *argv[20];
                int i;

                for (i = 1; i < 20; i++)
                        if ((argv[i] = va_arg(va, char *)) == NULL)
                                break;

                switch (op) {
                case EL_BIND:
                        argv[0] = "bind";
                        rv = map_bind(el, i, argv);
                        break;

                case EL_TELLTC:
                        argv[0] = "telltc";
                        rv = term_telltc(el, i, argv);
                        break;

                case EL_SETTC:
                        argv[0] = "settc";
                        rv = term_settc(el, i, argv);
                        break;

                case EL_ECHOTC:
                        argv[0] = "echotc";
                        rv = term_echotc(el, i, argv);
                        break;

                case EL_SETTY:
                        argv[0] = "setty";
                        rv = tty_stty(el, i, argv);
                        break;

                default:
                        rv = -1;
                        EL_ABORT((el->errfile, "Bad op %d\n", op));
                        break;
                }
                break;
        }

        case EL_ADDFN:
        {
                char *name = va_arg(va, char *);
                char *help = va_arg(va, char *);
                el_func_t func = va_arg(va, el_func_t);

                rv = map_addfunc(el, name, help, func);
                break;
        }

        case EL_HIST:
                {
                        hist_fun_t func = va_arg(va, hist_fun_t);
                        ptr_t ptr = va_arg(va, char *);
                        rv = hist_set(el, func, ptr);
                }
                break;
#endif /* XXX */

        case EL_GETCFN:
                *((el_rfunc_t *)ret) = el_read_getfn(el);
                rv = 0;
                break;

        case EL_CLIENTDATA:
                *((void **)ret) = el->el_data;
                rv = 0;
                break;

        default:
                rv = -1;
        }

        return (rv);
}


/* el_line():
 *      Return editing info
 */
public const LineInfo *
el_line(EditLine *el)
{

        return (const LineInfo *) (void *) &el->el_line;
}


/* el_source():
 *      Source a file
 */
public int
el_source(EditLine *el, const char *fname)
{
        FILE *fp;
        size_t len;
        char *ptr;

        fp = NULL;
        if (fname == NULL) {
#ifdef HAVE_ISSETUGID
                static const char elpath[] = "/.editrc";
                char path[MAXPATHLEN];

                if (issetugid())
                        return (-1);
                if ((ptr = getenv("HOME")) == NULL)
                        return (-1);
                if (strlcpy(path, ptr, sizeof(path)) >= sizeof(path))
                        return (-1);
                if (strlcat(path, elpath, sizeof(path)) >= sizeof(path))
                        return (-1);
                fname = path;
#else
                /*
                 * If issetugid() is missing, always return an error, in order
                 * to keep from inadvertently opening up the user to a security
                 * hole.
                 */
                return (-1);
#endif
        }
        if (fp == NULL)
                fp = fopen(fname, "r");
        if (fp == NULL)
                return (-1);

        while ((ptr = fgetln(fp, &len)) != NULL) {
                if (len > 0 && ptr[len - 1] == '\n')
                        --len;
                ptr[len] = '\0';
                if (parse_line(el, ptr) == -1) {
                        (void) fclose(fp);
                        return (-1);
                }
        }

        (void) fclose(fp);
        return (0);
}


/* el_resize():
 *      Called from program when terminal is resized
 */
public void
el_resize(EditLine *el)
{
        int lins, cols;
        sigset_t oset, nset;

        (void) sigemptyset(&nset);
        (void) sigaddset(&nset, SIGWINCH);
        (void) sigprocmask(SIG_BLOCK, &nset, &oset);

        /* get the correct window size */
        if (term_get_size(el, &lins, &cols))
                term_change_size(el, lins, cols);

        (void) sigprocmask(SIG_SETMASK, &oset, NULL);
}


/* el_beep():
 *      Called from the program to beep
 */
public void
el_beep(EditLine *el)
{

        term_beep(el);
}


/* el_editmode()
 *      Set the state of EDIT_DISABLED from the `edit' command.
 */
protected int
/*ARGSUSED*/
el_editmode(EditLine *el, int argc, const char **argv)
{
        const char *how;

        if (argv == NULL || argc != 2 || argv[1] == NULL)
                return (-1);

        how = argv[1];
        if (strcmp(how, "on") == 0)
                el->el_flags &= ~EDIT_DISABLED;
        else if (strcmp(how, "off") == 0)
                el->el_flags |= EDIT_DISABLED;
        else {
                (void) fprintf(el->el_errfile, "edit: Bad value `%s'.\n", how);
                return (-1);
        }
        return (0);
}

Code: Alles auswählen

root@Rantanplan_Asus:/opt/16gb/tmp/asterisk-1.8.6.0/main/editline# cat map.h
/*      $NetBSD: map.h,v 1.7 2002/03/18 16:00:56 christos Exp $ */

/*-
 * Copyright (c) 1992, 1993
 *      The Regents of the University of California.  All rights reserved.
 *
 * This code is derived from software contributed to Berkeley by
 * Christos Zoulas of Cornell University.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. All advertising materials mentioning features or use of this software
 *    must display the following acknowledgement:
 *      This product includes software developed by the University of
 *      California, Berkeley and its contributors.
 * 4. Neither the name of the University nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 *
 *      @(#)map.h       8.1 (Berkeley) 6/4/93
 */

/*
 * el.map.h:    Editor maps
 */
#ifndef _h_el_map
#define _h_el_map

typedef struct el_bindings_t {  /* for the "bind" shell command */
        const char      *name;          /* function name for bind command */
        int              func;          /* function numeric value */
        const char      *description;   /* description of function */
} el_bindings_t;


typedef struct el_map_t {
        el_action_t     *alt;           /* The current alternate key map */
        el_action_t     *key;           /* The current normal key map   */
        el_action_t     *current;       /* The keymap we are using      */
        const el_action_t *emacs;       /* The default emacs key map    */
        const el_action_t *vic;         /* The vi command mode key map  */
        const el_action_t *vii;         /* The vi insert mode key map   */
        int              type;          /* Emacs or vi                  */
        el_bindings_t   *help;          /* The help for the editor functions */
        el_func_t       *func;          /* List of available functions  */
        int              nfunc;         /* The number of functions/help items */
} el_map_t;

#define MAP_EMACS       0
#define MAP_VI          1

protected int   map_bind(EditLine *, int, const char **);
protected int   map_init(EditLine *);
protected void  map_end(EditLine *);
protected void  map_init_vi(EditLine *);
protected void  map_init_emacs(EditLine *);
protected int   map_set_editor(EditLine *, char *);
protected int   map_get_editor(EditLine *, const char **);
protected int   map_addfunc(EditLine *, const char *, const char *, el_func_t);

#endif /* _h_el_map */

astrakid
Regelmäßiger Poster
Beiträge: 62
Registriert: Di 20. Sep 2011, 13:55

Re: TomatoUSB und Asterisk kompilieren - Fehlermeldung

Beitrag von astrakid » Do 29. Sep 2011, 13:22

hab gerade die dateien vergleichen, die sind identisch (auch der kommentartext innerhalb der dateien verweist auf das gleiche datum). muss also doch irgendwie mit dem compiler zusammenhängen, oder?

gruß,
astrakid

Benutzeravatar
rainer
Profi
Beiträge: 183
Registriert: Di 17. Nov 2009, 20:18
Wohnort: Bonn
Kontaktdaten:

Re: TomatoUSB und Asterisk kompilieren - Fehlermeldung

Beitrag von rainer » Do 29. Sep 2011, 13:41

dann kann ich den Link wieder löschen ... ??
Rainer Piper - Bonn - 0228 97167161 or SIP-URI: sip:7000@sip.soho-piper.de:5072
Software: kamailio 4.2.0 -> Asterisk 13.0.1 mit pjsip stack
Hardware: 2x QuadCore, 128GB ECC-RAM, 4x HDD Raid 10

astrakid
Regelmäßiger Poster
Beiträge: 62
Registriert: Di 20. Sep 2011, 13:55

Re: TomatoUSB und Asterisk kompilieren - Fehlermeldung

Beitrag von astrakid » Do 29. Sep 2011, 13:58

ja. danke.

Antworten