* [PATCH] README requirements for debian sid to enable build of src/dbtest.c
@ 2018-04-16 14:04 Anatoly Pugachev
2018-04-17 15:23 ` Eryu Guan
0 siblings, 1 reply; 2+ messages in thread
From: Anatoly Pugachev @ 2018-04-16 14:04 UTC (permalink / raw)
To: fstests
Hello!
Please apply the following trivial patch to enable building of src/dbtest.c on
debian sid. Without installing mentioned below devel package, xfstests could
not be built, complaining:
xfstests-dev$ make
Building include
Building lib
Building ltp
Building src
[CC] dbtest
dbtest.c:28:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '!' token
bozo!
^
dbtest.c:41:3: warning: data definition has no type or storage class
} myDB;
^~~~
dbtest.c:41:3: warning: type defaults to 'int' in declaration of 'myDB' [-Wimplicit-int]
Thanks.
Signed-off-by: Anatoly Pugachev <matorola@gmail.com>
---
README | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README b/README
index 50c68afa..8b7849bc 100644
--- a/README
+++ b/README
@@ -7,8 +7,8 @@ _______________________
For example, for Ubuntu:
sudo apt-get install xfslibs-dev uuid-dev libtool-bin \
e2fsprogs automake gcc libuuid1 quota attr libattr1-dev make \
- libacl1-dev libaio-dev xfsprogs libgdbm-dev gawk fio dbench \
- uuid-runtime python sqlite3
+ libacl1-dev libaio-dev xfsprogs libgdbm-dev libgdbm-compat-dev \
+ gawk fio dbench uuid-runtime python sqlite3
For Fedora, RHEL, or CentOS:
yum install acl attr automake bc dbench dump e2fsprogs fio \
gawk gcc indent libtool lvm2 make psmisc quota sed \
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] README requirements for debian sid to enable build of src/dbtest.c
2018-04-16 14:04 [PATCH] README requirements for debian sid to enable build of src/dbtest.c Anatoly Pugachev
@ 2018-04-17 15:23 ` Eryu Guan
0 siblings, 0 replies; 2+ messages in thread
From: Eryu Guan @ 2018-04-17 15:23 UTC (permalink / raw)
To: Anatoly Pugachev; +Cc: fstests
On Mon, Apr 16, 2018 at 05:04:30PM +0300, Anatoly Pugachev wrote:
> Hello!
>
> Please apply the following trivial patch to enable building of src/dbtest.c on
> debian sid. Without installing mentioned below devel package, xfstests could
> not be built, complaining:
>
> xfstests-dev$ make
> Building include
> Building lib
> Building ltp
> Building src
> [CC] dbtest
> dbtest.c:28:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '!' token
> bozo!
> ^
> dbtest.c:41:3: warning: data definition has no type or storage class
> } myDB;
> ^~~~
> dbtest.c:41:3: warning: type defaults to 'int' in declaration of 'myDB' [-Wimplicit-int]
I don't see this build error if I have only libgdbm-dev installed on
debian sid, dbtest just doesn't get built.
But there's no such problem on debian stretch. It seems like that debian
sid moves dbm_(open|close|restore) symbols from package libgdbm to
package libgdbm-compat, which is a new package in sid and not available
in stretch.
>
> Thanks.
>
> Signed-off-by: Anatoly Pugachev <matorola@gmail.com>
> ---
> README | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/README b/README
> index 50c68afa..8b7849bc 100644
> --- a/README
> +++ b/README
> @@ -7,8 +7,8 @@ _______________________
> For example, for Ubuntu:
> sudo apt-get install xfslibs-dev uuid-dev libtool-bin \
> e2fsprogs automake gcc libuuid1 quota attr libattr1-dev make \
> - libacl1-dev libaio-dev xfsprogs libgdbm-dev gawk fio dbench \
> - uuid-runtime python sqlite3
> + libacl1-dev libaio-dev xfsprogs libgdbm-dev libgdbm-compat-dev \
> + gawk fio dbench uuid-runtime python sqlite3
So this command will fail on debian stretch (or other earlier releases)
as there's no libgdbm-compat-dev package. Not a big problem, but a bit
annoying, I think.
I'm wondering if we just convert src/dbtest.c to use the gdbm_ functions
instead of the dbm_ ones (and perhaps we can simplify
m4/package_gdbmdev.m4 file too)? Though it's not a trivial replacement..
Thanks,
Eryu
> For Fedora, RHEL, or CentOS:
> yum install acl attr automake bc dbench dump e2fsprogs fio \
> gawk gcc indent libtool lvm2 make psmisc quota sed \
> --
> To unsubscribe from this list: send the line "unsubscribe fstests" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-17 15:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-16 14:04 [PATCH] README requirements for debian sid to enable build of src/dbtest.c Anatoly Pugachev
2018-04-17 15:23 ` Eryu Guan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox