* undefined symbol error in qtbase
@ 2019-08-06 11:58 Hamzeh Nasajpour
2019-08-06 21:02 ` swedebugia
0 siblings, 1 reply; 10+ messages in thread
From: Hamzeh Nasajpour @ 2019-08-06 11:58 UTC (permalink / raw)
To: help-guix
Hi,
I want to package `trojita` for GuixSD. I created a package definition and it was build and installed successfully. When I run it I get the following error:
```
/gnu/store/890yw9i7lcjnnxhlza8r121352xp1hi-qtbase-5.11.3/lib/qt5/plugins/sqldrivers/libqsqlite.so: undefined symbol: sqlite3_column_table_name16
```
`trojita` is a mail client application that has a dependency to `qtbase`. I see that in `qtbase` package definition there is `sqlite-with-column-metadata` as a dependency, Apparently all is ok but I don't know the reason of this error. Do you have any idea?
Links:
* `qtbase` package definition : https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/qt.scm#n578
* `trojita` mail application : https://cgit.kde.org/trojita.git
* `sqlite` additional methods/apis : https://www.sqlite.org/c3ref/column_database_name.html
* `sqlite` package definition : https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/sqlite.scm#n107
Regards,
Hamzeh
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: undefined symbol error in qtbase
2019-08-06 11:58 undefined symbol error in qtbase Hamzeh Nasajpour
@ 2019-08-06 21:02 ` swedebugia
2019-08-07 6:03 ` Hamzeh Nasajpour
0 siblings, 1 reply; 10+ messages in thread
From: swedebugia @ 2019-08-06 21:02 UTC (permalink / raw)
To: Hamzeh Nasajpour, help-guix
hi!
On 2019-08-06 13:58, Hamzeh Nasajpour wrote:
> Hi,
>
> I want to package `trojita` for GuixSD. I created a package definition and it was build and installed successfully. When I run it I get the following error:
>
> ```
> /gnu/store/890yw9i7lcjnnxhlza8r121352xp1hi-qtbase-5.11.3/lib/qt5/plugins/sqldrivers/libqsqlite.so: undefined symbol: sqlite3_column_table_name16
>
> ```
>
> `trojita` is a mail client application that has a dependency to `qtbase`. I see that in `qtbase` package definition there is `sqlite-with-column-metadata` as a dependency, Apparently all is ok but I don't know the reason of this error. Do you have any idea?
>
> Links:
> * `qtbase` package definition : https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/qt.scm#n578
> * `trojita` mail application : https://cgit.kde.org/trojita.git
> * `sqlite` additional methods/apis : https://www.sqlite.org/c3ref/column_database_name.html
> * `sqlite` package definition : https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/sqlite.scm#n107
Could you share your package definition also?
--
Cheers Swedebugia
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: undefined symbol error in qtbase
2019-08-06 21:02 ` swedebugia
@ 2019-08-07 6:03 ` Hamzeh Nasajpour
2019-08-07 11:32 ` Ricardo Wurmus
0 siblings, 1 reply; 10+ messages in thread
From: Hamzeh Nasajpour @ 2019-08-07 6:03 UTC (permalink / raw)
To: swedebugia, help-guix
Hi,
Thank you for follow up. This is the package definition for `trojita`. (inspired from https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/mailreaders/trojita/default.nix)
```
(define-public trojita
(package
(name "trojita")
(version "0.7.0.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/KDE/trojita")
(commit "c5b39f51693ab5616e61e2e9454a526287b7df8d")))
(sha256
(base32 "1g3mbpb8m6hivyj6pmgqxqvms3bizdwiiy4fagn4kqrspl9ssssr"))
))
(build-system cmake-build-system)
(arguments
`(#:tests? #f))
(inputs `(
("qtbase", qtbase)
("qtwebkit", qtwebkit)
("qtsvg" ,qtsvg)))
(native-inputs `(
("pkg-config", pkg-config)
("qttools",qttools)))
(home-page "http://trojita.flaska.net")
(synopsis "A Qt IMAP e-mail client")
(description "A Qt IMAP e-mail client")
(license license:gpl2)))
```
On Wed, Aug 7, 2019, at 1:32 AM, swedebugia wrote:
> hi!
>
> On 2019-08-06 13:58, Hamzeh Nasajpour wrote:
> > Hi,
> >
> > I want to package `trojita` for GuixSD. I created a package definition and it was build and installed successfully. When I run it I get the following error:
> >
> > ```
> > /gnu/store/890yw9i7lcjnnxhlza8r121352xp1hi-qtbase-5.11.3/lib/qt5/plugins/sqldrivers/libqsqlite.so: undefined symbol: sqlite3_column_table_name16
> >
> > ```
> >
> > `trojita` is a mail client application that has a dependency to `qtbase`. I see that in `qtbase` package definition there is `sqlite-with-column-metadata` as a dependency, Apparently all is ok but I don't know the reason of this error. Do you have any idea?
> >
> > Links:
> > * `qtbase` package definition : https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/qt.scm#n578
> > * `trojita` mail application : https://cgit.kde.org/trojita.git
> > * `sqlite` additional methods/apis : https://www.sqlite.org/c3ref/column_database_name.html
> > * `sqlite` package definition : https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/sqlite.scm#n107
>
> Could you share your package definition also?
>
>
> --
> Cheers Swedebugia
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: undefined symbol error in qtbase
2019-08-07 6:03 ` Hamzeh Nasajpour
@ 2019-08-07 11:32 ` Ricardo Wurmus
2019-08-07 11:33 ` Ricardo Wurmus
0 siblings, 1 reply; 10+ messages in thread
From: Ricardo Wurmus @ 2019-08-07 11:32 UTC (permalink / raw)
To: Hamzeh Nasajpour; +Cc: help-guix
Hi Hamzeh,
> This is the package definition for `trojita` […]
I copied this to the bottom of qt.scm (didn’t want to have to adjust any
module imports) and built it just fine.
So it looks like nothing’s wrong.
I used the latest git checkout of Guix from the “master” branch.
Perhaps you’re using an older version?
--
Ricardo
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: undefined symbol error in qtbase
2019-08-07 11:32 ` Ricardo Wurmus
@ 2019-08-07 11:33 ` Ricardo Wurmus
2019-08-07 11:42 ` Hamzeh Nasajpour
0 siblings, 1 reply; 10+ messages in thread
From: Ricardo Wurmus @ 2019-08-07 11:33 UTC (permalink / raw)
To: Hamzeh Nasajpour; +Cc: help-guix
Ricardo Wurmus <rekado@elephly.net> writes:
>> This is the package definition for `trojita` […]
>
> I copied this to the bottom of qt.scm (didn’t want to have to adjust any
> module imports) and built it just fine.
>
> So it looks like nothing’s wrong.
Ah, well, the problem is with running the executable.
The problem appears to be that qtbase contains references to both sqlite
and sqlite-with-column-metadata. It should contain references to only
one of the two, preferably the one with column metadata.
--
Ricardo
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: undefined symbol error in qtbase
2019-08-07 11:33 ` Ricardo Wurmus
@ 2019-08-07 11:42 ` Hamzeh Nasajpour
2019-08-08 7:06 ` Hamzeh Nasajpour
0 siblings, 1 reply; 10+ messages in thread
From: Hamzeh Nasajpour @ 2019-08-07 11:42 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: help-guix
On Wed, Aug 7, 2019, at 4:04 PM, Ricardo Wurmus wrote:
>
> Ricardo Wurmus <rekado@elephly.net> writes:
>
> >> This is the package definition for `trojita` […]
> >
> > I copied this to the bottom of qt.scm (didn’t want to have to adjust any
> > module imports) and built it just fine.
> >
> > So it looks like nothing’s wrong.
>
> Ah, well, the problem is with running the executable.
>
> The problem appears to be that qtbase contains references to both sqlite
> and sqlite-with-column-metadata. It should contain references to only
> one of the two, preferably the one with column metadata.
>
> --
> Ricardo
>
>
Hi Ricardo,
Thanks for quick reply.
Yes, exactly, the problem is in running with this error:
> trojita: symbol lookup error: /gnu/store/890yw9i7lcjnnxhlza8r121352xp1hi-qtbase-5.11.3/lib/qt5/plugins/sqldrivers/libqsqlite.so: undefined symbol: sqlite3_column_table_name16
What's your idea/solution for it?
Regards,
Hamzeh
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: undefined symbol error in qtbase
2019-08-07 11:42 ` Hamzeh Nasajpour
@ 2019-08-08 7:06 ` Hamzeh Nasajpour
2019-08-08 8:12 ` Ricardo Wurmus
0 siblings, 1 reply; 10+ messages in thread
From: Hamzeh Nasajpour @ 2019-08-08 7:06 UTC (permalink / raw)
To: help-guix
Hi Ricardo,
> The problem appears to be that qtbase contains references to both sqlite
> and sqlite-with-column-metadata. It should contain references to only
> one of the two, preferably the one with column metadata.
Seems that `qtbase` has only one dependency to `sqlite-with-column-metadata` here:
https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/qt.scm#n578
Did you see the `qtbase` package definition? I don't see `sqlite` in it's package definition.
Regards,
Hamzeh
On Wed, Aug 7, 2019, at 4:13 PM, Hamzeh Nasajpour wrote:
>
>
> On Wed, Aug 7, 2019, at 4:04 PM, Ricardo Wurmus wrote:
> >
> > Ricardo Wurmus <rekado@elephly.net> writes:
> >
> > >> This is the package definition for `trojita` […]
> > >
> > > I copied this to the bottom of qt.scm (didn’t want to have to adjust any
> > > module imports) and built it just fine.
> > >
> > > So it looks like nothing’s wrong.
> >
> > Ah, well, the problem is with running the executable.
> >
> > The problem appears to be that qtbase contains references to both sqlite
> > and sqlite-with-column-metadata. It should contain references to only
> > one of the two, preferably the one with column metadata.
> >
> > --
> > Ricardo
> >
> >
>
> Hi Ricardo,
>
> Thanks for quick reply.
>
> Yes, exactly, the problem is in running with this error:
> > trojita: symbol lookup error: /gnu/store/890yw9i7lcjnnxhlza8r121352xp1hi-qtbase-5.11.3/lib/qt5/plugins/sqldrivers/libqsqlite.so: undefined symbol: sqlite3_column_table_name16
>
> What's your idea/solution for it?
>
> Regards,
> Hamzeh
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: undefined symbol error in qtbase
2019-08-08 7:06 ` Hamzeh Nasajpour
@ 2019-08-08 8:12 ` Ricardo Wurmus
2019-08-12 12:08 ` Hamzeh Nasajpour
0 siblings, 1 reply; 10+ messages in thread
From: Ricardo Wurmus @ 2019-08-08 8:12 UTC (permalink / raw)
To: Hamzeh Nasajpour; +Cc: help-guix
Hamzeh Nasajpour <h.nasajpour@pantherx.org> writes:
>> The problem appears to be that qtbase contains references to both sqlite
>> and sqlite-with-column-metadata. It should contain references to only
>> one of the two, preferably the one with column metadata.
>
> Seems that `qtbase` has only one dependency to `sqlite-with-column-metadata` here:
> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/qt.scm#n578
>
> Did you see the `qtbase` package definition? I don't see `sqlite` in it's package definition.
I wrote “references”; I meant the qtbase package closure. When you look
at “guix graph” for qtbase you’ll find other users of “sqlite”.
--
Ricardo
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: undefined symbol error in qtbase
2019-08-08 8:12 ` Ricardo Wurmus
@ 2019-08-12 12:08 ` Hamzeh Nasajpour
2019-08-12 12:51 ` Ricardo Wurmus
0 siblings, 1 reply; 10+ messages in thread
From: Hamzeh Nasajpour @ 2019-08-12 12:08 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: help-guix
Hi Ricardo,
Thanks for your help.
Now I repackage the `qtbase` and remove the `sqlite` from this line:
https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/qt.scm#n536
The problem resolved and the `trojita` installed and run successfully.
Regards,
Hamzeh
On Thu, Aug 8, 2019, at 12:42 PM, Ricardo Wurmus wrote:
>
> Hamzeh Nasajpour <h.nasajpour@pantherx.org> writes:
>
> >> The problem appears to be that qtbase contains references to both sqlite
> >> and sqlite-with-column-metadata. It should contain references to only
> >> one of the two, preferably the one with column metadata.
> >
> > Seems that `qtbase` has only one dependency to `sqlite-with-column-metadata` here:
> > https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/qt.scm#n578
> >
> > Did you see the `qtbase` package definition? I don't see `sqlite` in it's package definition.
>
> I wrote “references”; I meant the qtbase package closure. When you look
> at “guix graph” for qtbase you’ll find other users of “sqlite”.
>
> --
> Ricardo
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: undefined symbol error in qtbase
2019-08-12 12:08 ` Hamzeh Nasajpour
@ 2019-08-12 12:51 ` Ricardo Wurmus
0 siblings, 0 replies; 10+ messages in thread
From: Ricardo Wurmus @ 2019-08-12 12:51 UTC (permalink / raw)
To: Hamzeh Nasajpour; +Cc: help-guix
Hamzeh Nasajpour <h.nasajpour@pantherx.org> writes:
> Now I repackage the `qtbase` and remove the `sqlite` from this line:
> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/qt.scm#n536
This would cause Qt to be built with a bundled variant of sqlite.
This doesn’t look like a solution we can adopt.
--
Ricardo
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2019-08-12 12:52 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-06 11:58 undefined symbol error in qtbase Hamzeh Nasajpour
2019-08-06 21:02 ` swedebugia
2019-08-07 6:03 ` Hamzeh Nasajpour
2019-08-07 11:32 ` Ricardo Wurmus
2019-08-07 11:33 ` Ricardo Wurmus
2019-08-07 11:42 ` Hamzeh Nasajpour
2019-08-08 7:06 ` Hamzeh Nasajpour
2019-08-08 8:12 ` Ricardo Wurmus
2019-08-12 12:08 ` Hamzeh Nasajpour
2019-08-12 12:51 ` Ricardo Wurmus
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.