Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152846 - app-crypt/xca:-0.5.1-r1 compilation error
Summary: app-crypt/xca:-0.5.1-r1 compilation error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-25 23:27 UTC by Tomas Sedlak
Modified: 2006-10-26 18:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
this patch fixed configure error for me (xca-0.5.1-configure.patch,626 bytes, patch)
2006-10-25 23:29 UTC, Tomas Sedlak
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Sedlak 2006-10-25 23:27:56 UTC
When building app-crypt/xca-0.5.1-r1 I get this error:
>>> Compiling source in /var/tmp/portage/xca-0.5.1-r1/work/xca-0.5.1 ...
./configure: line 69: test: /usr/include/db4.2/db_cxx.h: binary operator 
expected
./configure: line 69: test: /usr/X11R6/include/db4.2/db_cxx.h: binary operator 
expected
Comment 1 Tomas Sedlak 2006-10-25 23:29:30 UTC
Created attachment 100510 [details, diff]
this patch fixed configure error for me
Comment 2 Alon Bar-Lev (RETIRED) gentoo-dev 2006-10-26 12:56:12 UTC
I don't understand why you had this message...
It happens when you have test -r with more than one argument.

Can you please try to just add quotes to the variables:
      if test -r "${dir}/include${dbn}/$1"; then
          add_include "${dir}/include${dbn}"
          echo Found:  $1 at "${dir}/include${dbn}"

I think it should work...
Comment 3 Tomas Sedlak 2006-10-26 14:22:27 UTC
(In reply to comment #2)
> Can you please try to just add quotes to the variables:
>       if test -r "${dir}/include${dbn}/$1"; then
> 
Result:
ERROR: The Berkeley DB header files were not found

It's because '${dir}/include${dbn}/$1' (without quotes) will expand to multiple arguments. I have both db4.2 and db4.3 header files installed. When using quotes then argument will be one of:
 /usr/qt/3/include/db_cxx.h
 /usr/qt/3/include/db4.?/db_cxx.h
 /usr/include/db_cxx.h
 /usr/include/db4.?/db_cxx.h
 /usr/X11R6/include/db_cxx.h
 /usr/X11R6/include/db4.?/db_cxx.h
 /usr/local/include/db_cxx.h
 /usr/local/include/db4.?/db_cxx.h

It will work only when using 'db4.3' instead of (wildcarded) 'db4.?' as function argument. My patch will search through directories in reverse order because I want to compile xca with db4.3 instead of db4.2.
Comment 4 Alon Bar-Lev (RETIRED) gentoo-dev 2006-10-26 18:34:53 UTC
OK.
Thanks!
Fixed in current revision.