Kai Fischer wrote:
> Hi,
> 
> Did anyone ever try to build dsplink 1.50 with the ELDK or CodeSourcery
> Toolchains 
> and DaVinci kernel 2.6.23? 
> 
> I tried, but ran into following problems:
> 
> ...gpp/src# make release
> ....
> prcs.c: In function 'PRCS_Create':
> prcs.c:188: error: dereferencing pointer to incomplete type
> prcs.c:189: error: dereferencing pointer to incomplete type
> prcs.c:191: error: dereferencing pointer to incomplete type
> 
> Code:
> 188   (*prcsObj)->handleToThread    = (pvoid)current->pid;
> 189   (*prcsObj)->handleToProcess   = (pvoid)current->mm;
> 191   (*prcsObj)->priorityOfProcess = current->prio;
> 
> This error occurs because the struct task_struct (type of current) is
> never defined anywhere.
> I searched the kernel sources and found it defined in linux/sched.h. 
> I included it into prcs.c and restarted the build process. 
> 
> Now it runs until:
> ...
> mem.c: In function 'MEM_addrTranslate':
> mem.c:594: error: 'init_mm' undeclared (first use in this function)
> 
> Well, did I miss here anything? I tried to follow the dsplink UserGuide,
> but I am unsure if I 
> have to edit any files beside the mentioned ones (because of the
> different Toolchain)...
> 
> Anyone any hint on this?
> 
> Thanks and best regards,
> Kai
> _______________________________________________
> Davinci-linux-open-source mailing list
> Davinci-linux-open-source@linux.davincidsp.com
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
> 
Are you including autoconf.h


>From a previous posting,
2. 
dvevm_1_20/dsplink_1_30_08_02/packages/dsplink/make/Linux/Davinci/compile.mk, 
link.mk

Make sure the following lines are in the files
ifeq ("$(GPPOSVERSION)", "2.6")
STD_CC_FLAGS   += -include linux/autoconf.h
endif

Troy

_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to