tst2005googlecode / umurmur

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

Trouble on Debian Arm #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Running Thecus n2100 (arm) chroot debian etch

C compiler not liking config_t in config.c

triton:/thing/thign3/umurmur-0.2.4/src# make
gcc  -I. -Wall    -c -o conf.o conf.c
conf.c:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'configuration'
conf.c: In function 'Conf_init':
conf.c:55: warning: implicit declaration of function 'config_init'
conf.c:55: error: 'configuration' undeclared (first use in this function)
conf.c:55: error: (Each undeclared identifier is reported only once
conf.c:55: error: for each function it appears in.)
conf.c:60: warning: implicit declaration of function 'config_read_file'
conf.c:60: error: 'CONFIG_TRUE' undeclared (first use in this function)
conf.c:62: warning: implicit declaration of function 'config_error_text'
conf.c:62: warning: implicit declaration of function 'config_error_line'
conf.c:62: warning: format '%s' expects type 'char *', but argument 4 has
type 'int'
conf.c: In function 'Conf_deinit':
conf.c:70: warning: implicit declaration of function 'config_destroy'
conf.c:70: error: 'configuration' undeclared (first use in this function)
conf.c: In function 'getStrConf':
conf.c:75: error: 'config_setting_t' undeclared (first use in this function)
conf.c:75: error: 'setting' undeclared (first use in this function)
conf.c:80: warning: implicit declaration of function 'config_lookup'
conf.c:80: error: 'configuration' undeclared (first use in this function)
conf.c:84: warning: implicit declaration of function
'config_setting_get_string'
conf.c:84: warning: assignment makes pointer from integer without a cast
conf.c:95: warning: assignment makes pointer from integer without a cast
conf.c:106: warning: assignment makes pointer from integer without a cast
conf.c:117: warning: assignment makes pointer from integer without a cast
conf.c:128: warning: assignment makes pointer from integer without a cast
conf.c:139: warning: assignment makes pointer from integer without a cast
conf.c: In function 'getIntConf':
conf.c:154: error: 'config_setting_t' undeclared (first use in this function)
conf.c:154: error: 'setting' undeclared (first use in this function)
conf.c:158: error: 'configuration' undeclared (first use in this function)
conf.c:162: warning: implicit declaration of function 'config_setting_get_int'
conf.c: In function 'Conf_getNextChannel':
conf.c:188: error: 'config_setting_t' undeclared (first use in this function)
conf.c:188: error: 'setting' undeclared (first use in this function)
conf.c:192: error: 'configuration' undeclared (first use in this function)
conf.c:195: warning: assignment makes pointer from integer without a cast
conf.c:201: warning: assignment makes pointer from integer without a cast
conf.c:208: warning: assignment makes pointer from integer without a cast
conf.c:215: warning: implicit declaration of function 'config_setting_get_bool'
conf.c: In function 'Conf_getNextChannelLink':
conf.c:222: error: 'config_setting_t' undeclared (first use in this function)
conf.c:222: error: 'setting' undeclared (first use in this function)
conf.c:226: error: 'configuration' undeclared (first use in this function)
conf.c:229: warning: assignment makes pointer from integer without a cast
conf.c:235: warning: assignment makes pointer from integer without a cast
make: *** [conf.o] Error 1

Original issue reported on code.google.com by feel_the...@hotmail.com on 20 Apr 2010 at 1:23

GoogleCodeExporter commented 9 years ago
That's probably the location (or existence) of libconfig.h that causes this. 
Locate it 
and adjust in conf.c. If it is in /usr/include/libconfig/ you can compile with 
the 
WRT_TARGET define.

Original comment by fatbob.s...@gmail.com on 20 Apr 2010 at 2:49

GoogleCodeExporter commented 9 years ago
ok thanks for that, but now I'm hitting errors on the ssl.c
I tried changing some of where the libraries aimed at but have hit this error 

client.h:60: error: expected specifier-qualifier-list before 'SSL_handle_t'
client.c: In function 'Client_getfds':
client.c:81: error: 'client_t' has no member named 'node'
client.c:84: error: 'client_t' has no member named 'txsize'
client.c:84: error: 'client_t' has no member named 'readBlockedOnWrite'
client.c: In function 'Client_janitor':
client.c:97: error: 'client_t' has no member named 'node'
client.c:99: error: 'client_t' has no member named 'availableBandwidth'
client.c:100: error: 'client_t' has no member named 'availableBandwidth'
client.c:101: error: 'client_t' has no member named 'availableBandwidth'
client.c:103: error: 'client_t' has no member named 'lastActivity'
client.c: In function 'Client_codec_add':
client.c:118: error: 'client_t' has no member named 'codecs'
client.c: In function 'Client_codec_free':
client.c:124: error: 'client_t' has no member named 'codecs'
client.c:124: warning: left-hand operand of comma expression has no effect

Original comment by feel_the...@hotmail.com on 21 Apr 2010 at 1:35

GoogleCodeExporter commented 9 years ago
Do you have OpenSSL devel stuff installed? I.e. the header files referenced in 
ssl.h

Original comment by fatbob.s...@gmail.com on 21 Apr 2010 at 3:37

GoogleCodeExporter commented 9 years ago
ok, i think I have fixed the OpenSSL problem, but now the files compile but 
when the
files are compiled to umurmurd i think I'm getting an issues relating to the 
config
file procedures, errors below.

Thanks again

 make
