Skip to contentSkip to conversation

BlueZ make error

DISCUSSION Vikrampal 2 participants 3 messages Jun 3, 2014 – Jun 17, 2014 Bluetooth drivers

lore
Share & tools
lore

Vikrampal

author
#0 lore raw

Hi,

While building the latest BlueZ, I'm getting below error:

krampal-ubuntu:~/bluez$ sudo make
make --no-print-directory all-am
  CC       client/main.o
client/main.c: In function 'cmd_version':
client/main.c:1098:28: error: 'VERSION' undeclared (first use in this
function)
  rl_printf("Version %s\n", VERSION);
                            ^
client/main.c:1098:28: note: each undeclared identifier is reported only
once for each function it appears in
client/main.c: In function 'main':
client/main.c:1489:18: error: 'VERSION' undeclared (first use in this
function)
   printf("%s\n", VERSION);
                  ^
make[1]: *** [client/main.o] Error 1
make: *** [all] Error 2

Please help me. Thanks!

Regards,
Vikram

#1 lore raw

Hi Vikrampal,

Quoted 5 lines · On Tuesday 03 of June 2014 18:55:33 Vikrampal wrote:

Hi,

While building the latest BlueZ, I'm getting below error:

krampal-ubuntu:~/bluez$ sudo make

Why building as superuser?

Quoted 12 lines

make --no-print-directory all-am
CC client/main.o
client/main.c: In function 'cmd_version':
client/main.c:1098:28: error: 'VERSION' undeclared (first use in this function)

  rl_printf("Version %s\n", VERSION);
                            ^

client/main.c:1098:28: note: each undeclared identifier is reported only once for each function it appears in
client/main.c: In function 'main':
client/main.c:1489:18: error: 'VERSION' undeclared (first use in this function)

Quoted 6 lines
   printf("%s\n", VERSION);
                  ^

make[1]: *** [client/main.o] Error
make: *** [all] Error 2

Please help me. Thanks!

That could happen if you tempered with either Makefile or config.h files (both are auto generated).

I suggest running configure (or bootstrap-configure if this is for development) again.

Signature · 2 lines
Best regards, 
Szymon Janc
author
#2 lore raw

Hi Szymon,

Quoted 37 lines

-----Original Message-----
From: Szymon Janc [mailto:[email protected]]
Sent: Monday, June 16, 2014 4:45 PM
To: Vikrampal
Cc: [email protected]; [email protected]
Subject: Re: BlueZ make error

Hi Vikrampal,

Quoted 5 lines · On Tuesday 03 of June 2014 18:55:33 Vikrampal wrote:

Hi,

While building the latest BlueZ, I'm getting below error:

krampal-ubuntu:~/bluez$ sudo make

Why building as superuser?

Quoted 12 lines

make --no-print-directory all-am
CC client/main.o
client/main.c: In function 'cmd_version':
client/main.c:1098:28: error: 'VERSION' undeclared (first use in this function)

  rl_printf("Version %s\n", VERSION);
                            ^

client/main.c:1098:28: note: each undeclared identifier is reported only once for each function it appears in
client/main.c: In function 'main':
client/main.c:1489:18: error: 'VERSION' undeclared (first use in this function)

Quoted 6 lines
   printf("%s\n", VERSION);
                  ^

make[1]: *** [client/main.o] Error
make: *** [all] Error 2

Please help me. Thanks!

Quoted 7 lines

That could happen if you tempered with either Makefile or config.h files (both are auto generated).

I suggest running configure (or bootstrap-configure if this is for development) again.

--
Best regards,
Szymon Janc

I could build bluez by running bootstrap-configure, make and make install. This time not as a superuser. Thanks a lot for your kind advice, it worked!

Regards,
Vikram