Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - QNX 6.4.1 Compilation error: (8 Items)
   
QNX 6.4.1 Compilation error  
Hi,

I have download QNX 6.4.1 and tried to compile but i face erros.

just i gave make form source directory.

I compiled for x86

Please find below log.
------------------------

In file included from /home/senthil/QNX_6.4.1/lib/edit/el.h:105,
                 from /home/senthil/QNX_6.4.1/lib/edit/readline.c:60:
/home/senthil/QNX_6.4.1/lib/edit/map.h:59: error: expected specifier-qualifier-list before 'el_func_t'
/home/senthil/QNX_6.4.1/lib/edit/map.h:73: error: expected declaration specifiers or '...' before 'el_func_t'
/home/senthil/QNX_6.4.1/lib/edit/readline.c: In function 'rl_bind_key':
/home/senthil/QNX_6.4.1/lib/edit/readline.c:1568: error: 'ED_INSERT' undeclared (first use in this function)
/home/senthil/QNX_6.4.1/lib/edit/readline.c:1568: error: (Each undeclared identifier is reported only once
/home/senthil/QNX_6.4.1/lib/edit/readline.c:1568: error: for each function it appears in.)
cc: /usr/qnx641/host/qnx6/x86/usr/lib/gcc/arm-unknown-nto-qnx6.4.0/4.3.3/cc1 error 1

Please help me on this.

Thanks and Regards
K.Senthil
Re: QNX 6.4.1 Compilation error  
On Tue, Aug 18, 2009 at 08:41:16AM -0400, Senthil K wrote:
> Hi,
> 
> I have download QNX 6.4.1 and tried to compile but i face erros.
> 
> just i gave make form source directory.
> 
> I compiled for x86
> 
> Please find below log.
> ------------------------
> 
> In file included from /home/senthil/QNX_6.4.1/lib/edit/el.h:105,
>                  from /home/senthil/QNX_6.4.1/lib/edit/readline.c:60:
> /home/senthil/QNX_6.4.1/lib/edit/map.h:59: error: expected specifier-qualifier-list before 'el_func_t'
> /home/senthil/QNX_6.4.1/lib/edit/map.h:73: error: expected declaration specifiers or '...' before 'el_func_t'
> /home/senthil/QNX_6.4.1/lib/edit/readline.c: In function 'rl_bind_key':
> /home/senthil/QNX_6.4.1/lib/edit/readline.c:1568: error: 'ED_INSERT' undeclared (first use in this function)
> /home/senthil/QNX_6.4.1/lib/edit/readline.c:1568: error: (Each undeclared identifier is reported only once
> /home/senthil/QNX_6.4.1/lib/edit/readline.c:1568: error: for each function it appears in.)
> cc: /usr/qnx641/host/qnx6/x86/usr/lib/gcc/arm-unknown-nto-qnx6.4.0/4.3.3/cc1 error 1

It looks like your lib/edit/fcns.h isn't being
built correctly (though not sure why).  Try
this as a workaround:

# (cd lib/edit/x86/a && make ISWIN=yes install)

-seanb
Re: QNX 6.4.1 Compilation error  
Hi Sean,

I have tried same,still error.

please help me.

# cd lib/edit/x86/a/
# ls
.             ..            Makefile      editline.o    history.o
# make ISWIN=yes install
/usr/qnx641/host/qnx6/x86/usr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall -Wc,-Wno-parentheses  -O -DNDEBUG   -I. -I/home/senthil/
QNX_6.4.1/lib/edit/premade -I/home/senthil/QNX_6.4.1/lib/edit -I/usr/qnx641/target/qnx6/usr/include        -DVARIANT_a -
DBUILDENV_qss  /home/senthil/QNX_6.4.1/lib/edit/readline.c
In file included from /home/senthil/QNX_6.4.1/lib/edit/el.h:105,
                 from /home/senthil/QNX_6.4.1/lib/edit/readline.c:60:
/home/senthil/QNX_6.4.1/lib/edit/map.h:59: error: expected specifier-qualifier-list before 'el_func_t'
/home/senthil/QNX_6.4.1/lib/edit/map.h:73: error: expected declaration specifiers or '...' before 'el_func_t'
/home/senthil/QNX_6.4.1/lib/edit/readline.c: In function 'rl_bind_key':
/home/senthil/QNX_6.4.1/lib/edit/readline.c:1568: error: 'ED_INSERT' undeclared (first use in this function)
/home/senthil/QNX_6.4.1/lib/edit/readline.c:1568: error: (Each undeclared identifier is reported only once
/home/senthil/QNX_6.4.1/lib/edit/readline.c:1568: error: for each function it appears in.)
cc: /usr/qnx641/host/qnx6/x86/usr/lib/gcc/i386-pc-nto-qnx6.4.0/4.3.3/cc1 error 1
make: *** [readline.o] Error 1
#

Thanks 

K.senthil

Re: QNX 6.4.1 Compilation error  
On Tue, Aug 18, 2009 at 10:09:46AM -0400, Senthil K wrote:
> Hi Sean,
> 
> I have tried same,still error.

Try a 'make clean' first.

-seanb
Re: QNX 6.4.1 Compilation error  
Hi Sean,

Thanks a lot.

Now its a workaround But is there any solution that help will help to me.

Thanks and Regards
K.Senthil
Re: QNX 6.4.1 Compilation error  
Hi,

Another error i m facing .

please find the below log

  /home/senthil/QNX_6.4.1/dist/bind/bin/check/check-tool.c
/usr/qnx641/host/qnx6/x86/usr/bin/qcc -Vgcc_ntoarm -c -O -Wc,-Wall -Wc,-Wno-parentheses -Wc,-fno-builtin -
DNS_LOCALSTATEDIR=\"/var\" -DNS_SYSCONFDIR=\"/etc\" -DVERSION=\"9.5.0-P2\" -DWANT_IPV6 -DOPENSSL -
DISC_PLATFORM_USETHREADS -DNAMED_CONFFILE=\"/etc/named.conf\" -DNDEBUG   -I. -I/home/senthil/QNX_6.4.1/services/bind/
check/named-checkconf/arm/o.le -I/home/senthil/QNX_6.4.1/services/bind/check/named-checkconf/arm -I/home/senthil/QNX_6.4
.1/services/bind/check/named-checkconf -I/home/senthil/QNX_6.4.1/dist/bind/bin/check -I/home/senthil/QNX_6.4.1/services/
bind/include -I/home/senthil/QNX_6.4.1/dist/bind/lib/dns/include -I/home/senthil/QNX_6.4.1/dist/bind/lib/dns/unix/
include -I/home/senthil/QNX_6.4.1/dist/bind/lib/isc/include -I/home/senthil/QNX_6.4.1/dist/bind/lib/isc/unix/include -I/
home/senthil/QNX_6.4.1/dist/bind/lib/bind9/include -I/home/senthil/QNX_6.4.1/dist/bind/lib/isccfg/include -I/home/
senthil/QNX_6.4.1/dist/bind/lib/isccc/include -I/home/senthil/QNX_6.4.1/dist/bind/lib/lwres/include -I/home/senthil/
QNX_6.4.1/dist/bind/lib/lwres/unix/include -I/home/senthil/QNX_6.4.1/dist/bind/lib/dns/sec/dst/include -I/home/senthil/
QNX_6.4.1/dist/bind/lib/isc/pthreads/include -I/usr/qnx641/target/qnx6/usr/include    -EL    -DVARIANT_le -DBUILDENV_qss
  /home/senthil/QNX_6.4.1/dist/bind/bin/check/named-checkconf.c
make[6]: *** No rule to make target `libbind9.a', needed by `/home/senthil/QNX_6.4.1/services/bind/check/named-checkconf
/arm/o.le/named-checkconf'.  Stop.
make[6]: Leaving directory `/home/senthil/QNX_6.4.1/services/bind/check/named-checkconf/arm/o.le'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/home/senthil/QNX_6.4.1/services/bind/check/named-checkconf/arm'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/senthil/QNX_6.4.1/services/bind/check/named-checkconf'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/senthil/QNX_6.4.1/services/bind/check'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/senthil/QNX_6.4.1/services/bind'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/senthil/QNX_6.4.1/services'
make: *** [all] Error 2
# cd /home/senthil/QNX_6.4.1/dist/bind/bin/check/


Thanks 
K.Senthil
Re: QNX 6.4.1 Compilation error  
On Wed, Aug 19, 2009 at 03:34:26AM -0400, Senthil K wrote:
> Hi,
> 
> Another error i m facing .
> 
> please find the below log
> 
>   /home/senthil/QNX_6.4.1/dist/bind/bin/check/check-tool.c
> /usr/qnx641/host/qnx6/x86/usr/bin/qcc -Vgcc_ntoarm -c -O -Wc,-Wall -Wc,-Wno-parentheses -Wc,-fno-builtin -
DNS_LOCALSTATEDIR=\"/var\" -DNS_SYSCONFDIR=\"/etc\" -DVERSION=\"9.5.0-P2\" -DWANT_IPV6 -DOPENSSL -
DISC_PLATFORM_USETHREADS -DNAMED_CONFFILE=\"/etc/named.conf\" -DNDEBUG   -I. -I/home/senthil/QNX_6.4.1/services/bind/
check/named-checkconf/arm/o.le -I/home/senthil/QNX_6.4.1/services/bind/check/named-checkconf/arm -I/home/senthil/QNX_6.4
.1/services/bind/check/named-checkconf -I/home/senthil/QNX_6.4.1/dist/bind/bin/check -I/home/senthil/QNX_6.4.1/services/
bind/include -I/home/senthil/QNX_6.4.1/dist/bind/lib/dns/include -I/home/senthil/QNX_6.4.1/dist/bind/lib/dns/unix/
include -I/home/senthil/QNX_6.4.1/dist/bind/lib/isc/include -I/home/senthil/QNX_6.4.1/dist/bind/lib/isc/unix/include -I/
home/senthil/QNX_6.4.1/dist/bind/lib/bind9/include -I/home/senthil/QNX_6.4.1/dist/bind/lib/isccfg/include -I/home/
senthil/QNX_6.4.1/dist/bind/lib/isccc/include -I/home/senthil/QNX_6.4.1/dist/bind/lib/lwres/include -I/home/senthil/
QNX_6.4.1/dist/bind/lib/lwres/unix/include -I/home/senthil/QNX_6.4.1/dist/bind/lib/dns/sec/dst/include -I/home/senthil/
QNX_6.4.1/dist/bind/lib/isc/pthreads/include -I/usr/qnx641/target/qnx6/usr/include    -EL    -DVARIANT_le -DBUILDENV_qss
  /home/senthil/QNX_6.4.1/dist/bind/bin/check/named-checkconf.c
> make[6]: *** No rule to make target `libbind9.a', needed by `/home/senthil/QNX_6.4.1/services/bind/check/named-
checkconf/arm/o.le/named-checkconf'.  Stop.

You need to build libbind9 for arm and install it to
your stage.  IIRC you were building for x86 yesterday.
The easiest way is to do a 'make CPULIST=x86 arm" install'
from the root of the networking repo as documented here:

http://community.qnx.com/sf/wiki/do/viewPage/projects.networking/wiki/Source_Guide


-seanb
Re: QNX 6.4.1 Compilation error  
Hi Sean,

Thanks  a lot.

if i will go to indujuval directory, give make.
then i came back to root directory giv make CPULIST=x86 arm install
then its getting compiled.

I dont know the reason.

Thanks and Regards
K.Senthil