Re: [Owncloud] Gentoo client linking problem

2014-01-08 Thread Peter Humphrey
On Tuesday 07 Jan 2014 13:34:26 Norman Rieß wrote:

> If you start clean, the mirall ebuild from the overlay should pull in
> everything you need.

I did that and indeed everything did work as expected this time - many thanks 
for your help. I now have mirall installed at version 1.5.0-r1.

One problem I'd made for myself was in having too restrictive an entry in 
package.keywords; without that I wouldn't have had to pester you - apologies 
for my public learning process (I haven't played with overlays before)   :-(

-- 
Regards
Peter

___
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud


Re: [Owncloud] Gentoo client linking problem

2014-01-07 Thread Norman Rieß
Am 07.01.2014 10:47, schrieb Peter Humphrey:
> [Note to moderator: I've zipped the attached files to try to fit into the 40K 
> limit.]
> 
> On Monday 06 Jan 2014 13:21:28 Norman Rieß wrote:
>> Am 05.01.2014 00:36, schrieb Peter Humphrey:
>>> On Saturday 04 Jan 2014 17:41:19 I wrote:
 I have installed the qtkeychain package, which I think ought to include
 those objects.
>>>
>>> I should have added that I regenerated /etc/ld.so.cache after doing that.
>>
>> Why don't you use the ebuilds available in portage or the
>> owncloud-client overlay?
> 
> OK. This is what I did. I emerged layman and set it up in /var/lib/layman. 
> I'd 
> already unmasked ocsync and mirall so it was just a matter of emerging 
> mirall. 
> Except that it now fails in folderman.cpp with "‘CSYNC_ERROR_CODE’ has not 
> been declared". I've attached the log files.
> 
> Incidentally, there are two packages named qtkeychain: dev-libs/qtkeychain 
> and 
> x11-libs/qtkeychain. Until I realised that, I had the former, whereas it 
> seems 
> I needed the latter. Portage didn't report an ambiguity so I didn't know 
> about 
> it at the time.
> 
> Would this conversation be better held in the Gentoo User list?
> 
> 
> 
> ___
> Owncloud mailing list
> [email protected]
> https://mail.kde.org/mailman/listinfo/owncloud
> 

Please remove all packages and files you installed yourself or from the
regular portage tree.
mirall-1.4.2 is not the latest version from the overlay. That should be
1.5.0.
The two packages of qtkeychain are due to the overlay using the package
first and regular tree putting it in another section. There is a pull
request, which will sync both trees, but i will need some time to test
if anything breaks during the transition.

If you start clean, the mirall ebuild from the overlay should pull in
everything you need.

Norman
___
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud


Re: [Owncloud] Gentoo client linking problem

2014-01-07 Thread Peter Humphrey
[Note to moderator: I've zipped the attached files to try to fit into the 40K 
limit.]

On Monday 06 Jan 2014 13:21:28 Norman Rieß wrote:
> Am 05.01.2014 00:36, schrieb Peter Humphrey:
> > On Saturday 04 Jan 2014 17:41:19 I wrote:
> >> I have installed the qtkeychain package, which I think ought to include
> >> those objects.
> > 
> > I should have added that I regenerated /etc/ld.so.cache after doing that.
> 
> Why don't you use the ebuilds available in portage or the
> owncloud-client overlay?

OK. This is what I did. I emerged layman and set it up in /var/lib/layman. I'd 
already unmasked ocsync and mirall so it was just a matter of emerging mirall. 
Except that it now fails in folderman.cpp with "‘CSYNC_ERROR_CODE’ has not 
been declared". I've attached the log files.

Incidentally, there are two packages named qtkeychain: dev-libs/qtkeychain and 
x11-libs/qtkeychain. Until I realised that, I had the former, whereas it seems 
I needed the latter. Portage didn't report an ambiguity so I didn't know about 
it at the time.

Would this conversation be better held in the Gentoo User list?

-- 
Regards
Peter


build.log.bz2
Description: application/bzip


emerge.info.bz2
Description: application/bzip
[ebuild  N] net-misc/mirall-1.4.2  USE="-doc" 


environment.bz2
Description: application/bzip
___
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud


Re: [Owncloud] Gentoo client linking problem

2014-01-07 Thread Klaas Freitag

On 07.01.2014 10:38, Sebastian Kügler wrote:

Hi,

On Tuesday, January 07, 2014 09:02:58 Klaas Freitag wrote:

On 04.01.2014 18:41, Peter Humphrey wrote:

I've installed ownCloud on my LAN server and it seems to run OK. Now I
want to build the client on my workstation but the linker falls over with
these errors:

Linking CXX executable ../bin/owncloud
libowncloudsync.so.1.5.0: undefined reference to
`QKeychain::WritePasswordJob::setKey(QString const&)'


You seem to miss the libqtkeychain. Maybe it is not in the standard
search path for libs?

Try to call ldd ../bin/owncloud and check its output, it will show the
libs its using.

If your libqtkeychain is not installed in standard path, you can use
LD_LIBRARY_PATH environment variable:
LD_LIBRARY_PATH=/path/to/libqtkeychain/ ../bin/owncloud


As I understand, it's a build problem, not a runtime problem, so there is no
bin/owncloud.


Oh, yes, you're right of course. Sorry...

Klaas




From looking at the CMakeLists.txt file, it should fail if the library isn't

found, but it doesn't, so it seems to find it "to some degree", but then bails
out when actually linking against it.

You can debug it like this, roughly:

message("qtkeychain:  ${QTKEYCHAIN_FOUND}  ${QTKEYCHAIN_LIBRARY} ")

This should return true (or 1) and the name of the library as installed on
your system. If it doesn't, look into cmake/modules/FindQtKeychain.cmake and
debug it from there.

Hope to help ...

Cheers,



___
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud


Re: [Owncloud] Gentoo client linking problem

2014-01-07 Thread Sebastian Kügler
Hi,

On Tuesday, January 07, 2014 09:02:58 Klaas Freitag wrote:
> On 04.01.2014 18:41, Peter Humphrey wrote:
> > I've installed ownCloud on my LAN server and it seems to run OK. Now I
> > want to build the client on my workstation but the linker falls over with
> > these errors:
> > 
> > Linking CXX executable ../bin/owncloud
> > libowncloudsync.so.1.5.0: undefined reference to
> > `QKeychain::WritePasswordJob::setKey(QString const&)'
> 
> You seem to miss the libqtkeychain. Maybe it is not in the standard 
> search path for libs?
> 
> Try to call ldd ../bin/owncloud and check its output, it will show the 
> libs its using.
> 
> If your libqtkeychain is not installed in standard path, you can use 
> LD_LIBRARY_PATH environment variable:
> LD_LIBRARY_PATH=/path/to/libqtkeychain/ ../bin/owncloud

As I understand, it's a build problem, not a runtime problem, so there is no 
bin/owncloud.

>From looking at the CMakeLists.txt file, it should fail if the library isn't 
found, but it doesn't, so it seems to find it "to some degree", but then bails 
out when actually linking against it.

You can debug it like this, roughly:

message("qtkeychain:  ${QTKEYCHAIN_FOUND}  ${QTKEYCHAIN_LIBRARY} ")

This should return true (or 1) and the name of the library as installed on 
your system. If it doesn't, look into cmake/modules/FindQtKeychain.cmake and 
debug it from there.

Hope to help ...

Cheers,
-- 
sebas

http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9
___
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud


Re: [Owncloud] Gentoo client linking problem

2014-01-07 Thread Klaas Freitag

On 04.01.2014 18:41, Peter Humphrey wrote:

Hello list,

I've installed ownCloud on my LAN server and it seems to run OK. Now I want to
build the client on my workstation but the linker falls over with these
errors:

Linking CXX executable ../bin/owncloud
libowncloudsync.so.1.5.0: undefined reference to
`QKeychain::WritePasswordJob::setKey(QString const&)'


You seem to miss the libqtkeychain. Maybe it is not in the standard 
search path for libs?


Try to call ldd ../bin/owncloud and check its output, it will show the 
libs its using.


If your libqtkeychain is not installed in standard path, you can use 
LD_LIBRARY_PATH environment variable:

LD_LIBRARY_PATH=/path/to/libqtkeychain/ ../bin/owncloud

regards,

klaas


libowncloudsync.so.1.5.0: undefined reference to `QKeychain::Job::error()
const'
libowncloudsync.so.1.5.0: undefined reference to
`QKeychain::ReadPasswordJob::ReadPasswordJob(QString const&, QObject*)'
libowncloudsync.so.1.5.0: undefined reference to
`QKeychain::DeletePasswordJob::DeletePasswordJob(QString const&, QObject*)'
libowncloudsync.so.1.5.0: undefined reference to
`QKeychain::ReadPasswordJob::setKey(QString const&)'
libowncloudsync.so.1.5.0: undefined reference to `QKeychain::Job::errorString()
const'
libowncloudsync.so.1.5.0: undefined reference to
`QKeychain::ReadPasswordJob::textData() const'
libowncloudsync.so.1.5.0: undefined reference to
`QKeychain::Job::setInsecureFallback(bool)'
libowncloudsync.so.1.5.0: undefined reference to `QKeychain::Job::settings()
const'
libowncloudsync.so.1.5.0: undefined reference to
`QKeychain::DeletePasswordJob::setKey(QString const&)'
libowncloudsync.so.1.5.0: undefined reference to `QKeychain::Job::start()'
libowncloudsync.so.1.5.0: undefined reference to
`QKeychain::WritePasswordJob::setTextData(QString const&)'
libowncloudsync.so.1.5.0: undefined reference to
`QKeychain::WritePasswordJob::WritePasswordJob(QString const&, QObject*)'
libowncloudsync.so.1.5.0: undefined reference to
`QKeychain::Job::setSettings(QSettings*)'

I've tried Google but it returned nothing.

I have installed the qtkeychain package, which I think ought to include those
objects.

Can anyone see what I'm missing? I built ocsync and mirall directly under
/usr/local/src.



___
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud


Re: [Owncloud] Gentoo client linking problem

2014-01-06 Thread Peter Humphrey
On Monday 06 Jan 2014 13:21:28 Norman Rieß wrote:
> Am 05.01.2014 00:36, schrieb Peter Humphrey:
> > On Saturday 04 Jan 2014 17:41:19 I wrote:
> >> I have installed the qtkeychain package, which I think ought to include
> >> those objects.
> > 
> > I should have added that I regenerated /etc/ld.so.cache after doing that.
> 
> Why don't you use the ebuilds available in portage or the
> owncloud-client overlay?

For two reasons: because I want to run the client on my workstation, which 
doesn't have PHP, Apache etc installed, and because I didn't know about the 
overlay - thanks for the pointer.

-- 
Regards
Peter

___
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud


Re: [Owncloud] Gentoo client linking problem

2014-01-06 Thread Norman Rieß
Am 05.01.2014 00:36, schrieb Peter Humphrey:
> On Saturday 04 Jan 2014 17:41:19 I wrote:
> 
>> I have installed the qtkeychain package, which I think ought to include
>> those objects.
> 
> I should have added that I regenerated /etc/ld.so.cache after doing that.
> 


Why don't you use the ebuilds available in portage or the
owncloud-client overlay?

Norman
___
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud


Re: [Owncloud] Gentoo client linking problem

2014-01-04 Thread Peter Humphrey
On Saturday 04 Jan 2014 17:41:19 I wrote:

> I have installed the qtkeychain package, which I think ought to include
> those objects.

I should have added that I regenerated /etc/ld.so.cache after doing that.

-- 
Regards
Peter

___
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud