[lttng-dev] make lttng-ust

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Tue May 7 09:22:10 EDT 2013


* Thibault, Daniel (Daniel.Thibault at drdc-rddc.gc.ca) wrote:
>    The last few times I rebuilt the lttng-ust package, make's log contains some ominous complaints, although it seems to nevertheless complete normally.  Here's an excerpt:
> 
> ########## Begin ##########
> CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/daniel/git.lttng.org/lttng-ust-2.1.1+-ac6b4ac/config/missing --run aclocal-1.11 -I config
>  cd . && /bin/bash /home/daniel/git.lttng.org/lttng-ust-2.1.1+-ac6b4ac/config/missing --run automake-1.11 --foreign
> CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/daniel/git.lttng.org/lttng-ust-2.1.1+-ac6b4ac/config/missing --run autoconf
> /bin/bash ./config.status --recheck
> running CONFIG_SHELL=/bin/bash /bin/bash ./configure --with-java-jdk=/usr/lib/jvm/java-1.7.0-openjdk-amd64 --with-jni-interface LDFLAGS=-L/usr/local/lib --no-create --no-recursion
> checking build system type... x86_64-unknown-linux-gnu
> [...]
> checking for jni.h... yes
> configure: creating ./config.status
> 
> Version name: Basse Messe
> Light coloured German ale whose style was named after the city Cologne (Koln) where it was first brewed. It is a rather simple beer with lightly fruity aromas and a delicate hoppy fragrance. The beer has a pronounced malty taste with a subtle bitter aftertaste
> 
> LTTng-UST will be built with the following options:
> 
> Java support (JNI): Enabled
> sdt.h integration:  Disabled
> 
> Type 'make' to compile.
>  /bin/bash ./config.status
> config.status: creating Makefile
> [...]
> config.status: executing libtool commands
> (CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/daniel/git.lttng.org/lttng-ust-2.1.1+-ac6b4ac/config/missing --run autoheader)
> rm -f stamp-h1
> touch config.h.in
> cd . && /bin/bash ./config.status config.h
> config.status: creating config.h
> config.status: config.h is unchanged
> make  all-recursive
> make[1]: entrant dans le répertoire « /home/daniel/git.lttng.org/lttng-ust-2.1.1+-ac6b4ac »
> Making all in .
> [...]
> Making all in libringbuffer
> make[2]: entrant dans le répertoire « /home/daniel/git.lttng.org/lttng-ust-2.1.1+-ac6b4ac/libringbuffer »
>   CC     libringbuffer_la-smp.lo
>   CC     libringbuffer_la-shm.lo
> shm.c: In function '_shm_object_table_alloc_shm':
> shm.c:148:9: warning: ignoring return value of 'mktemp', declared with attribute warn_unused_result [-Wunused-result]

Fixed by:

commit af21f7816739b0f9db8b4006ef4378ddc2de0157
Author: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
Date:   Tue May 7 09:16:39 2013 -0400

    Cleanup: ignore mktemp return value
    
    Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>

>   CC     libringbuffer_la-ring_buffer_backend.lo
>   CC     libringbuffer_la-ring_buffer_frontend.lo
>   CCLD   libringbuffer.la
> make[2]: quittant le répertoire « /home/daniel/git.lttng.org/lttng-ust-2.1.1+-ac6b4ac/libringbuffer »
> [...]
> Making all in hello
> make[3]: entrant dans le répertoire « /home/daniel/git.lttng.org/lttng-ust-2.1.1+-ac6b4ac/tests/hello »
>   CC     hello-hello.o
> In file included from /usr/include/x86_64-linux-gnu/sys/socket.h:40:0,
>                  from /usr/include/netinet/in.h:25,
>                  from /usr/include/arpa/inet.h:23,
>                  from hello.c:29:
> /usr/include/x86_64-linux-gnu/bits/socket.h:433:23: attention : 'struct mmsghdr' declared inside parameter list [enabled by default]
> /usr/include/x86_64-linux-gnu/bits/socket.h:433:23: attention : visible uniquement depuis cette définition ou déclaration, ce qui n'est probablement pas ce que vous désirez [enabled by default]
> /usr/include/x86_64-linux-gnu/bits/socket.h:440:8: attention : 'struct mmsghdr' declared inside parameter list [enabled by default]

These are caused by missing "struct mmsghdr" declarations in system
headers. The reason why we see those is because we need to use
-Wsystem-headers when compiling tracepoint probe providers.

Thanks,

Mathieu

>   CC     hello-tp.o
>   CCLD   hello
> make[3]: quittant le répertoire « /home/daniel/git.lttng.org/lttng-ust-2.1.1+-ac6b4ac/tests/hello »
> Making all in hello-static-lib
> make[3]: entrant dans le répertoire « /home/daniel/git.lttng.org/lttng-ust-2.1.1+-ac6b4ac/tests/hello-static-lib »
>   CC     tp.lo
>   CCLD   liblttng-ust-provider-ust-test-hello.la
>   CC     hello.o
> In file included from /usr/include/x86_64-linux-gnu/sys/socket.h:40:0,
>                  from /usr/include/netinet/in.h:25,
>                  from /usr/include/arpa/inet.h:23,
>                  from hello.c:29:
> /usr/include/x86_64-linux-gnu/bits/socket.h:433:23: attention : 'struct mmsghdr' declared inside parameter list [enabled by default]
> /usr/include/x86_64-linux-gnu/bits/socket.h:433:23: attention : visible uniquement depuis cette définition ou déclaration, ce qui n'est probablement pas ce que vous désirez [enabled by default]
> /usr/include/x86_64-linux-gnu/bits/socket.h:440:8: attention : 'struct mmsghdr' declared inside parameter list [enabled by default]
>   CCLD   hello
> make[3]: quittant le répertoire « /home/daniel/git.lttng.org/lttng-ust-2.1.1+-ac6b4ac/tests/hello-static-lib »
> [...]
> Making all in demo
> make[3]: entrant dans le répertoire « /home/daniel/git.lttng.org/lttng-ust-2.1.1+-ac6b4ac/tests/demo »
>   CC     tp.lo
>   CC     tp2.lo
>   CCLD   liblttng-ust-provider-ust-tests-demo.la
>   CC     tp3.lo
>   CCLD   liblttng-ust-provider-ust-tests-demo3.la
>   CC     demo.o
> In file included from /usr/include/x86_64-linux-gnu/sys/socket.h:40:0,
>                  from /usr/include/netinet/in.h:25,
>                  from /usr/include/arpa/inet.h:23,
>                  from demo.c:29:
> /usr/include/x86_64-linux-gnu/bits/socket.h:433:23: attention : 'struct mmsghdr' declared inside parameter list [enabled by default]
> /usr/include/x86_64-linux-gnu/bits/socket.h:433:23: attention : visible uniquement depuis cette définition ou déclaration, ce qui n'est probablement pas ce que vous désirez [enabled by default]
> /usr/include/x86_64-linux-gnu/bits/socket.h:440:8: attention : 'struct mmsghdr' declared inside parameter list [enabled by default]
>   CCLD   demo
> make[3]: quittant le répertoire « /home/daniel/git.lttng.org/lttng-ust-2.1.1+-ac6b4ac/tests/demo »
> [...]
> make[1]: quittant le répertoire « /home/daniel/git.lttng.org/lttng-ust-2.1.1+-ac6b4ac »
> ########## End ##########
> 
>    Is all this normal?  I used the following script:
> 
> $ ./bootstrap &> bootstrap.log
> $ LDFLAGS=-L/usr/local/lib ./configure --with-java-jdk=/usr/lib/jvm/java-1.7.0-openjdk-amd64 --with-jni-interface &> configure.log
> $ make &> make.log
> 
> Daniel U. Thibault
> R & D pour la défense Canada - Valcartier (RDDC Valcartier) / Defence R&D Canada - Valcartier (DRDC Valcartier)
> Cyber sécurité pour les missions essentielles (CME) / Mission Critical Cyber Security (MCCS)
> Protection des systèmes et contremesures (PSC) / Systems Protection & Countermeasures (SPC)
> 2459 route de la Bravoure
> Québec, QC  G3J 1X5
> CANADA
> Vox : (418) 844-4000 x4245
> Fax : (418) 844-4538
> NAC : 918V QSDJ <http://www.travelgis.com/map.asp?addr=918V%20QSDJ>
> Gouvernement du Canada / Government of Canada
> <http://www.valcartier.drdc-rddc.gc.ca/>
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list