Skip to contentSkip to conversation

help wanted add-node41.patch fails to apply to reiser4progs version 1.0.9

DISCUSSION [email protected] 4 participants 10 messages Feb 19, 2015 – Feb 20, 2015

lore
Share & tools
lore
#0 lore raw

Hello,
- I tried a build of reiser4progs with add-node41.patch and it fails. Help wanted to get it to compile.
--Glenn

spec shows:
==========

Patch0: add-node41.patch
.
.
%patch0 -p1

The build log shows:
===================

[ 63s] checking for libaal-minimal version = 1.0.6... yes
.
.
[ 73s] make[3]: Entering directory
`/home/abuild/rpmbuild/BUILD/reiser4progs-1.0.9/progs/mkfs'
[ 73s] gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -D_REENTRANT
-D_FILE_OFFSET_BITS=64 -DENABLE_SYMLINKS -DENABLE_SPECIAL -DENABLE_R5_HASH -DENABLE_FNV1_HASH -DENABLE_RUPASOV_HASH -DENABLE_TEA_HASH -DENABLE_DEG_HASH -DENABLE_LARGE_KEYS -DENABLE_SHORT_KEYS -DENABLE_DOT_O_FIBRE -DENABLE_EXT_1_FIBRE -DENABLE_EXT_3_FIBRE -DENABLE_LEXIC_FIBRE -O3 -fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -W -Wall -Wuninitialized -Wno-unused-parameter -Wredundant-decls -c -o mkfs_reiser4-mkfs.o test -f 'mkfs.c' || echo './'mkfs.c
[ 73s] mkfs.c: In function 'main':
[ 73s] mkfs.c:210:5: warning: pointer targets in passing argument 2 of
'uuid_parse' differ in signedness [-Wpointer-sign]

[   73s]      if (uuid_parse(optarg, hint.uuid) < 0) {
[   73s]      ^
[   73s] In file included from mkfs.c:11:0:
[   73s] /usr/include/uuid/uuid.h:88:5: note: expected 'unsigned char *'
but argument is of type 'char *'
[   73s]  int uuid_parse(const char *in, uuid_t uu);
[   73s]      ^
[   73s] mkfs.c:409:3: warning: pointer targets in passing argument 1 of
'uuid_is_null' differ in signedness [-Wpointer-sign]
[   73s]    if (uuid_is_null(hint.uuid)) {
[   73s]    ^
[   73s] In file included from mkfs.c:11:0:
[   73s] /usr/include/uuid/uuid.h:85:5: note: expected 'const unsigned
char *' but argument is of type 'char *'
[   73s]  int uuid_is_null(const uuid_t uu);
[   73s]      ^
[   73s] mkfs.c:410:4: warning: pointer targets in passing argument 1 of
'uuid_generate' differ in signedness [-Wpointer-sign]
[   73s]     uuid_generate(hint.uuid);
[   73s]     ^
[   73s] In file included from mkfs.c:11:0:
[   73s] /usr/include/uuid/uuid.h:79:6: note: expected 'unsigned char *'
but argument is of type 'char *'
[   73s]  void uuid_generate(uuid_t out);
[   73s]       ^
[   73s] mkfs.c:416:4: warning: pointer targets in passing argument 1 of
'uuid_unparse' differ in signedness [-Wpointer-sign]
[   73s]     uuid_unparse(hint.uuid, uuid);
[   73s]     ^
[   73s] In file included from mkfs.c:11:0:
[   73s] /usr/include/uuid/uuid.h:91:6: note: expected 'const unsigned
char *' but argument is of type 'char *'
[   73s]  void uuid_unparse(const uuid_t uu, char *out);
[   73s]       ^
[   74s] /bin/sh ../../libtool  --tag=CC   --mode=link gcc -D_REENTRANT

-D_FILE_OFFSET_BITS=64 -DENABLE_SYMLINKS -DENABLE_SPECIAL -DENABLE_R5_HASH -DENABLE_FNV1_HASH -DENABLE_RUPASOV_HASH -DENABLE_TEA_HASH -DENABLE_DEG_HASH -DENABLE_LARGE_KEYS -DENABLE_SHORT_KEYS -DENABLE_DOT_O_FIBRE -DENABLE_EXT_1_FIBRE -DENABLE_EXT_3_FIBRE -DENABLE_LEXIC_FIBRE -O3 -fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -W -Wall -Wuninitialized
-Wno-unused-parameter -Wredundant-decls -o mkfs.reiser4
mkfs_reiser4-mkfs.o ../../libreiser4/libreiser4.la ../../libmisc/libmisc.la -lreadline -lncurses
[ 74s] libtool: link: gcc -D_REENTRANT -D_FILE_OFFSET_BITS=64
-DENABLE_SYMLINKS -DENABLE_SPECIAL -DENABLE_R5_HASH -DENABLE_FNV1_HASH -DENABLE_RUPASOV_HASH -DENABLE_TEA_HASH -DENABLE_DEG_HASH -DENABLE_LARGE_KEYS -DENABLE_SHORT_KEYS -DENABLE_DOT_O_FIBRE -DENABLE_EXT_1_FIBRE -DENABLE_EXT_3_FIBRE -DENABLE_LEXIC_FIBRE -O3 -fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -W -Wall -Wuninitialized -Wno-unused-parameter -Wredundant-decls -o .libs/mkfs.reiser4 mkfs_reiser4-mkfs.o ../../libreiser4/.libs/libreiser4.so ../../libmisc/.libs/libmisc.a -laal -luuid -lreadline -lncurses
[ 74s] ../../libreiser4/.libs/libreiser4.so: undefined reference to
`node41_plug'

[   74s] collect2: error: ld returned 1 exit status
[   74s] make[3]: *** [mkfs.reiser4] Error 1
[   74s] make[3]: Leaving directory

`/home/abuild/rpmbuild/BUILD/reiser4progs-1.0.9/progs/mkfs'
[ 74s] make[2]: *** [all-recursive] Error 1
[ 74s] make[2]: Leaving directory
`/home/abuild/rpmbuild/BUILD/reiser4progs-1.0.9/progs'
[ 74s] make[1]: *** [all-recursive] Error 1
[ 74s] make[1]: Leaving directory
`/home/abuild/rpmbuild/BUILD/reiser4progs-1.0.9'

[   74s] make: *** [all] Error 2
[   74s] error: Bad exit status from /var/tmp/rpm-tmp.knziYl (%build)
[   74s] 

-The full [long] log is at:
https://build.opensuse.org/build/home:doiggl/openSUSE_13.1/x86_64/reiser4progs/_log

- spec file is at:
https://build.opensuse.org/package/view_file/home:doiggl/reiser4progs/reiser4progs.spec?expand=1

- project:
https://build.opensuse.org/package/show/home:doiggl/reiser4progs

#2 lore raw
Quoted 10 lines · On Thu, Feb 19, 2015 at 4:40 AM, <[email protected]> wrote:

Hello
To find a lot of pointer warnings

-search for the word " pointer "

in the build log at:

https://build.opensuse.org/build/home:doiggl/openSUSE_13.1/x86_64/reiser4progs/_log

--Glenn

Please, do *follow* the steps outlined AND then worry about the 'pointer' warnings ;-)

Signature · 7 lines
Jose R R
http://www.metztli-it.com
---------------------------------------------------------------------------------------------
Try at no charge http://b2evolution.net for http://OpenShift.com PaaS
---------------------------------------------------------------------------------------------
from our GitHub http://Nepohualtzintzin.com repository. Cloud the easy way!
---------------------------------------------------------------------------------------------
#3 lore raw
In reply to [email protected]
Quoted 87 lines · On Thu, Feb 19, 2015 at 4:02 AM, <[email protected]> wrote:

Hello,
- I tried a build of reiser4progs with add-node41.patch and it fails. Help wanted to get it to compile.
--Glenn

spec shows:
==========

Patch0: add-node41.patch
.
.
%patch0 -p1

The build log shows:
===================

[ 63s] checking for libaal-minimal version = 1.0.6... yes
.
.
[ 73s] make[3]: Entering directory
`/home/abuild/rpmbuild/BUILD/reiser4progs-1.0.9/progs/mkfs'
[ 73s] gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -D_REENTRANT

(quoted diff) +0 -8
-D_FILE_OFFSET_BITS=64 -DENABLE_SYMLINKS -DENABLE_SPECIAL -DENABLE_R5_HASH
-DENABLE_FNV1_HASH -DENABLE_RUPASOV_HASH -DENABLE_TEA_HASH
-DENABLE_DEG_HASH -DENABLE_LARGE_KEYS -DENABLE_SHORT_KEYS
-DENABLE_DOT_O_FIBRE -DENABLE_EXT_1_FIBRE -DENABLE_EXT_3_FIBRE
-DENABLE_LEXIC_FIBRE -O3 -fmessage-length=0 -grecord-gcc-switches
-fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables
-fasynchronous-unwind-tables -g -W -Wall -Wuninitialized
-Wno-unused-parameter -Wredundant-decls -c -o mkfs_reiser4-mkfs.o `test -f

'mkfs.c' || echo './'`mkfs.c
[ 73s] mkfs.c: In function 'main':
[ 73s] mkfs.c:210:5: warning: pointer targets in passing argument 2 of
'uuid_parse' differ in signedness [-Wpointer-sign]

[   73s]      if (uuid_parse(optarg, hint.uuid) < 0) {
[   73s]      ^
[   73s] In file included from mkfs.c:11:0:
[   73s] /usr/include/uuid/uuid.h:88:5: note: expected 'unsigned char *'
but argument is of type 'char *'
[   73s]  int uuid_parse(const char *in, uuid_t uu);
[   73s]      ^
[   73s] mkfs.c:409:3: warning: pointer targets in passing argument 1 of
'uuid_is_null' differ in signedness [-Wpointer-sign]
[   73s]    if (uuid_is_null(hint.uuid)) {
[   73s]    ^
[   73s] In file included from mkfs.c:11:0:
[   73s] /usr/include/uuid/uuid.h:85:5: note: expected 'const unsigned
char *' but argument is of type 'char *'
[   73s]  int uuid_is_null(const uuid_t uu);
[   73s]      ^
[   73s] mkfs.c:410:4: warning: pointer targets in passing argument 1 of
'uuid_generate' differ in signedness [-Wpointer-sign]
[   73s]     uuid_generate(hint.uuid);
[   73s]     ^
[   73s] In file included from mkfs.c:11:0:
[   73s] /usr/include/uuid/uuid.h:79:6: note: expected 'unsigned char *'
but argument is of type 'char *'
[   73s]  void uuid_generate(uuid_t out);
[   73s]       ^
[   73s] mkfs.c:416:4: warning: pointer targets in passing argument 1 of
'uuid_unparse' differ in signedness [-Wpointer-sign]
[   73s]     uuid_unparse(hint.uuid, uuid);
[   73s]     ^
[   73s] In file included from mkfs.c:11:0:
[   73s] /usr/include/uuid/uuid.h:91:6: note: expected 'const unsigned
char *' but argument is of type 'char *'
[   73s]  void uuid_unparse(const uuid_t uu, char *out);
[   73s]       ^
[   74s] /bin/sh ../../libtool  --tag=CC   --mode=link gcc -D_REENTRANT
(quoted diff) +0 -8
-D_FILE_OFFSET_BITS=64 -DENABLE_SYMLINKS -DENABLE_SPECIAL -DENABLE_R5_HASH
-DENABLE_FNV1_HASH -DENABLE_RUPASOV_HASH -DENABLE_TEA_HASH
-DENABLE_DEG_HASH -DENABLE_LARGE_KEYS -DENABLE_SHORT_KEYS
-DENABLE_DOT_O_FIBRE -DENABLE_EXT_1_FIBRE -DENABLE_EXT_3_FIBRE
-DENABLE_LEXIC_FIBRE -O3 -fmessage-length=0 -grecord-gcc-switches
-fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables
-fasynchronous-unwind-tables -g -W -Wall -Wuninitialized
-Wno-unused-parameter -Wredundant-decls   -o mkfs.reiser4

mkfs_reiser4-mkfs.o ../../libreiser4/libreiser4.la ../../libmisc/libmisc.la -lreadline -lncurses
[ 74s] libtool: link: gcc -D_REENTRANT -D_FILE_OFFSET_BITS=64

(quoted diff) +0 -7
-DENABLE_SYMLINKS -DENABLE_SPECIAL -DENABLE_R5_HASH -DENABLE_FNV1_HASH
-DENABLE_RUPASOV_HASH -DENABLE_TEA_HASH -DENABLE_DEG_HASH
-DENABLE_LARGE_KEYS -DENABLE_SHORT_KEYS -DENABLE_DOT_O_FIBRE
-DENABLE_EXT_1_FIBRE -DENABLE_EXT_3_FIBRE -DENABLE_LEXIC_FIBRE -O3
-fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall
-D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -W
-Wall -Wuninitialized -Wno-unused-parameter -Wredundant-decls -o
Quoted 5 lines

.libs/mkfs.reiser4 mkfs_reiser4-mkfs.o ../../libreiser4/.libs/libreiser4.so ../../libmisc/.libs/libmisc.a -laal -luuid -lreadline -lncurses
[ 74s] ../../libreiser4/.libs/libreiser4.so: undefined reference to
`node41_plug'

Steps were:

autoreconf
./configure
make
make install

http://marc.info/?l=reiserfs-devel&m=142426774807698&w=2

thus, likely you overlooked the first directive -- as Ed suggested:

"try autoreconf before ./configure"

http://marc.info/?l=reiserfs-devel&m=142419259318629&w=2

Best Professional Regards.

Signature · 7 lines
Jose R R
http://www.metztli-it.com
---------------------------------------------------------------------------------------------
Try at no charge http://b2evolution.net for http://OpenShift.com PaaS
---------------------------------------------------------------------------------------------
from our GitHub http://Nepohualtzintzin.com repository. Cloud the easy way!
---------------------------------------------------------------------------------------------
#4 lore raw
Quoted 10 lines

Steps were:

autoreconf
./configure
make
make install

http://marc.info/?l=reiserfs-devel&m=142426774807698&w=2

Quoted 8 lines

thus, likely you overlooked the first directive -- as Ed suggested:

"try autoreconf before ./configure"

http://marc.info/?l=reiserfs-devel&m=142419259318629&w=2

Best Professional Regards.

Hello,
Interestingly the spec file needs to have in it somewhere to allow it to run:

autoreconf

This needs a BuildRequires: <packagename> to enable the command 'autoreconf' to run.
--Glenn

I got this in the spec file so far:

Patch0: add-node41.patch
.
.

%prep
%setup -q
%patch0 -p1
.
.

%build
#
# Disabling hashes only affects minimal library. The options are

# a recommendation from reiser4progs's shipped .spec file.
#
%configure --disable-static --enable-libminimal --disable-fnv1-hash \
	--disable-rupasov-hash --disable-tea-hash --disable-deg-hash
make %{?_smp_mflags}

-The full [long] log is at:
https://build.opensuse.org/build/home:doiggl/openSUSE_13.1/x86_64/reiser4progs/_log

- spec file is at:
https://build.opensuse.org/package/view_file/home:doiggl/reiser4progs/reiser4progs.spec?expand=1

- project:
https://build.opensuse.org/package/show/home:doiggl/reiser4progs

#5 lore raw
Quoted 19 lines · On Thu, Feb 19, 2015 at 6:01 AM, <[email protected]> wrote:
Quoted 10 lines

Steps were:

autoreconf
./configure
make
make install

http://marc.info/?l=reiserfs-devel&m=142426774807698&w=2

Quoted 8 lines

thus, likely you overlooked the first directive -- as Ed suggested:

"try autoreconf before ./configure"

http://marc.info/?l=reiserfs-devel&m=142419259318629&w=2

Best Professional Regards.

Quoted 8 lines

Hello,
Interestingly the spec file needs to have in it somewhere to allow it to run:

autoreconf

This needs a BuildRequires: <packagename> to enable the command 'autoreconf' to run.

I am not familiar with the OpenSuSE online build environment. Ask in their forums and/or read their documentation to figure out how to add the autoreconf directive so that your build can succeed.

Good luck!

Signature · 7 lines
Jose R R
http://www.metztli-it.com
---------------------------------------------------------------------------------------------
Try at no charge http://b2evolution.net for http://OpenShift.com PaaS
---------------------------------------------------------------------------------------------
from our GitHub http://Nepohualtzintzin.com repository. Cloud the easy way!
---------------------------------------------------------------------------------------------
#6 lore raw
In reply to [email protected]

as a workaround, you can diff source tree before and after running autoreconf and create a patch with what the latter brings (i guess, it modifies ./configure and ./makefile, or what else?). or even merge those changes at the beginning of original patch

Quoted 4 lines · 2015-051 01:01 [email protected] <[email protected]> wrote:

Hello,
Interestingly the spec file needs to have in it somewhere to allow it to run:
autoreconf

#7 lore raw
In reply to [email protected]

Hello,
Need to figure out the next bit in relation to autoreconf.

shows in buildlog as:
[ 83s] + autoreconf
[ 85s] aclocal: warning: autoconf input should be named 'configure.ac',
not 'configure.in'
[ 85s] configure.in:196: warning: macro 'AM_ENABLE_SHARED' not found in
library
[ 85s] configure.in:313: warning: macro 'AM_PROG_LIBTOOL' not found in
library

[1]
asked here:
http://lists.opensuse.org/opensuse-packaging/2015-02/msg00069.html

reply here:
http://lists.opensuse.org/opensuse-packaging/2015-02/msg00071.html

--Glenn

#8 lore raw

​So,​ what is your question? ​As you have been told, you've got libtool package missing.​

​I'd also say, when you get it installed, you'd better invoke autoreconf as

# autoreconf -if

Please also ignore numerous warnings about obsolete macro names, it has nothing to do with the patch in issue.

--
Regards.
Vladimir

Quoted 12 lines · On Fri, 2015-02-20 at 12:02 +1100, [email protected] wrote:

Hello,
Need to figure out the next bit in relation to autoreconf.

shows in buildlog as:
[ 83s] + autoreconf
[ 85s] aclocal: warning: autoconf input should be named 'configure.ac',
not 'configure.in'
[ 85s] configure.in:196: warning: macro 'AM_ENABLE_SHARED' not found in
library
[ 85s] configure.in:313: warning: macro 'AM_PROG_LIBTOOL' not found in
library

Quoted 8 lines

[1]
asked here:
http://lists.opensuse.org/opensuse-packaging/2015-02/msg00069.html

reply here:
http://lists.opensuse.org/opensuse-packaging/2015-02/msg00071.html

--Glenn

--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#9 lore raw

Hello,
Good News - Build succeeded. Report back to list if you find problems with built rpms.
-- Cheers Glenn

# added 2 lines to spec file  reiser4progs.spec
BuildRequires:  automake
BuildRequires:  libtool

-Built rpms
https://build.opensuse.org/package/binaries/home:doiggl/reiser4progs?repository=openSUSE_13.1

Architecture: i586

    libreiser4-1_0-9-1.0.9-56.1.i586.rpm
    libreiser4-1_0-9-debuginfo-1.0.9-56.1.i586.rpm
    libreiser4-minimal-1_0-9-1.0.9-56.1.i586.rpm
    libreiser4-minimal-1_0-9-debuginfo-1.0.9-56.1.i586.rpm
    librepair-1_0-9-1.0.9-56.1.i586.rpm
    librepair-1_0-9-debuginfo-1.0.9-56.1.i586.rpm
    reiser4progs-1.0.9-56.1.i586.rpm
    reiser4progs-1.0.9-56.1.src.rpm
    reiser4progs-debuginfo-1.0.9-56.1.i586.rpm
    reiser4progs-debugsource-1.0.9-56.1.i586.rpm
    reiser4progs-devel-1.0.9-56.1.i586.rpm

Repository has been published Architecture: x86_64

    libreiser4-1_0-9-1.0.9-56.1.x86_64.rpm
    libreiser4-1_0-9-debuginfo-1.0.9-56.1.x86_64.rpm
    libreiser4-minimal-1_0-9-1.0.9-56.1.x86_64.rpm
    libreiser4-minimal-1_0-9-debuginfo-1.0.9-56.1.x86_64.rpm
    librepair-1_0-9-1.0.9-56.1.x86_64.rpm
    librepair-1_0-9-debuginfo-1.0.9-56.1.x86_64.rpm
    reiser4progs-1.0.9-56.1.src.rpm
    reiser4progs-1.0.9-56.1.x86_64.rpm
    reiser4progs-debuginfo-1.0.9-56.1.x86_64.rpm
    reiser4progs-debugsource-1.0.9-56.1.x86_64.rpm
    reiser4progs-devel-1.0.9-56.1.x86_64.rpm

Full Build Log:
https://build.opensuse.org/build/home:doiggl/openSUSE_13.2/x86_64/reiser4progs/_log

Package:
https://build.opensuse.org/package/show/home:doiggl/reiser4progs