New IT forum Follow us on Twitter
07 February 2012, 03:32:31 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: EFIKA MX now in stock!
 
   Home   SHOP Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Compiling issue - anyone understand that error?  (Read 782 times)
mola
Newbie
*
Posts: 33


« on: 16 August 2010, 10:17:00 am »

Hi,

I've been compiling various stuff under a Sheeva-with-Linux 2.6.34.2 Kernel / Debian Squeeze. Most programs compiled all right once I had build-essential etc.
This one doesn't and I'm no developer so I have difficulty in understanding the issue - and would appreciate your help. Error message says:

Code:
Plugin mcli:
make[1]: Entering directory `/usr/local/src/vdr/vdr-1.7.15/PLUGINS/src/vdr-mcli-plugin'
make -C mcast/client/
make[2]: Entering directory `/usr/local/src/vdr/vdr-1.7.15/PLUGINS/src/vdr-mcli-plugin/mcast/client'
gcc -c -g -O2 -Wall -fPIC -Wall -I../common -DCLIENT -DLIBRARY -D_REENTRANT -D_GNU_SOURCE -DAPI_SOCK  -I../dvbloop `xml2-config --cflags` -O3 -o mld_common.o mld_common.c
mld_common.c:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
make[2]: *** [mld_common.o] Fehler 1
make[2]: Leaving directory `/usr/local/src/vdr/vdr-1.7.15/PLUGINS/src/vdr-mcli-plugin/mcast/client'
make[1]: *** [libmcli.so] Fehler 2
make[1]: Leaving directory `/usr/local/src/vdr/vdr-1.7.15/PLUGINS/src/vdr-mcli-plugin'

I've now done further digging and the file that the debugger stumbles over just contains:

Code:
link ../common/mld_common.c

...and in fact that's where the actual source file is. If I go ahead and replace the text file containing the link with a symlink to the source file, the compiler gos ahead and produces "mld_common.o" - before it stalls at the next link contained in a textfile.

So apparently the linking stuff is the issue. Is there any way I can tell gcc in the makefile to follow these links? It's quite a couple so making symlinks would take time...

Any help appreciated.

Thanks very much!
« Last Edit: 16 August 2010, 10:41:14 am by mola » Logged
machekku
Newbie
*
Posts: 4


« Reply #1 on: 17 August 2010, 01:23:30 pm »

Can you paste first lines of mld_common.c?
Logged
mola
Newbie
*
Posts: 33


« Reply #2 on: 17 August 2010, 03:31:28 pm »

Can you paste first lines of mld_common.c?

Hi,

thanks for your help! I've basically solved the issue by symlinking the files. mld_common.c as such compiled fine.

Best regards
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!