Article ID: 122397, created on Jul 18, 2014, last review on Jul 18, 2014

  • Applies to:
  • Business Automation 5.5

Symptoms

Default SDK DomainPluginTemplate is used, autogenerated code cannot be compiled:

[root@pba DOMAIN]# waf
Waf: Entering directory `/root/DomainPlugins/DOMAIN/.build'
Running with 1 parallel jobs.
[1/2] casecomp sources generation <- DOMAIN.lsa
Project::Project /root/DomainPlugins/DOMAIN/DOMAIN.lsa parent=0
unwrapping DOMAIN ..... done
Parsing done in 0 seconds.
Generating DB scheme for PostgreSQL.
table.sql & trigger.sql done
Generating DB scheme for PostgreSQL done in 0 seconds.
Generating application server.
iDOMAIN.{cpp,h} . done
schemes done
Waf script helper file generated.
Generating application server done in 0 seconds.
Generating Info data.
Generating Info data done in 0 seconds.
Generating Privileges.
Generating Privileges done in 0 seconds.
[2/3] LISA post-generation task manager -> processing 2 CXX tasks
[ 3/15] cxx: .build/default/.src/DOMAINtypes.cpp -> .build/default/.src/DOMAINtypes_1.o
[ 4/15] cxx: .build/default/.src/rpc/DOMAIN_1.cpp -> .build/default/.src/rpc/DOMAIN_1_1.o
[ 5/15] cxx: .build/default/.src/DOMAINbody.cpp -> .build/default/.src/DOMAINbody_1.o
[ 6/15] cxx: .build/default/.src/bDOMAIN.cpp -> .build/default/.src/bDOMAIN_1.o
[ 7/15] cxx: .build/default/.src/iDOMAIN.cpp -> .build/default/.src/iDOMAIN_1.o
[ 8/15] cxx: .build/default/.src/internals/base/allDOMAIN_1.cpp -> .build/default/.src/internals/base/allDOMAIN_1_1.o
[ 9/15] cxx: bodies.cc -> .build/default/bodies_1.o
[10/15] cxx: internals.cc -> .build/default/internals_1.o
[11/15] cxx: plugin.cpp -> .build/default/plugin_1.o
[12/15] cxx: .build/default/.src/mainDOMAIN.cpp -> .build/default/.src/mainDOMAIN_1.o
In file included from default/.src/mainDOMAIN.cpp:3:
default/.src/iDOMAIN.h:11: error: expected identifier before numeric constant
default/.src/iDOMAIN.h:11: error: expected unqualified-id before numeric constant
default/.src/mainDOMAIN.cpp: In function ‘int main(int, char**)’:
default/.src/mainDOMAIN.cpp:6: error: type/value mismatch at argument 1 in template parameter list for ‘template<class CONT> class MW::Application’
default/.src/mainDOMAIN.cpp:6: error:   expected a type, got ‘1’
default/.src/mainDOMAIN.cpp:6: error: invalid type in declaration before ‘(’ token
default/.src/mainDOMAIN.cpp:6: error: invalid conversion from ‘const char*’ to ‘int’
default/.src/mainDOMAIN.cpp:7: error: request for member ‘run’ in ‘app’, which is of non-class type ‘int’
Waf: Leaving directory `/root/DomainPlugins/DOMAIN/.build'
Build failed:  -> task failed (err #1):
{task: cxx mainDOMAIN.cpp -> mainDOMAIN_1.o}
[root@pba DOMAIN]# 

Cause

The name DOMAIN was used as a PROJECT_NAME or REGISTRAR_NAME.

Resolution

Choose a different name, this one is already used internally.

Search Words

Domain plugin compilation

198398b282069eaf2d94a6af87dcb3ff caea8340e2d186a540518d08602aa065 801221f8cd76fba7300d1e6817c8e08b 92711db0799e8aefe8e51f12dace0496 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF