Author Topic: Need help to build vala  (Read 810 times)

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3729
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Need help to build vala
« on: August 28, 2010, 03:59:17 PM »
Hello,
i want update shotwell, but it's need vala >= 0.9.5
When i now create vala >= 0.9.6, i get this error

Code: [Select]
rpm -ba pclos-vala.spec
Ausführung(%prep): /bin/sh -e /home/leiche/src/tmp/rpm-tmp.34435
+ umask 022
+ cd /home/leiche/src/rpm/BUILD
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/leiche/src/rpm/BUILD
+ rm -rf vala-0.9.6
+ tar -xf /home/leiche/src/rpm/SOURCES/vala-0.9.6.tar.xz
+ cd vala-0.9.6
+ exit 0
Ausführung(%build): /bin/sh -e /home/leiche/src/tmp/rpm-tmp.34435
+ umask 022
+ cd /home/leiche/src/rpm/BUILD
+ cd vala-0.9.6
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ CONFIGURE_TOP=.
+ CFLAGS='-O2  -pipe -Wp,-D_FORTIFY_SOURCE=2 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables'
+ export CFLAGS
+ CXXFLAGS='-O2  -pipe -Wp,-D_FORTIFY_SOURCE=2 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables'
+ export CXXFLAGS
+ FFLAGS='-O2  -pipe -Wp,-D_FORTIFY_SOURCE=2 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables'
+ export FFLAGS
+ cputoolize -c .
+ cd .
+ '[' -f configure.in -o -f configure.ac ']'
+ libtoolize --copy --force
You should update your `aclocal.m4' by running aclocal.
Putting files in AC_CONFIG_AUX_DIR, `build-aux'.
+ '[' -f ./configure.in -o -f ./configure.ac ']'
+ CONFIGURE_XPATH='--x-includes=/usr/include --x-libraries=/usr/lib'
+ ./configure --build=i586-mandriva-linux-gnu --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var/lib --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --x-includes=/usr/include --x-libraries=/usr/lib --enable-vapigen
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking build system type... i586-mandriva-linux-gnu
checking host system type... i586-mandriva-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether ln -s works... yes
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking for valac... /usr/bin/valac
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for GMODULE... yes
checking for GTHREAD... yes
checking for xsltproc... :
configure: creating ./config.status
config.status: creating Makefile
config.status: creating vala.pc
config.status: creating gee/Makefile
config.status: creating ccode/Makefile
config.status: creating vala/Makefile
config.status: creating codegen/Makefile
config.status: creating compiler/Makefile
config.status: creating vapi/Makefile
config.status: creating tests/Makefile
config.status: creating doc/Makefile
config.status: creating doc/vala/Makefile
config.status: creating gobject-introspection/Makefile
config.status: creating vapigen/Makefile
config.status: creating vapigen/vala-gen-introspect/Makefile
config.status: creating vapigen/vala-gen-introspect/vala-gen-introspect
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
+ make
echo '#define BUILD_VERSION "'`cat ./.version`'"' > version.h-t && mv version.h-t version.h
make  all-recursive
make[1]: Entering directory `/home/leiche/src/rpm/BUILD/vala-0.9.6'
Making all in gee
make[2]: Entering directory `/home/leiche/src/rpm/BUILD/vala-0.9.6/gee'
make  all-am
make[3]: Entering directory `/home/leiche/src/rpm/BUILD/vala-0.9.6/gee'
  CC     arraylist.lo
../libtool: line 830: X--tag=CC: command not found
../libtool: line 863: libtool: ignoring unknown tag : command not found
../libtool: line 830: X--mode=compile: command not found
../libtool: line 997: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 998: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: line 1141: Xgcc: command not found
../libtool: line 1141: X-DHAVE_CONFIG_H: command not found
../libtool: line 1141: X-I.: command not found
../libtool: line 1141: X-I..: command not found
../libtool: line 1141: X-pthread: command not found
../libtool: line 1141: X-I/usr/include/glib-2.0: No such file or directory
../libtool: line 1141: X-I/usr/lib/glib-2.0/include: No such file or directory
../libtool: line 1141: X-O2: command not found
../libtool: line 1141: X-pipe: command not found
../libtool: line 1141: X-Wp,-D_FORTIFY_SOURCE=2: command not found
../libtool: line 1141: X-fomit-frame-pointer: command not found
../libtool: line 1141: X-march=i586: command not found
../libtool: line 1141: X-mtune=generic: command not found
../libtool: line 1141: X-fasynchronous-unwind-tables: command not found
../libtool: line 1141: X-MT: command not found
../libtool: line 1141: Xarraylist.lo: command not found
../libtool: line 1141: X-MD: command not found
../libtool: line 1141: X-MP: command not found
../libtool: line 1141: X-MF: command not found
../libtool: line 1141: X.deps/arraylist.Tpo: No such file or directory
../libtool: line 1141: X-c: command not found
../libtool: line 1194: Xarraylist.lo: command not found
../libtool: line 1199: libtool: compile: cannot determine name of library object from `': command not found
make[3]: *** [arraylist.lo] Fehler 1
make[3]: Leaving directory `/home/leiche/src/rpm/BUILD/vala-0.9.6/gee'
make[2]: *** [all] Fehler 2
make[2]: Leaving directory `/home/leiche/src/rpm/BUILD/vala-0.9.6/gee'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/leiche/src/rpm/BUILD/vala-0.9.6'
make: *** [all] Fehler 2
Fehler: Fehler-Status beim Beenden von /home/leiche/src/tmp/rpm-tmp.34435 (%build)