cc  -I. -Wall    -c -o client.o client.c
cc  -I. -Wall    -c -o main.o main.c
cc  -I. -Wall    -c -o messages.o messages.c
cc  -I. -Wall    -c -o pds.o pds.c
cc  -I. -Wall    -c -o server.o server.c
cc  -I. -Wall    -c -o ssl.o ssl.c
ssl.c: In function 'SSLi_init':
ssl.c:508: warning: passing argument 1 of 'SSL_CTX_new' discards qualifiers from
pointer target type
cc  -I. -Wall    -c -o log.o log.c
cc  -I. -Wall    -c -o conf.o conf.c
cc  -I. -Wall    -c -o crypt.o crypt.c
cc  -I. -Wall    -c -o timer.o timer.c
cc  -I. -Wall    -c -o messagehandler.o messagehandler.c
cc  -I. -Wall    -c -o channel.o channel.c
cc  -I. -Wall    -c -o Mumble.pb-c.o Mumble.pb-c.c
cc  -I. -Wall    -c -o voicetarget.o voicetarget.c
cc -lcrypto -lssl   -lconfig   client.o  main.o  messages.o  pds.o  server.o  
ssl.o 
log.o  conf.o  crypt.o  timer.o  messagehandler.o  channel.o  Mumble.pb-c.o 
voicetarget.o  google/protobuf-c/libprotobuf_c.a -o umurmurd
conf.o: In function `Conf_init':
conf.c:(.text+0x18): undefined reference to `config_init'
conf.c:(.text+0x44): undefined reference to `config_read_file'
conf.o: In function `Conf_deinit':
conf.c:(.text+0xbc): undefined reference to `config_destroy'
conf.o: In function `getStrConf':
conf.c:(.text+0x128): undefined reference to `config_lookup'
conf.c:(.text+0x150): undefined reference to `config_setting_get_string'
conf.c:(.text+0x188): undefined reference to `config_lookup'
conf.c:(.text+0x1b0): undefined reference to `config_setting_get_string'
conf.c:(.text+0x1e8): undefined reference to `config_lookup'
conf.c:(.text+0x210): undefined reference to `config_setting_get_string'
conf.c:(.text+0x248): undefined reference to `config_lookup'
conf.c:(.text+0x270): undefined reference to `config_setting_get_string'
conf.c:(.text+0x2a8): undefined reference to `config_lookup'
conf.c:(.text+0x2d0): undefined reference to `config_setting_get_string'
conf.c:(.text+0x308): undefined reference to `config_lookup'
conf.c:(.text+0x330): undefined reference to `config_setting_get_string'
conf.o: In function `getIntConf':
conf.c:(.text+0x414): undefined reference to `config_lookup'
conf.c:(.text+0x448): undefined reference to `config_setting_get_int'
conf.c:(.text+0x460): undefined reference to `config_lookup'
conf.c:(.text+0x494): undefined reference to `config_setting_get_int'
conf.c:(.text+0x4ac): undefined reference to `config_lookup'
conf.c:(.text+0x4d4): undefined reference to `config_setting_get_int'
conf.o: In function `Conf_getNextChannel':
conf.c:(.text+0x568): undefined reference to `config_lookup'
conf.c:(.text+0x590): undefined reference to `config_setting_get_string'
conf.c:(.text+0x5c0): undefined reference to `config_lookup'
conf.c:(.text+0x5e8): undefined reference to `config_setting_get_string'
conf.c:(.text+0x618): undefined reference to `config_lookup'
conf.c:(.text+0x644): undefined reference to `config_setting_get_string'
conf.c:(.text+0x674): undefined reference to `config_lookup'
conf.c:(.text+0x6a0): undefined reference to `config_setting_get_bool'
conf.o: In function `Conf_getNextChannelLink':
conf.c:(.text+0x720): undefined reference to `config_lookup'
conf.c:(.text+0x748): undefined reference to `config_setting_get_string'
conf.c:(.text+0x778): undefined reference to `config_lookup'
conf.c:(.text+0x7a0): undefined reference to `config_setting_get_string'
/usr/lib/gcc/arm-linux-gnu/4.1.2/../../../libconfig.so: undefined reference to
`mem_alloc_stub'
/usr/lib/gcc/arm-linux-gnu/4.1.2/../../../libconfig.so: undefined reference to
`mem_realloc_stub'
/usr/lib/gcc/arm-linux-gnu/4.1.2/../../../libconfig.so: undefined reference to
`log_printf_stub'
/usr/lib/gcc/arm-linux-gnu/4.1.2/../../../libconfig.so: undefined reference to
`mem_free_stub'
collect2: ld returned 1 exit status
make: *** [umurmurd] Error 1

Original comment by feel_the...@hotmail.com on 22 Apr 2010 at 11:22

GoogleCodeExporter commented 9 years ago
You have a problem with linking to libconfig. I have no idea what the problem 
is but 
libconfig itself also has undefined symbols so your build environment seems 
buggy. This 
surely isn't a problem with uMurmur.

Original comment by fatbob.s...@gmail.com on 22 Apr 2010 at 3:48

GoogleCodeExporter commented 9 years ago
After installing a few more packages than described, it finally compiled. :)

Thanks

Original comment by feel_the...@hotmail.com on 24 Apr 2010 at 2:16

GoogleCodeExporter commented 9 years ago

Original comment by fatbob.s...@gmail.com on 1 Sep 2010 at 7:49