Opened 10 years ago

Closed 10 years ago

#650 closed defect (fixed)

Compilation error

Reported by: TobiasScheinert Owned by: Richard Boulton
Priority: normal Milestone: 1.2.19
Component: Xapian-bindings (Python) Version:
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Operating System: Solaris

Description

Hi,

when I compile xapian-bindings-1.2.18, I get:

CC: -library=Cstd cannot be used with -library=stlport4

The problem is caused by the cofigure file, which adds:

postdeps_CXX='-library=Cstd -library=Crun'

Greeting Tobias

Change History (5)

comment:1 by Olly Betts, 10 years ago

What does this command report:

xapian-config --cxxflags

Was this working with 1.2.17? If you didn't build the previous version already, don't worry about building it specially.

comment:2 by TobiasScheinert, 10 years ago

This is the result of version 1.2.18, I changed the configuration-file

-library=stlport4,Crun -features=tmplife -I/soft-www/xapian/include

comment:3 by TobiasScheinert, 10 years ago

So I tried with version 1.2.18

CC: -library=Cstd cannot be used with -library=stlport4

./xapian-config --cxxflags

-library=stlport4,Crun -features=tmplife -I/tmp/xapian-test/include

comment:4 by Olly Betts, 10 years ago

I assume you mean "I tried with version 1.2.17"?

Thanks for that - it looks like the issue is that libtool checks for " -library=stlport4 " (with the spaces either side) and when it doesn't see that, it adds -library=Cstd which then conflicts. This rings a vague bell so I should probably check the history, but it looks like changing xapian-core's configure to select an ISO-compatible STL with -library=stlport4 -library=Crun would work.

comment:5 by Olly Betts, 10 years ago

Milestone: 1.2.x1.2.19
Resolution: fixed
Status: newclosed

Fixed in trunk r18196 and r18197; backported for 1.2.19 in r18198 and r18199.

Note: See TracTickets for help on using tickets.