First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 152846
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Crypto team <crypto@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Tomas Sedlak <tomas.sedlak@centrum.sk>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
xca-0.5.1-configure.patch this patch fixed configure error for me patch Tomas Sedlak 2006-10-25 23:29 0000 626 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 152846 depends on: Show dependency tree
Show dependency graph
Bug 152846 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-10-25 23:27 0000
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 From Tomas Sedlak 2006-10-25 23:29:30 0000 -------
Created an attachment (id=100510) [edit]
this patch fixed configure error for me

------- Comment #2 From Alon Bar-Lev (RETIRED) 2006-10-26 12:56:12 0000 -------
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 From Tomas Sedlak 2006-10-26 14:22:27 0000 -------
(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 From Alon Bar-Lev (RETIRED) 2006-10-26 18:34:53 0000 -------
OK.
Thanks!
Fixed in current revision.

First Last Prev Next    No search results available      Search page      Enter new bug