All pastes #25077 Raw Edit

Untitled

public text v1 · immutable
#25077 ·published 2005-10-10 03:04 UTC
rendered paste body
gcc  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE  -O3  -mfpmath=sse -msse2  -mmmx -m3dnow -march=k8 -DZAPTEL_OPTIMIZATIONS          -m64 -fomit-frame-pointer    -c -o io.o io.c
io.c:34: error: syntax error before string constant
In file included from include/openpbx/io.h:29,
                 from io.c:36:
/usr/include/sys/poll.h: In function `OPENPBX_FILE_VERSION':
/usr/include/sys/poll.h:30: error: storage class specified for parameter `nfds_t'
/usr/include/sys/poll.h:48: error: syntax error before "nfds_t"
/usr/include/sys/poll.h:48: error: storage class specified for parameter `poll'
In file included from io.c:36:
include/openpbx/io.h:57: warning: empty declaration
include/openpbx/io.h:65: error: storage class specified for parameter `io_context_create'
include/openpbx/io.h:73: error: storage class specified for parameter `io_context_destroy'
include/openpbx/io.h:75: error: storage class specified for parameter `opbx_io_cb'
include/openpbx/io.h:88: error: syntax error before "opbx_io_cb"
include/openpbx/io.h:88: error: storage class specified for parameter `opbx_io_add'
include/openpbx/io.h:88: warning: function declaration isn't a prototype
include/openpbx/io.h:102: error: syntax error before "opbx_io_cb"
include/openpbx/io.h:102: error: storage class specified for parameter `opbx_io_change'
include/openpbx/io.h:102: warning: function declaration isn't a prototype
include/openpbx/io.h:110: error: storage class specified for parameter `opbx_io_remove'
include/openpbx/io.h:121: error: storage class specified for parameter `opbx_io_wait'
include/openpbx/io.h:127: error: storage class specified for parameter `opbx_io_dump'
include/openpbx/io.h:131: error: storage class specified for parameter `opbx_hide_password'
include/openpbx/io.h:137: error: storage class specified for parameter `opbx_restore_tty'
include/openpbx/io.h:139: error: storage class specified for parameter `opbx_get_termcols'
In file included from io.c:37:
include/openpbx/logger.h:57: error: storage class specified for parameter `opbx_log'
include/openpbx/logger.h:60: error: storage class specified for parameter `opbx_queue_log'
include/openpbx/logger.h:70: error: storage class specified for parameter `opbx_verbose'
include/openpbx/logger.h:72: error: storage class specified for parameter `opbx_register_verbose'
include/openpbx/logger.h:73: error: storage class specified for parameter `opbx_unregister_verbose'
include/openpbx/logger.h:74: error: storage class specified for parameter `opbx_verbose_dmesg'
include/openpbx/logger.h:75: error: storage class specified for parameter `opbx_console_puts'
io.c:49: error: syntax error before "opbx_io_cb"
io.c:49: warning: no semicolon at end of struct or union
io.c:52: error: syntax error before '}' token
io.c:78: warning: structure defined inside parms
io.c:78: warning: empty declaration
io.c:81: error: redefinition of parameter 'io_context_create'
include/openpbx/io.h:65: error: previous definition of 'io_context_create' was here
io.c:81: error: syntax error before '{' token
io.c:211: error: parameter `putto' is initialized
io.c:217: error: syntax error before "for"
io.c:270: error: syntax error before ';' token
io.c:327: error: syntax error before "if"
io.c:345: error: syntax error before "if"
io.c:361: error: parameter `cols' is initialized
io.c:363: error: syntax error before "if"
make: *** [io.o] Error 1
[rewt@localhost trunk]$ 




I think this is caused because `OPENPBX_FILE _VERSION' is not defined


This is made at the beginning of the make build


[rewt@localhost trunk-current]$ make
build_tools/make_version_h > include/openpbx/version.h.tmp
if cmp -s include/openpbx/version.h.tmp include/openpbx/version.h ; then echo; e
lse \
        mv include/openpbx/version.h.tmp include/openpbx/version.h ; \
fi

rm -f include/openpbx/version.h.tmp
if cmp -s .cleancount .lastclean ; then echo ; else \
        make clean; cp -f .cleancount .lastclean;\
fi

build_tools/make_build_h > include/openpbx/build.h.tmp
if cmp -s include/openpbx/build.h.tmp include/openpbx/build.h ; then echo ; else
 \
        mv include/openpbx/build.h.tmp include/openpbx/build.h ; \
fi
rm -f include/openpbx/build.h.tmp
build_tools/make_defaults_h > defaults.h.tmp
if cmp -s defaults.h.tmp defaults.h ; then echo ; else \
        mv defaults.h.tmp defaults.h ; \
fi

rm -f defaults.h.tmp







because




  include/openpbx/version.h becomes

[rewt@localhost trunk]$ cat include/openpbx/version.h
/*
 * version.h 
 * Automatically generated
 */
#define OPENPBX_VERSION ""
#define OPENPBX_VERSION_NUM 000000