Project

General

Profile

Actions

Bug #1022

closed

babeltrace 1.3.2 won't compile under RHEL/CentOS 7.2

Added by Daniel U. Thibault almost 8 years ago. Updated about 4 years ago.

Status:
Invalid
Priority:
High
Assignee:
-
Category:
-
Target version:
Start date:
06/09/2016
Due date:
% Done:

0%

Estimated time:

Description

babeltrace-1.3.2-c551f7a
RHEL 7.2 (64-bit) Red Hat Enterprise Linux Server release 7.2 (Maipo)
kernel 3.10.0-327.el7.x86_64

gcc 4.8.5-4
glibc-devel
glib2-devel
uuid-devel
popt-devel 1.13-16
python33
python33-python-devel
swig 2.0.10
automake 1.13.4
autoconf 2.69
autoheader 2.69
libtool 2.4.2
Flex 2.5.37
Bison 2.7
asciidoc 8.6.8-5
xmlto 0.0.25-7
perl 5.16.3
libxml2-devel 2.9.1-6
java-1.8.0-openjdk-devel
log4j

There were some difficulties with lttng-tools and uuid-devel, which I solved by creating these two symbolic links:
# ln -s /usr/lib64/libuuid.so.1.3.0 /usr/local/lib/libuuid.so
# mkdir /usr/include/uuid; ln -s /usr/include/uuid.h /usr/include/uuid/uuid.h

There were oodles of warnings about "implicit declaration of function uuid_generate" but lttng-tools otherwise completed normally.

All steps (bootstrap, configure, make, install) were done with 'scl enable python33 --' as a prefix to ensure Python 3.3. (Fancy footwork is required to get this config to pass to the sudo make install, but that's not germane to the babeltrace problem, which occurs during the unprivileged make).

With babeltrace, after some warnings we eventually get "error: too few arguments to function 'uuid_compare'":

[...]
make[3]: Entering directory `/usr/src/babeltrace-1.3.2-c551f7a/lib'
  CC       babeltrace.lo
  CC       iterator.lo
In file included from ../include/babeltrace/ctf-ir/metadata.h:36:0,
                 from ../include/babeltrace/ctf/metadata.h:33,
                 from iterator.c:36:
../include/babeltrace/compat/uuid.h: In function 'bt_uuid_generate':
../include/babeltrace/compat/uuid.h:38:2: warning: implicit declaration of function 'uuid_generate' [-Wimplicit-function-declaration]
  uuid_generate(uuid_out);
  ^
../include/babeltrace/compat/uuid.h: In function 'bt_uuid_unparse':
../include/babeltrace/compat/uuid.h:68:2: warning: implicit declaration of function 'uuid_unparse' [-Wimplicit-function-declaration]
  uuid_unparse(uuid_in, str_out);
  ^
../include/babeltrace/compat/uuid.h: In function 'bt_uuid_parse':
../include/babeltrace/compat/uuid.h:75:2: warning: implicit declaration of function 'uuid_parse' [-Wimplicit-function-declaration]
  return uuid_parse(str_in, uuid_out);
  ^
../include/babeltrace/compat/uuid.h: In function 'bt_uuid_compare':
../include/babeltrace/compat/uuid.h:82:2: warning: passing argument 1 of 'uuid_compare' from incompatible pointer type [enabled by default]
  return uuid_compare(uuid_a, uuid_b);
  ^
In file included from ../include/babeltrace/compat/uuid.h:33:0,
                 from ../include/babeltrace/ctf-ir/metadata.h:36,
                 from ../include/babeltrace/ctf/metadata.h:33,
                 from iterator.c:36:
/usr/include/uuid.h:107:22: note: expected 'const struct uuid_t *' but argument is of type 'const unsigned char *'
 extern uuid_rc_t     uuid_compare  (const uuid_t  *_uuid, const uuid_t *_uuid2, int *_result);
                      ^
In file included from ../include/babeltrace/ctf-ir/metadata.h:36:0,
                 from ../include/babeltrace/ctf/metadata.h:33,
                 from iterator.c:36:
../include/babeltrace/compat/uuid.h:82:2: warning: passing argument 2 of 'uuid_compare' from incompatible pointer type [enabled by default]
  return uuid_compare(uuid_a, uuid_b);
  ^
In file included from ../include/babeltrace/compat/uuid.h:33:0,
                 from ../include/babeltrace/ctf-ir/metadata.h:36,
                 from ../include/babeltrace/ctf/metadata.h:33,
                 from iterator.c:36:
/usr/include/uuid.h:107:22: note: expected 'const struct uuid_t *' but argument is of type 'const unsigned char *'
 extern uuid_rc_t     uuid_compare  (const uuid_t  *_uuid, const uuid_t *_uuid2, int *_result);
                      ^
In file included from ../include/babeltrace/ctf-ir/metadata.h:36:0,
                 from ../include/babeltrace/ctf/metadata.h:33,
                 from iterator.c:36:
../include/babeltrace/compat/uuid.h:82:2: error: too few arguments to function 'uuid_compare'
  return uuid_compare(uuid_a, uuid_b);
  ^
In file included from ../include/babeltrace/compat/uuid.h:33:0,
                 from ../include/babeltrace/ctf-ir/metadata.h:36,
                 from ../include/babeltrace/ctf/metadata.h:33,
                 from iterator.c:36:
/usr/include/uuid.h:107:22: note: declared here
 extern uuid_rc_t     uuid_compare  (const uuid_t  *_uuid, const uuid_t *_uuid2, int *_result);
                      ^
make[3]: *** [iterator.lo] Error 1
make[3]: Leaving directory `/usr/src/babeltrace-1.3.2-c551f7a/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/babeltrace-1.3.2-c551f7a/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/babeltrace-1.3.2-c551f7a'
make: *** [all] Error 2

The logs are attached.

(Note that there is no Babeltrace 1.3 choice in the bug-submission form's Target version drop-down)


Files

configure.log (10.3 KB) configure.log Daniel U. Thibault, 06/09/2016 12:36 PM
bootstrap.log (1.22 KB) bootstrap.log Daniel U. Thibault, 06/09/2016 12:36 PM
make.log (4.7 KB) make.log Daniel U. Thibault, 06/09/2016 12:36 PM
Actions #1

Updated by Jonathan Rajotte Julien about 4 years ago

  • Status changed from New to Invalid

State of babeltrace moved a lot since.

Closing this ticket as invalid. Reopen it if it stills apply to Babeltrace 2.

Actions

Also available in: Atom PDF