You are not logged in.

#1 2009-08-06 15:18:34

felonwan
Member
Registered: 2009-05-29
Posts: 5

unexpected token, autoconf error?

I tried to compile the software 'Barry' (for Blackberry) and encountered a problem, the info is like:

$ ./configure  --enable-gui 
…… 
./configure: line 15301: syntax error near unexpected token `LIBUSB,' 
./configure: line 15301: `PKG_CHECK_MODULES(LIBUSB, libusb,'

the line 15301 related part of in file configure is like this

15300  # generates LIBUSB_CFLAGS and LIBUSB_LIBS for us 
15301  PKG_CHECK_MODULES(LIBUSB, libusb, 
15302    , 
15303    echo "ERROR: Libusb not found automatically... build may fail if you don't specify --with-libusb";LIBUSB_CFLAGS="-I/usr/include" LIBUSB_LIBS="-lusb")

I tried to get some info in the web, is it an autoconf error?
http://www.nabble.com/darwin-patches-td20166331.html

but I don't know what the  problem...

I don't know whether it is proper to post the problem here...

Last edited by felonwan (2009-08-06 15:23:58)

Offline

#2 2009-08-06 23:31:36

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: unexpected token, autoconf error?

do you have  libusb installed?

Offline

#3 2009-08-08 00:00:04

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: unexpected token, autoconf error?

Hello felonwan!

Which version of barry did you try to install, the git version or the simple ?

Both of them works by me from aur. Did you try it so, or just manually ?

Offline

#4 2009-08-13 15:37:06

felonwan
Member
Registered: 2009-05-29
Posts: 5

Re: unexpected token, autoconf error?

djszapi wrote:

Hello felonwan!

Which version of barry did you try to install, the git version or the simple ?

Both of them works by me from aur. Did you try it so, or just manually ?

I tried to install it manually, because I didn't know it can be installed from aur and how to then.
I'll try.

Last edited by felonwan (2009-08-13 16:10:35)

Offline

#5 2009-08-14 01:08:52

felonwan
Member
Registered: 2009-05-29
Posts: 5

Re: unexpected token, autoconf error?

djszapi wrote:

Hello felonwan!

Which version of barry did you try to install, the git version or the simple ?

Both of them works by me from aur. Did you try it so, or just manually ?

I've tried to install barry and barry-git from aur,  the laster is OK, but the former encountered such err info:

...
g++ -DHAVE_CONFIG_H -I.. -ansi -Wall -fno-strict-aliasing -g -D__BARRY_HAVE_GCCVISIBILITY__ -fvisibility=hidden -march=i686 -mtune=generic -O2 -pipe -MT base64.lo -MD -MP -MF .deps/base64.Tpo -c base64.cc  -fPIC -DPIC -o .libs/base64.o
base64.cc: In member function 'int base64_input::operator()()':
base64.cc:41: error: 'EOF' was not declared in this scope
base64.cc: In function 'bool encode(base64_input&, base64_output&)':
base64.cc:99: error: 'EOF' was not declared in this scope
base64.cc: In function 'int insig(base64_input&)':
base64.cc:138: error: 'EOF' was not declared in this scope
base64.cc: In function 'bool decode(base64_input&, base64_output&)':
base64.cc:174: error: 'EOF' was not declared in this scope
make[2]: *** [base64.lo] Error 1
make[2]: Leaving directory `/tmp/yaourt-tmp-root/aur-barry/barry/src/barry-0.14/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-root/aur-barry/barry/src/barry-0.14'
make: *** [all] Error 2
==> ERROR: Build Failed.
    Aborting...
Error: Makepkg was unable to build barry package.
...


what's the problem?

Offline

#6 2009-08-14 01:49:13

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: unexpected token, autoconf error?

it need to be patched to build with the latest gcc.

Add:
#include<cstdio>
to
base64.cc

Offline

#7 2009-08-14 14:46:49

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 714

Re: unexpected token, autoconf error?

felonwan wrote:
djszapi wrote:

Hello felonwan!

Which version of barry did you try to install, the git version or the simple ?

Both of them works by me from aur. Did you try it so, or just manually ?

I've tried to install barry and barry-git from aur,  the laster is OK, but the former encountered such err info:

...
g++ -DHAVE_CONFIG_H -I.. -ansi -Wall -fno-strict-aliasing -g -D__BARRY_HAVE_GCCVISIBILITY__ -fvisibility=hidden -march=i686 -mtune=generic -O2 -pipe -MT base64.lo -MD -MP -MF .deps/base64.Tpo -c base64.cc  -fPIC -DPIC -o .libs/base64.o
base64.cc: In member function 'int base64_input::operator()()':
base64.cc:41: error: 'EOF' was not declared in this scope
base64.cc: In function 'bool encode(base64_input&, base64_output&)':
base64.cc:99: error: 'EOF' was not declared in this scope
base64.cc: In function 'int insig(base64_input&)':
base64.cc:138: error: 'EOF' was not declared in this scope
base64.cc: In function 'bool decode(base64_input&, base64_output&)':
base64.cc:174: error: 'EOF' was not declared in this scope
make[2]: *** [base64.lo] Error 1
make[2]: Leaving directory `/tmp/yaourt-tmp-root/aur-barry/barry/src/barry-0.14/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-root/aur-barry/barry/src/barry-0.14'
make: *** [all] Error 2
==> ERROR: Build Failed.
    Aborting...
Error: Makepkg was unable to build barry package.
...


what's the problem?

Don't forget to kick the AUR maintainer/submitter to fix the issue wink

Offline

#8 2009-08-14 19:42:37

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: unexpected token, autoconf error?

And the real author of the program/package.

Offline

Board footer

Powered by FluxBB