[vz-dev] vzlogger build auf Travis?

Andreas Goetz cpuidle at gmail.com
Sun May 25 17:06:55 CEST 2014


Update: es ist mir gelungen auch libsml zu bauen, allerdings nur mit dem
development Branch von https://github.com/TheCount/libsml, nicht mit der
unter
http://wiki.volkszaehler.org/software/controller/vzlogger/installation_cpp-versionverlinkten
Version.

Wenn Interesse besteht könnten wir damit den Build Prozess im git
integrieren- wie wär's?

vg
Andreas



On Sun, May 25, 2014 at 4:46 PM, Andreas Goetz <cpuidle at gmail.com> wrote:

> Hallo Zusammen,
>
> ich hatte überlegt, vzlogger automatisch bei Travis compilieren zu lassen
> wenn neue PRs anstehen. Leider schaffe ich es nicht, die Voraussetzungen zu
> installieren, konkret scheitere ich am build von libsml:
>
> $ export CXX=g++
> $ export CC=gcc
> git.1
> $ git clone --depth=50 --branch=build git://github.com/andig/vzlogger.gitandig/vzlogger
> $ cd andig/vzlogger
> git.3
> $ git checkout -qf 568f3cca66eb656a993252a5241a33f1121e216a
> $ gcc --version
> gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
> Copyright (C) 2011 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> before_install.1
> $ echo $LANG
> en_US.UTF-8
> before_install.2
> $ sudo apt-get update -qq
> before_install.3
> $ sudo apt-get install -y uuid-dev uuid-runtime
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following NEW packages will be installed:
> uuid-dev uuid-runtime
> 0 upgraded, 2 newly installed, 0 to remove and 169 not upgraded.
> Need to get 40.5 kB of archives.
> After this operation, 303 kB of additional disk space will be used.
> Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main uuid-runtime
> amd64 2.20.1-1ubuntu3 [14.2 kB]
> Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main uuid-dev amd64
> 2.20.1-1ubuntu3 [26.4 kB]
> Fetched 40.5 kB in 0s (630 kB/s)
> Selecting previously unselected package uuid-runtime.
> (Reading database ... 70182 files and directories currently installed.)
> Unpacking uuid-runtime (from .../uuid-runtime_2.20.1-1ubuntu3_amd64.deb)
> ...
> Selecting previously unselected package uuid-dev.
> Unpacking uuid-dev (from .../uuid-dev_2.20.1-1ubuntu3_amd64.deb) ...
> Processing triggers for man-db ...
> Setting up uuid-runtime (2.20.1-1ubuntu3) ...
> Setting up uuid-dev (2.20.1-1ubuntu3) ...
> before_install.4
> $ git clone https://github.com/dailab/libsml.git
> Cloning into 'libsml'...
> remote: Reusing existing pack: 1471, done.
> remote: Total 1471 (delta 0), reused 0 (delta 0)
> Receiving objects: 100% (1471/1471), 369.73 KiB | 0 bytes/s, done.
> Resolving deltas: 100% (834/834), done.
> Checking connectivity... done.
> before_install.5
> $ cd libsml
> $ make
> make[1]: Entering directory `/home/travis/build/andig/vzlogger/libsml/sml'
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o src/sml_file.o
> src/sml_file.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o
> src/sml_attention_response.o src/sml_attention_response.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o
> src/sml_transport.o src/sml_transport.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o
> src/sml_octet_string.o src/sml_octet_string.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o
> src/sml_shared.o src/sml_shared.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o
> src/sml_number.o src/sml_number.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o
> src/sml_message.o src/sml_message.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o src/sml_time.o
> src/sml_time.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o src/sml_list.o
> src/sml_list.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o
> src/sml_status.o src/sml_status.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o src/sml_value.o
> src/sml_value.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o src/sml_tree.o
> src/sml_tree.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o
> src/sml_boolean.o src/sml_boolean.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o src/sml_crc16.o
> src/sml_crc16.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o
> src/sml_open_request.o src/sml_open_request.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o
> src/sml_open_response.o src/sml_open_response.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o
> src/sml_get_list_request.o src/sml_get_list_request.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o
> src/sml_get_list_response.o src/sml_get_list_response.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o
> src/sml_close_request.o src/sml_close_request.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o
> src/sml_close_response.o src/sml_close_response.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o
> src/sml_set_proc_parameter_request.o src/sml_set_proc_parameter_request.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o
> src/sml_get_proc_parameter_request.o src/sml_get_proc_parameter_request.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o
> src/sml_get_proc_parameter_response.o src/sml_get_proc_parameter_response.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o
> src/sml_get_profile_pack_request.o src/sml_get_profile_pack_request.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o
> src/sml_get_profile_pack_response.o src/sml_get_profile_pack_response.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o
> src/sml_get_profile_list_request.o src/sml_get_profile_list_request.c
> gcc -I./include/ -fPIC -fno-stack-protector -g -Wall -c -o
> src/sml_get_profile_list_response.o src/sml_get_profile_list_response.c
> ld -luuid -shared -soname libsml.so.1 -o lib/libsml.so.1 src/sml_file.o
> src/sml_attention_response.o src/sml_transport.o src/sml_octet_string.o
> src/sml_shared.o src/sml_number.o src/sml_message.o src/sml_time.o
> src/sml_list.o src/sml_status.o src/sml_value.o src/sml_tree.o
> src/sml_boolean.o src/sml_crc16.o src/sml_open_request.o
> src/sml_open_response.o src/sml_get_list_request.o
> src/sml_get_list_response.o src/sml_close_request.o
> src/sml_close_response.o src/sml_set_proc_parameter_request.o
> src/sml_get_proc_parameter_request.o src/sml_get_proc_parameter_response.o
> src/sml_get_profile_pack_request.o src/sml_get_profile_pack_response.o
> src/sml_get_profile_list_request.o src/sml_get_profile_list_response.o
> ar -rs lib/libsml.a src/sml_file.o src/sml_attention_response.o
> src/sml_transport.o src/sml_octet_string.o src/sml_shared.o
> src/sml_number.o src/sml_message.o src/sml_time.o src/sml_list.o
> src/sml_status.o src/sml_value.o src/sml_tree.o src/sml_boolean.o
> src/sml_crc16.o src/sml_open_request.o src/sml_open_response.o
> src/sml_get_list_request.o src/sml_get_list_response.o
> src/sml_close_request.o src/sml_close_response.o
> src/sml_set_proc_parameter_request.o src/sml_get_proc_parameter_request.o
> src/sml_get_proc_parameter_response.o src/sml_get_profile_pack_request.o
> src/sml_get_profile_pack_response.o src/sml_get_profile_list_request.o
> src/sml_get_profile_list_response.o
> ar: creating lib/libsml.a
> ld -r -o lib/libsml.o src/sml_file.o src/sml_attention_response.o
> src/sml_transport.o src/sml_octet_string.o src/sml_shared.o
> src/sml_number.o src/sml_message.o src/sml_time.o src/sml_list.o
> src/sml_status.o src/sml_value.o src/sml_tree.o src/sml_boolean.o
> src/sml_crc16.o src/sml_open_request.o src/sml_open_response.o
> src/sml_get_list_request.o src/sml_get_list_response.o
> src/sml_close_request.o src/sml_close_response.o
> src/sml_set_proc_parameter_request.o src/sml_get_proc_parameter_request.o
> src/sml_get_proc_parameter_response.o src/sml_get_profile_pack_request.o
> src/sml_get_profile_pack_response.o src/sml_get_profile_list_request.o
> src/sml_get_profile_list_response.o
> make[1]: Leaving directory `/home/travis/build/andig/vzlogger/libsml/sml'
> make[1]: Entering directory
> `/home/travis/build/andig/vzlogger/libsml/examples'
> gcc -I../sml/include/ -g -Wall -c sml_server.c -o sml_server.o
> gcc -I../sml/include/ -g -Wall sml_server.o -luuid ../sml/lib/libsml.a -o
> sml_server
> ../sml/lib/libsml.a(sml_octet_string.o): In function
> `sml_octet_string_generate_uuid':
> /home/travis/build/andig/vzlogger/libsml/sml/src/sml_octet_string.c:105:
> undefined reference to `uuid_generate'
> collect2: ld returned 1 exit status
> make[1]: *** [sml_server] Error 1
> make[1]: Leaving directory
> `/home/travis/build/andig/vzlogger/libsml/examples'
> make: *** [all] Error 2
>
> Habt ihr einen Tipp für mich?
>
> vg
> ANdreas
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-dev/attachments/20140525/bc7ee190/attachment.html>


More information about the volkszaehler-dev mailing list