Ticket #93 (closed enhancement: fixed)
readServiceFile definition / linking error
Reported by: | Knut Landmark | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | zoo-kernel | Version: | |
Keywords: | Cc: |
Description
The file service_internal.c contains the definition of the new function readServiceFile, which calls getServiceFromFile; getServiceFromFile is defined in service_conf.tab.c and declared extern in service_internal.h.
Since WPS service implementations must be linked with service_internal.obj, I suggest moving the definition of readServiceFile to zoo_service_loader.c to avoid "unresolved external symbol" type linker errors. To complete this task, remove the declaration
extern int getServiceFromFile(maps*,const char*,service**);
from service_internal.h and put it in zoo_service_loader.c. Also put the declaration
extern int readServiceFile(maps* conf, char* file,service** service,char *name);
in zcfg2yaml.c