Hi, today I tried building libgsm0710mux with vala 0.7.0.
First showstopper seems to be the changed handling of the header-files in 0.7. As vala does not and cannot create multiple header-files anymore, I changed Makefile.am to let it create a single gsm0710mux.h-file. Is this solution feasible or what other solution is preferable for the upstream-authors? The second problem happens during the compilation step: In the generated .c-files it should include errno.h to get "errno", which worked when compiling with vala 0.6. But with vala 0.7 the include-statement to errno.h is not added anymore causing gcc complain about missing errno. Posix.vapi from 0.6 to 0.7 seems unchanged. Any ideas what could be wrong? (possible stricter checking of code-constructs in valac?) Greetings Heiko My current changes to Makefile.am: --- Makefile.am 2009-04-19 20:24:25.000000000 +0200 +++ Makefile.am.new 2009-04-20 23:06:03.000000000 +0200 @@ -21,7 +21,7 @@ gsm0710muxincludedir = $(includedir)/gsm0710mux-1.0/gsm0710mux gsm0710muxinclude_HEADERS = \ - $(libgsm0710mux_la_VALASOURCES:.vala=.h) \ + gsm0710mux/gsm0710mux.h \ $(NULL) BUILT_SOURCES = gsm0710mux/.vala.stamp @@ -40,12 +40,12 @@ libgsm0710mux_la_SOURCES = \ $(libgsm0710mux_la_VALASOURCES:.vala=.c) \ - $(libgsm0710mux_la_VALASOURCES:.vala=.h) \ + gsm0710mux/gsm0710mux.h \ \ $(NULL) gsm0710mux/.vala.stamp: $(libgsm0710mux_la_VALASOURCES) - $(VALAC) -c --vapidir vapi --pkg gio-2.0 \ + $(VALAC) -c -H gsm0710mux/gsm0710mux.h --vapidir vapi --pkg gio-2.0 \ --pkg gsm0710-1.0 \ --pkg posix \ --pkg posixextra \ Compilation-problems (many missing errnos): /usr/bin/valac -c -H gsm0710mux/gsm0710mux.h --vapidir vapi --pkg gio-2.0 \ --pkg gsm0710-1.0 \ --pkg posix \ --pkg posixextra \ --library=gsm0710mux-1.0 \ --save-temps --basedir . gsm0710mux/consts.vala gsm0710mux/channel.vala gsm0710mux/multiplexer.vala gsm0710mux/manager.vala gsm0710mux/transport.vala /home/hstuebner/devel/_git-repos/_kram/libgsm0710mux/gsm0710mux/channel.c: In function 'channel_acked': /home/hstuebner/devel/_git-repos/_kram/libgsm0710mux/gsm0710mux/channel.c:246: error: 'errno' undeclared (first use in this function) /home/hstuebner/devel/_git-repos/_kram/libgsm0710mux/gsm0710mux/channel.c:246: error: (Each undeclared identifier is reported only once /home/hstuebner/devel/_git-repos/_kram/libgsm0710mux/gsm0710mux/channel.c:246: error: for each function it appears in.) /home/hstuebner/devel/_git-repos/_kram/libgsm0710mux/gsm0710mux/multiplexer.c: In function 'multiplexer_construct': /home/hstuebner/devel/_git- repos/_kram/libgsm0710mux/gsm0710mux/multiplexer.c:414: warning: assignment from incompatible pointer type /home/hstuebner/devel/_git- repos/_kram/libgsm0710mux/gsm0710mux/multiplexer.c:415: warning: assignment from incompatible pointer type /home/hstuebner/devel/_git- repos/_kram/libgsm0710mux/gsm0710mux/multiplexer.c:421: warning: assignment from incompatible pointer type /home/hstuebner/devel/_git-repos/_kram/libgsm0710mux/gsm0710mux/transport.c: In function 'serial_real_open': /home/hstuebner/devel/_git- repos/_kram/libgsm0710mux/gsm0710mux/transport.c:533: error: 'errno' undeclared (first use in this function) /home/hstuebner/devel/_git- repos/_kram/libgsm0710mux/gsm0710mux/transport.c:533: error: (Each undeclared identifier is reported only once /home/hstuebner/devel/_git- repos/_kram/libgsm0710mux/gsm0710mux/transport.c:533: error: for each function it appears in.) /home/hstuebner/devel/_git-repos/_kram/libgsm0710mux/gsm0710mux/transport.c: In function 'pty_real_open': /home/hstuebner/devel/_git- repos/_kram/libgsm0710mux/gsm0710mux/transport.c:795: error: 'errno' undeclared (first use in this function) /home/hstuebner/devel/_git-repos/_kram/libgsm0710mux/gsm0710mux/transport.c: In function 'socket_real_open': /home/hstuebner/devel/_git- repos/_kram/libgsm0710mux/gsm0710mux/transport.c:935: error: 'errno' undeclared (first use in this function) error: cc exited with status 256 Compilation failed: 1 error(s), 3 warning(s) make: *** [gsm0710mux/.vala.stamp] Fehler 1 _______________________________________________ Smartphones-userland mailing list Smartphones-userland@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland