Symptom
After running the make command or building in ProjectBuilderWO you see these messages:
In file included from ../Adaptor/cohostedapps.h:16,
from ../Adaptor/cohostedapps.c:18:
../Adaptor/WOAppReq.h:41: `WA_MAX_APP_NAME_LENGTH' undeclared here (not in a function)
../Adaptor/WOAppReq.h:42: `WA_MAX_HOST_NAME_LENGTH' undeclared here (not in a function)
../Adaptor/WOAppReq.h:45: `WA_MAX_INSTANCE_NUMBER_LENGTH' undeclared here (not in a function)
.
.
.
Solution
1. Remove the directory tree rooted at:
/System/Developer/Examples/WebObjects/Source/Adaptors
2. Reinstall the WebObjectsAdaptors.pkg from the WebObjects 4.5.1 release.
3. Recompile the adaptor source.
Note: This issue is caused by files left behind from a previous version of WebObjects. The WebObjects 4.0.1 adaptor source was included in the DeveloperDocs package from the Mac OS X Server Developer Tools.