Fehler beim Bauen des RPMS:
    Fehler-Status beim Beenden von /home/leiche/src/tmp/rpm-tmp.34435 (%build)

[28.08.2010 23:52 Uhr]
[leiche@leiche 6] SPECS >

Wich libaries or devels are failed?
I can't find any answer in the source code.
To build i use vala.spec file from our package...
Thanks for efforts...

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Need help to build vala
« Reply #1 on: August 28, 2010, 10:33:01 PM »
I don't know the answer right off, but there are a handful of "tricks" that sometimes fix libtool errors:


tex's quick-fixes on mypclinuxos:
http://mypclinuxos.com/forum/index.php?topic=2537.msg22791#msg22791
http://mypclinuxos.com/forum/index.php?topic=2531.0



If those don't work, maybe try one of the following:

(1) If the source contains an M4 directory tell %build where to find it (adjust the path as needed):
Code: [Select]
%build
aclocal -I $RPM_BUILD_DIR/%{name}-%{version}/m4/

--OR--

(2) Append your local M4 macros to aclocal.m4 included in the package's source (adjust path as needed):
Code: [Select]
%build
cat /usr/share/aclocal/libtool.m4 >> $$RPM_BUILD_DIR/%{name}-%{version}/aclocal.m4
cat /usr/share/aclocal/ltoptions.m4 >> $$RPM_BUILD_DIR/%{name}-%{version}/aclocal.m4
cat /usr/share/aclocal/ltversion.m4 >> $$RPM_BUILD_DIR/%{name}-%{version}/aclocal.m4
cat /usr/share/aclocal/ltsugar.m4 >> $$RPM_BUILD_DIR/%{name}-%{version}/aclocal.m4
cat /usr/share/aclocal/lt~obsolete.m4 >> $$RPM_BUILD_DIR/%{name}-%{version}/aclocal.m4

 :-\ ???


EDIT:

It looks like Joble had a similar list of errors awhile ago; slick50 made a patch that may have clues, but it is not included in the thread:
http://www.pclinuxos.com/forum/index.php/topic,70888.msg582282.html#msg582282

« Last Edit: August 28, 2010, 10:45:41 PM by travisn000 »

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3729
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Need help to build vala
« Reply #2 on: August 29, 2010, 10:53:12 AM »

http://mypclinuxos.com/forum/index.php?topic=2531.0



This is the trick to build vala, hopeful that's the right way...

Thank you  ;)