LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-11-2014, 09:42 AM   #1
wigan
LQ Newbie
 
Registered: Apr 2014
Posts: 7

Rep: Reputation: Disabled
btscanner make error bt_get_le64


Slack14-3.2.29

Trying to get btscanner to make I get the following errors:

~/btscanner-2.1%make
make all-am
make[1]: Entering directory ~/btscanner-2.1'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I/usr/include/libxml2 -g -O2 -I/usr/include/libxml2 -Wall
-pthread -Wshadow -Wbad-function-cast -Wformat -Wimplicit-function-declaration -Wparentheses
-Wsign-compare -Wstrict-prototypes -Wtrigraphs -Wundef -Wuninitialized -W -Wunused -Wformat-security
-Wmissing-braces -Wbad-function-cast -Wcast-qual -falign-functions -falign-labels -falign-loops
-pedantic -fstrict-aliasing -D_GNU_SOURCE -std=c99 -DCFG_FILE=\"/usr/local/etc/btscanner.xml\"
-DCFG_DTD=\"file:///usr/local/etc/btscanner.dtd\" -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o
main.c; \ then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit1; fi
In file included from main.c:66:0:
/usr/include/bluetooth/bluetooth.h: In function 'bt_get_le64':
/usr/include/bluetooth/bluetooth.h:159:9: error: expected specifier-qualifier-list before 'typeof'
/usr/include/bluetooth/bluetooth.h:159:9: error: called object 'typeof(__p)' is not a function
/usr/include/bluetooth/bluetooth.h:159:9: error: 'struct <anonymous>' has no member named '__v'
/usr/include/bluetooth/bluetooth.h: In function 'bt_get_be64':
/usr/include/bluetooth/bluetooth.h:164:9: error: expected specifier-qualifier-list before 'typeof'
/usr/include/bluetooth/bluetooth.h:164:9: error: called object 'typeof(__p)' is not a function
/usr/include/bluetooth/bluetooth.h:164:9: error: 'struct <anonymous>' has no member named '__v'
snip 8<------------------------------------------------------
make[1]: *** [main.o] Error 1
make[1]: Leaving directory /home/a1cy0ne/work/btscanner-2.1'
make: *** [all] Error 2

Haven't found a way to get past this and though I'd try a post.

Thanks,

Wigan
 
Old 09-11-2014, 10:16 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
btscanner-2.1 (hope I linked the right source) is ten years old: as it seems not maintained since then, it doesn't build as is on modern linux operating systems.

but I had a look around and found something into AUR (archlinux), where a kind soul patched it for your benefit: just apply this, then
Code:
autoreconf -vif
configure
make

Last edited by ponce; 09-11-2014 at 10:26 AM.
 
Old 09-12-2014, 03:55 PM   #3
wigan
LQ Newbie
 
Registered: Apr 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
btscanner make error bt_get_le64

Thanks for the quick reply. I followed your suggestions (patched the file, autoreconf, configure, make) and the second time around I get this...

/btscanner-2.1%make
make: *** No rule to make target ///etc/btscanner.dtd\"', needed by -Wbad-function-cast'. Stop.

Well, if it needs btscanner.dtd it's there in the dir, and if it needs it to be in /etc I move it over there, but neither seems to fulfill it's needs.

So..., trying something to see what might happen I remove the offender (-Wbad-function-cast) from the Makefile and take another run at it, and this time 'make' compiles for two encouraging pages only to crash at the end with my original post. Not an exercise w/o interest/instruction but I'm still stuck.

As general info I found in browsing that the CFLAG -Wimplicit-function-dec has to be changed to -Wimplicit-function-declaration to get past the first hurdle.

Wigan
 
Old 09-12-2014, 04:21 PM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
nothing of that is needed here (it builds fine): I think you haven't applied the patch right as -Wbad-function-cast is removed by the patch itself.

to apply the patch file above save it, for example, as /tmp/btscanner.patch, then go in the btscanner-2.1 folder and issue a
Code:
patch -p1 < /tmp/btscanner.patch

Last edited by ponce; 09-13-2014 at 12:52 AM.
 
Old 09-13-2014, 07:00 AM   #5
wigan
LQ Newbie
 
Registered: Apr 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
btscanner make error bt_get_le64

Thanks for your patience. Here's the output...

a1cy0ne/home/a1cy0ne/work/btscanner-2.1%patch -p1 < /tmp/btscanner.patch
(Stripping trailing CRs from patch.)
patching file configure.in
Hunk #1 succeeded at 71 with fuzz 2 (offset 9 lines).
Hunk #2 succeeded at 86 (offset 9 lines).
(Stripping trailing CRs from patch.)
patching file Makefile.am
(Stripping trailing CRs from patch.)
patching file screen.c

a1cy0ne/home/a1cy0ne/work/btscanner-2.1%autoreconf -vif
autoreconf: Entering directory .'
autoreconf: configure.in: not using Gettext
autoreconf: running: aclocal --force
/usr/share/aclocal/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB
/usr/share/aclocal/imlib.m4:9: run info '(automake)Extending aclocal'
/usr/share/aclocal/imlib.m4:9: or see
http://www.gnu.org/software/automake...ending-aclocal
autoreconf: configure.in: tracing
autoreconf: configure.in: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory .'

The ./configure went w/o any bloops/errors/flags, but the make bombed at the same place :-(. I can use btscanner off Kali which I have on a thumb drive but I was hoping to get it to work in Slack for a convenient option.

Appreciate your help,

Wigan
 
Old 09-13-2014, 07:45 AM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
strange, this is my configure and make log from a slackware64-14.0 full install: are you running a full one?
could you post your configure log too?
you should have a config.log file available after you run configure: could you post that also?
use pastebin to post your logs and post the links to the pastes here.

Last edited by ponce; 09-13-2014 at 07:54 AM.
 
Old 09-13-2014, 05:17 PM   #7
wigan
LQ Newbie
 
Registered: Apr 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
>[QUOTE=ponce;5237223]strange, this is my configure >and make log from a slackware64-14.0 full install: are you running a full one?

Don't run a server so I don't need Apache, don't have use for a lot of x-bells and whistles, etc, but my basic system is sound (I think-I've been using Slack since it came out in the mid-nineties though I'm no guru), bluetooth is functional including btscanner dependencies listed on AUR, i.e., bluez-libs and libxml2.

>could you post your configure log too?
>you should have a config.log file available after you run configure: could you post that also?
>use pastebin to post your logs and post the links to the pastes here.

Well, it look like my config.log is attached but we'll see.
Attached Files
File Type: log config.log (23.9 KB, 15 views)
 
Old 09-14-2014, 03:19 AM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
for some reason you seem still to have some exotic CFLAGS (I see it from diffing mine and yours config.log), so try like this: expand the tarball, apply the patch and then
Code:
autoreconf -vif
CFLAGS="-O2" ./configure
make
try doing this in a bash shell (I say this as I tested with that).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Make file error code 1 make: *** [AIQ7] Error 1 raju39k Linux - Newbie 2 04-09-2012 01:22 PM
RH9 make menuconfig error: make[1]: *** [lxdialog] Error 1 rrochele Linux - Kernel 3 02-07-2007 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration