atefsaeed2010 / datacard

Automatically exported from code.google.com/p/datacard
Other
0 stars 1 forks source link

r63 not make for x86_64bit #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In file included from at_parse.c:13:
memmem.h:22: error: expected declaration specifiers or ‘...’ before 
‘size_t’
memmem.h:22: error: expected declaration specifiers or ‘...’ before 
‘size_t’
In file included from /usr/include/asterisk/compat.h:67,
                 from /usr/include/asterisk.h:27,
                 from at_parse.c:15:
/usr/include/string.h:382: error: conflicting types for ‘memmem’
memmem.h:22: note: previous declaration of ‘memmem’ was here
make: *** [at_parse.o] Ошибка 1

Original issue reported on code.google.com by ipetrova...@gmail.com on 3 Dec 2010 at 9:09

GoogleCodeExporter commented 9 years ago

Original comment by bg_...@mail.ru on 4 Dec 2010 at 10:04

GoogleCodeExporter commented 9 years ago
memmem.h:22 compiled only if HAVE_MEMMEM undefined 
is a ./configure weak for find memmem() 
CFLAGS now always contain _GNU_SOURCE for ./configure can see memmem.
TODO: change memmem() search from AC_CHECK_FUNCS to AC_EGREP_HEADER against 
string.h

'before ‘size_t’' mean no size_t declared at this point, 
fixed by '#include <sys/types.h>'  before

Original comment by bg_...@mail.ru on 4 Dec 2010 at 11:14

GoogleCodeExporter commented 9 years ago
fixed in r65, please check, i has't 64bit compiler

Original comment by bg_...@mail.ru on 4 Dec 2010 at 11:20

GoogleCodeExporter commented 9 years ago
новенькое...
gcc -D_GNU_SOURCE -I.  -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden 
-fPIC -Wall -Wextra -MD -MT helpers.o -MF .helpers.o.d -MP  -o helpers.o -c 
helpers.c
helpers.c: In function ‘send_ccwa_set’:
helpers.c:144: warning: cast to pointer from integer of different size
gcc -D_GNU_SOURCE -I.  -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden 
-fPIC -Wall -Wextra -MD -MT manager.o -MF .manager.o.d -MP  -o manager.o -c 
manager.c
gcc -D_GNU_SOURCE -I.  -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden 
-fPIC -Wall -Wextra -MD -MT memmem.o -MF .memmem.o.d -MP  -o memmem.o -c 
memmem.c
memmem.c:41: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before ‘void’
make: *** [memmem.o] Ошибка 1

Original comment by ipetrova...@gmail.com on 4 Dec 2010 at 12:19

GoogleCodeExporter commented 9 years ago

Original comment by bg_...@mail.ru on 4 Dec 2010 at 1:55

GoogleCodeExporter commented 9 years ago
i create local copy of /usr/include/string.h w/o memmem and force unset 
HAVE_MEMMEM for check case when memmem() not exists.
memmem.c changed...
helpers.c:144 already marked as FIXME

try r67, I hope all will build and you can relax on Sunday :)

Original comment by bg_...@mail.ru on 4 Dec 2010 at 2:50

