On Fri, Sep 9, 2011 at 8:08 PM, bsquared <bwcod...@gmail.com> wrote:
> Hello,
>
> I have read that this may be a problem with build system, but how can i fix 
> it.
>
> when I run 'make clean && make' I get
> previous definition of ...
> for each class in the file.
>
> but if I run valac it compiles fine.
>
> Is the make system caching information somewhere?
> I rebooted and retried with same result.
>

This started when I re-factored the class to a new file.  If that is
the cause, how does one avoid it?

Upon further inspection I found that aftermake clean  the *.deps are
not recreated, and when --fast-vapi is not set the final line from the
make output (attached) is:
`/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status'

-- 
Regards,
-Brian
  GEN    .vala-aux/couchapprc.vapi
  GEN    .vala-aux/couchappdb.vapi
  GEN    .vala-aux/couchdb_sample.vapi
  GEN    .vala-aux/couchappdoc.vapi
  VALAC  couchapprc.vala
  VALAC  couchapprc.vala
  VALAC  couchapprc.vala
  VALAC  couchapprc.vala
  CC     couchapprc.c
build/c/couchapprc.c:470:20: warning: ‘block1_data_ref’ defined but not used [-Wunused-function]
  CC     couchapprc.c
build/c/couchapprc.c:470:20: warning: ‘block1_data_ref’ defined but not used [-Wunused-function]
  CC     couchapprc.c
build/c/couchapprc.c:470:20: warning: ‘block1_data_ref’ defined but not used [-Wunused-function]
  CC     couchapprc.c
build/c/couchapprc.c:470:20: warning: ‘block1_data_ref’ defined but not used [-Wunused-function]
  Generating executable...
couchappdb.o: In function `couch_app_config_destination_item_construct':
couchapprc.c:(.text+0x763): multiple definition of `couch_app_config_destination_item_construct'
build/o/couchapprc.o:couchapprc.c:(.text+0x763): first defined here
couchappdb.o: In function `couch_app_config_destination_item_get_db':
couchapprc.c:(.text+0x77e): multiple definition of `couch_app_config_destination_item_get_db'
build/o/couchapprc.o:couchapprc.c:(.text+0x77e): first defined here
couchappdb.o: In function `couch_app_config_destination_item_set_db':
couchapprc.c:(.text+0x7b5): multiple definition of `couch_app_config_destination_item_set_db'
build/o/couchapprc.o:couchapprc.c:(.text+0x7b5): first defined here
couchappdb.o: In function `couch_app_config_destination_item_get_host':
couchapprc.c:(.text+0x82b): multiple definition of `couch_app_config_destination_item_get_host'
build/o/couchapprc.o:couchapprc.c:(.text+0x82b): first defined here
couchappdb.o: In function `couch_app_config_destination_item_get_dbname':
couchapprc.c:(.text+0x866): multiple definition of `couch_app_config_destination_item_get_dbname'
build/o/couchapprc.o:couchapprc.c:(.text+0x866): first defined here
couchappdb.o: In function `couch_app_config_destination_item_get_user':
couchapprc.c:(.text+0x8a9): multiple definition of `couch_app_config_destination_item_get_user'
build/o/couchapprc.o:couchapprc.c:(.text+0x8a9): first defined here
couchappdb.o: In function `couch_app_config_destination_item_get_passwd':
couchapprc.c:(.text+0x8e4): multiple definition of `couch_app_config_destination_item_get_passwd'
build/o/couchapprc.o:couchapprc.c:(.text+0x8e4): first defined here
couchappdb.o: In function `couch_app_config_destination_item_get_port':
couchapprc.c:(.text+0x91f): multiple definition of `couch_app_config_destination_item_get_port'
build/o/couchapprc.o:couchapprc.c:(.text+0x91f): first defined here
couchappdb.o: In function `couch_app_config_destination_item_get_type':
couchapprc.c:(.text+0x95a): multiple definition of `couch_app_config_destination_item_get_type'
build/o/couchapprc.o:couchapprc.c:(.text+0x95a): first defined here
couchappdb.o: In function `couch_app_config_destination_item_new':
couchapprc.c:(.text+0xdb5): multiple definition of `couch_app_config_destination_item_new'
build/o/couchapprc.o:couchapprc.c:(.text+0xdb5): first defined here
couchappdb.o: In function `couch_app_config_destination_map_construct':
couchapprc.c:(.text+0xdc9): multiple definition of `couch_app_config_destination_map_construct'
build/o/couchapprc.o:couchapprc.c:(.text+0xdc9): first defined here
couchappdb.o: In function `couch_app_config_destination_map_get_type':
couchapprc.c:(.text+0xe25): multiple definition of `couch_app_config_destination_map_get_type'
build/o/couchapprc.o:couchapprc.c:(.text+0xe25): first defined here
couchappdb.o: In function `couch_app_config_destination_map_new':
couchapprc.c:(.text+0xfb3): multiple definition of `couch_app_config_destination_map_new'
build/o/couchapprc.o:couchapprc.c:(.text+0xfb3): first defined here
couchappdb.o: In function `couch_app_config_resource_file_construct_with_data':
couchapprc.c:(.text+0xfc7): multiple definition of `couch_app_config_resource_file_construct_with_data'
build/o/couchapprc.o:couchapprc.c:(.text+0xfc7): first defined here
couchappdb.o: In function `couch_app_config_resource_file_construct':
couchapprc.c:(.text+0x1047): multiple definition of `couch_app_config_resource_file_construct'
build/o/couchapprc.o:couchapprc.c:(.text+0x1047): first defined here
couchappdb.o: In function `couch_app_config_resource_file_get_data':
couchapprc.c:(.text+0x1095): multiple definition of `couch_app_config_resource_file_get_data'
build/o/couchapprc.o:couchapprc.c:(.text+0x1095): first defined here
couchappdb.o: In function `couch_app_config_resource_file_set_data':
couchapprc.c:(.text+0x10cc): multiple definition of `couch_app_config_resource_file_set_data'
build/o/couchapprc.o:couchapprc.c:(.text+0x10cc): first defined here
couchappdb.o: In function `couch_app_config_resource_file_get_destination_map':
couchapprc.c:(.text+0x1142): multiple definition of `couch_app_config_resource_file_get_destination_map'
build/o/couchapprc.o:couchapprc.c:(.text+0x1142): first defined here
couchappdb.o: In function `couch_app_config_resource_file_get_type':
couchapprc.c:(.text+0x117a): multiple definition of `couch_app_config_resource_file_get_type'
build/o/couchapprc.o:couchapprc.c:(.text+0x117a): first defined here
couchappdb.o: In function `couch_app_config_resource_file_new':
couchapprc.c:(.text+0x14fb): multiple definition of `couch_app_config_resource_file_new'
build/o/couchapprc.o:couchapprc.c:(.text+0x14fb): first defined here
couchappdb.o: In function `couch_app_config_resource_file_new_with_data':
couchapprc.c:(.text+0x150f): multiple definition of `couch_app_config_resource_file_new_with_data'
build/o/couchapprc.o:couchapprc.c:(.text+0x150f): first defined here
couchdb_sample.o: In function `couch_app_config_destination_item_construct':
couchapprc.c:(.text+0x763): multiple definition of `couch_app_config_destination_item_construct'
build/o/couchapprc.o:couchapprc.c:(.text+0x763): first defined here
couchdb_sample.o: In function `couch_app_config_destination_item_get_db':
couchapprc.c:(.text+0x77e): multiple definition of `couch_app_config_destination_item_get_db'
build/o/couchapprc.o:couchapprc.c:(.text+0x77e): first defined here
couchdb_sample.o: In function `couch_app_config_destination_item_set_db':
couchapprc.c:(.text+0x7b5): multiple definition of `couch_app_config_destination_item_set_db'
build/o/couchapprc.o:couchapprc.c:(.text+0x7b5): first defined here
couchdb_sample.o: In function `couch_app_config_destination_item_get_host':
couchapprc.c:(.text+0x82b): multiple definition of `couch_app_config_destination_item_get_host'
build/o/couchapprc.o:couchapprc.c:(.text+0x82b): first defined here
couchdb_sample.o: In function `couch_app_config_destination_item_get_dbname':
couchapprc.c:(.text+0x866): multiple definition of `couch_app_config_destination_item_get_dbname'
build/o/couchapprc.o:couchapprc.c:(.text+0x866): first defined here
couchdb_sample.o: In function `couch_app_config_destination_item_get_user':
couchapprc.c:(.text+0x8a9): multiple definition of `couch_app_config_destination_item_get_user'
build/o/couchapprc.o:couchapprc.c:(.text+0x8a9): first defined here
couchdb_sample.o: In function `couch_app_config_destination_item_get_passwd':
couchapprc.c:(.text+0x8e4): multiple definition of `couch_app_config_destination_item_get_passwd'
build/o/couchapprc.o:couchapprc.c:(.text+0x8e4): first defined here
couchdb_sample.o: In function `couch_app_config_destination_item_get_port':
couchapprc.c:(.text+0x91f): multiple definition of `couch_app_config_destination_item_get_port'
build/o/couchapprc.o:couchapprc.c:(.text+0x91f): first defined here
couchdb_sample.o: In function `couch_app_config_destination_item_get_type':
couchapprc.c:(.text+0x95a): multiple definition of `couch_app_config_destination_item_get_type'
build/o/couchapprc.o:couchapprc.c:(.text+0x95a): first defined here
couchdb_sample.o: In function `couch_app_config_destination_item_new':
couchapprc.c:(.text+0xdb5): multiple definition of `couch_app_config_destination_item_new'
build/o/couchapprc.o:couchapprc.c:(.text+0xdb5): first defined here
couchdb_sample.o: In function `couch_app_config_destination_map_construct':
couchapprc.c:(.text+0xdc9): multiple definition of `couch_app_config_destination_map_construct'
build/o/couchapprc.o:couchapprc.c:(.text+0xdc9): first defined here
couchdb_sample.o: In function `couch_app_config_destination_map_get_type':
couchapprc.c:(.text+0xe25): multiple definition of `couch_app_config_destination_map_get_type'
build/o/couchapprc.o:couchapprc.c:(.text+0xe25): first defined here
couchdb_sample.o: In function `couch_app_config_destination_map_new':
couchapprc.c:(.text+0xfb3): multiple definition of `couch_app_config_destination_map_new'
build/o/couchapprc.o:couchapprc.c:(.text+0xfb3): first defined here
couchdb_sample.o: In function `couch_app_config_resource_file_construct_with_data':
couchapprc.c:(.text+0xfc7): multiple definition of `couch_app_config_resource_file_construct_with_data'
build/o/couchapprc.o:couchapprc.c:(.text+0xfc7): first defined here
couchdb_sample.o: In function `couch_app_config_resource_file_construct':
couchapprc.c:(.text+0x1047): multiple definition of `couch_app_config_resource_file_construct'
build/o/couchapprc.o:couchapprc.c:(.text+0x1047): first defined here
couchdb_sample.o: In function `couch_app_config_resource_file_get_data':
couchapprc.c:(.text+0x1095): multiple definition of `couch_app_config_resource_file_get_data'
build/o/couchapprc.o:couchapprc.c:(.text+0x1095): first defined here
couchdb_sample.o: In function `couch_app_config_resource_file_set_data':
couchapprc.c:(.text+0x10cc): multiple definition of `couch_app_config_resource_file_set_data'
build/o/couchapprc.o:couchapprc.c:(.text+0x10cc): first defined here
couchdb_sample.o: In function `couch_app_config_resource_file_get_destination_map':
couchapprc.c:(.text+0x1142): multiple definition of `couch_app_config_resource_file_get_destination_map'
build/o/couchapprc.o:couchapprc.c:(.text+0x1142): first defined here
couchdb_sample.o: In function `couch_app_config_resource_file_get_type':
couchapprc.c:(.text+0x117a): multiple definition of `couch_app_config_resource_file_get_type'
build/o/couchapprc.o:couchapprc.c:(.text+0x117a): first defined here
couchdb_sample.o: In function `couch_app_config_resource_file_new':
couchapprc.c:(.text+0x14fb): multiple definition of `couch_app_config_resource_file_new'
build/o/couchapprc.o:couchapprc.c:(.text+0x14fb): first defined here
couchdb_sample.o: In function `couch_app_config_resource_file_new_with_data':
couchapprc.c:(.text+0x150f): multiple definition of `couch_app_config_resource_file_new_with_data'
build/o/couchapprc.o:couchapprc.c:(.text+0x150f): first defined here
couchappdoc.o: In function `couch_app_config_destination_item_construct':
couchapprc.c:(.text+0x763): multiple definition of `couch_app_config_destination_item_construct'
build/o/couchapprc.o:couchapprc.c:(.text+0x763): first defined here
couchappdoc.o: In function `couch_app_config_destination_item_get_db':
couchapprc.c:(.text+0x77e): multiple definition of `couch_app_config_destination_item_get_db'
build/o/couchapprc.o:couchapprc.c:(.text+0x77e): first defined here
couchappdoc.o: In function `couch_app_config_destination_item_set_db':
couchapprc.c:(.text+0x7b5): multiple definition of `couch_app_config_destination_item_set_db'
build/o/couchapprc.o:couchapprc.c:(.text+0x7b5): first defined here
couchappdoc.o: In function `couch_app_config_destination_item_get_host':
couchapprc.c:(.text+0x82b): multiple definition of `couch_app_config_destination_item_get_host'
build/o/couchapprc.o:couchapprc.c:(.text+0x82b): first defined here
couchappdoc.o: In function `couch_app_config_destination_item_get_dbname':
couchapprc.c:(.text+0x866): multiple definition of `couch_app_config_destination_item_get_dbname'
build/o/couchapprc.o:couchapprc.c:(.text+0x866): first defined here
couchappdoc.o: In function `couch_app_config_destination_item_get_user':
couchapprc.c:(.text+0x8a9): multiple definition of `couch_app_config_destination_item_get_user'
build/o/couchapprc.o:couchapprc.c:(.text+0x8a9): first defined here
couchappdoc.o: In function `couch_app_config_destination_item_get_passwd':
couchapprc.c:(.text+0x8e4): multiple definition of `couch_app_config_destination_item_get_passwd'
build/o/couchapprc.o:couchapprc.c:(.text+0x8e4): first defined here
couchappdoc.o: In function `couch_app_config_destination_item_get_port':
couchapprc.c:(.text+0x91f): multiple definition of `couch_app_config_destination_item_get_port'
build/o/couchapprc.o:couchapprc.c:(.text+0x91f): first defined here
couchappdoc.o: In function `couch_app_config_destination_item_get_type':
couchapprc.c:(.text+0x95a): multiple definition of `couch_app_config_destination_item_get_type'
build/o/couchapprc.o:couchapprc.c:(.text+0x95a): first defined here
couchappdoc.o: In function `couch_app_config_destination_item_new':
couchapprc.c:(.text+0xdb5): multiple definition of `couch_app_config_destination_item_new'
build/o/couchapprc.o:couchapprc.c:(.text+0xdb5): first defined here
couchappdoc.o: In function `couch_app_config_destination_map_construct':
couchapprc.c:(.text+0xdc9): multiple definition of `couch_app_config_destination_map_construct'
build/o/couchapprc.o:couchapprc.c:(.text+0xdc9): first defined here
couchappdoc.o: In function `couch_app_config_destination_map_get_type':
couchapprc.c:(.text+0xe25): multiple definition of `couch_app_config_destination_map_get_type'
build/o/couchapprc.o:couchapprc.c:(.text+0xe25): first defined here
couchappdoc.o: In function `couch_app_config_destination_map_new':
couchapprc.c:(.text+0xfb3): multiple definition of `couch_app_config_destination_map_new'
build/o/couchapprc.o:couchapprc.c:(.text+0xfb3): first defined here
couchappdoc.o: In function `couch_app_config_resource_file_construct_with_data':
couchapprc.c:(.text+0xfc7): multiple definition of `couch_app_config_resource_file_construct_with_data'
build/o/couchapprc.o:couchapprc.c:(.text+0xfc7): first defined here
couchappdoc.o: In function `couch_app_config_resource_file_construct':
couchapprc.c:(.text+0x1047): multiple definition of `couch_app_config_resource_file_construct'
build/o/couchapprc.o:couchapprc.c:(.text+0x1047): first defined here
couchappdoc.o: In function `couch_app_config_resource_file_get_data':
couchapprc.c:(.text+0x1095): multiple definition of `couch_app_config_resource_file_get_data'
build/o/couchapprc.o:couchapprc.c:(.text+0x1095): first defined here
couchappdoc.o: In function `couch_app_config_resource_file_set_data':
couchapprc.c:(.text+0x10cc): multiple definition of `couch_app_config_resource_file_set_data'
build/o/couchapprc.o:couchapprc.c:(.text+0x10cc): first defined here
couchappdoc.o: In function `couch_app_config_resource_file_get_destination_map':
couchapprc.c:(.text+0x1142): multiple definition of `couch_app_config_resource_file_get_destination_map'
build/o/couchapprc.o:couchapprc.c:(.text+0x1142): first defined here
couchappdoc.o: In function `couch_app_config_resource_file_get_type':
couchapprc.c:(.text+0x117a): multiple definition of `couch_app_config_resource_file_get_type'
build/o/couchapprc.o:couchapprc.c:(.text+0x117a): first defined here
couchappdoc.o: In function `couch_app_config_resource_file_new':
couchapprc.c:(.text+0x14fb): multiple definition of `couch_app_config_resource_file_new'
build/o/couchapprc.o:couchapprc.c:(.text+0x14fb): first defined here
couchappdoc.o: In function `couch_app_config_resource_file_new_with_data':
couchapprc.c:(.text+0x150f): multiple definition of `couch_app_config_resource_file_new_with_data'
build/o/couchapprc.o:couchapprc.c:(.text+0x150f): first defined here
/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [target] Error 1
_______________________________________________
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to