GoogleCodeExporter commented 9 years ago
Не вышло релакснуть.
Скомпилилось, но вместо звука просто белый 
шум. Пока на Махутовском чан_датакарде 
приходится сидеть :(

Original comment by ipetrova...@gmail.com on 4 Dec 2010 at 2:56

GoogleCodeExporter commented 9 years ago
ok, say your uname -srvmpio output
i check 64bit platform later

Original comment by bg_...@mail.ru on 4 Dec 2010 at 3:16

GoogleCodeExporter commented 9 years ago
Linux 2.6.35-23-generic #40-Ubuntu SMP Wed Nov 17 22:14:33 UTC 2010 x86_64 
unknown unknown GNU/Linux
Linux 2.6.33.7 #3 SMP Sun Nov 28 01:06:51 EET 2010 x86_64 x86_64 x86_64 
GNU/Linux

... both are identical result

Original comment by ipetrova...@gmail.com on 4 Dec 2010 at 3:54

GoogleCodeExporter commented 9 years ago
white noise in both directions?

Original comment by bg_...@mail.ru on 4 Dec 2010 at 4:07

GoogleCodeExporter commented 9 years ago

Original comment by bg_...@mail.ru on 4 Dec 2010 at 4:08

GoogleCodeExporter commented 9 years ago
I create white noise as new bug

Original comment by bg_...@mail.ru on 4 Dec 2010 at 5:21

GoogleCodeExporter commented 9 years ago
Centos 5.5. o x86_64

Linux test.local 2.6.18-194.8.1.el5 #1 SMP Thu Jul 1 19:04:48 EDT 2010 x86_64 
x86_64 x86_64 GNU/Linux

[root@test datacard-read-only]# autoconf 
configure.in:9: warning: AC_CANONICAL_HOST invoked multiple times
configure.in:97: error: possibly undefined macro: AC_TYPE_SSIZE_T
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:98: error: possibly undefined macro: AC_TYPE_UINT64_T
configure.in:110: error: possibly undefined macro: AC_CFLAGS

[root@test datacard-read-only]# automake -a
configure.in:9: warning: AC_CANONICAL_HOST invoked multiple times
configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAKE,
configure.in: that aclocal.m4 is present in the top-level directory,
configure.in: and that aclocal.m4 was recently regenerated (using aclocal).
configure.in: installing `./install-sh'
configure.in: installing `./missing'
automake: no `Makefile.am' found for any configure output

[root@test datacard-read-only]# ./configure
configure: error: cannot run /bin/sh ./config.sub

Original comment by pag...@gmail.com on 5 Dec 2010 at 5:53

GoogleCodeExporter commented 9 years ago
Debian squeeze 64 bits
Linux debian64 2.6.32-5-amd64 #1 SMP Thu Nov 25 18:02:11 UTC 2010 x86_64 
GNU/Linux

Everything is ok!!!

Original comment by pag...@gmail.com on 5 Dec 2010 at 8:39

GoogleCodeExporter commented 9 years ago
kernel 2.6.18 not support

Original comment by ipetrova...@gmail.com on 5 Dec 2010 at 9:15

GoogleCodeExporter commented 9 years ago
ok, Centos5/RedHat5 fails to compile...

Original comment by pag...@gmail.com on 5 Dec 2010 at 10:39

GoogleCodeExporter commented 9 years ago
autoconf 
  and
automake 

alive in several versions 
I uncomment AC_PREREQ([2.60]) at begining of configure.in
More strict need 2.64
Its about undefined macro: AC_TYPE_SSIZE_T AC_TYPE_UINT64_T AC_CFLAGS
Other way - rewrite this macros manually.

automake -a complains is ok, just ignore 
we not use automake for build process only for install "missing" files 
config.sub config.guess install-sh

I can put files to repository but its bad idea i think.
Packages http://code.google.com/p/datacard/downloads/list contain ALL required 
files for run configure

kernel version does not matter for autoconf/automake

Original comment by bg_...@mail.ru on 6 Dec 2010 at 4:07

GoogleCodeExporter commented 9 years ago
Centos 5.5 x86_64 with kernel 2.6.18 (autoconf 2.59):

Using tar.gz package --> ok
Using svn --> autoconf complains (configure.in:3: error: Autoconf version 2.60 
or higher is required)

That's ok.. I supose...

Original comment by pag...@gmail.com on 6 Dec 2010 at 9:56

GoogleCodeExporter commented 9 years ago
Problems with compilation again...

cli.c: In function ‘cli_show_device_statictics’:
cli.c:284: warning: format ‘%llu’ expects type ‘long long unsigned 
int’, but argument 3 has type ‘uint64_t’
cli.c:285: warning: format ‘%llu’ expects type ‘long long unsigned 
int’, but argument 3 has type ‘uint64_t’
cli.c:291: warning: format ‘%llu’ expects type ‘long long unsigned 
int’, but argument 3 has type ‘uint64_t’

Original comment by ipetrova...@gmail.com on 9 Jan 2011 at 6:50

GoogleCodeExporter commented 9 years ago
same types

Original comment by bg_...@mail.ru on 10 Jan 2011 at 9:14