On 14/7/10 16:46, Ted Gould wrote:
On Wed, 2010-07-14 at 09:59 +0200, ~suv wrote:
- make error due to hardcoded 'libtoolize' in autogen.sh
$ make CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /Volumes/blue/src/Inkscape/src/inkscape-repo/mp-x11/missing --run aclocal-1.11 cd . && /bin/sh /Volumes/blue/src/Inkscape/src/inkscape-repo/mp-x11/missing --run automake-1.11 --foreign configure.ac:33: required file `./ltmain.sh' not found make: *** [Makefile.in] Error 1
On OS X libtool and libtoolize are installed as 'glibtool' and 'glibtoolize'. autogen.sh should either test for it or maybe use the environment variables ($LIBTOOL, $LIBTOOLIZE) which could be set in the packaging script (packaging/macosx/osx-build.sh).
After editing autogen.sh (replace "libtoolize" with "glibtoolize") to test the fix, autogen.sh and configure ran through:
Hmm, how odd. But, sure that makes sense. Do you know what's preferred?
Unfortunately I do not know what is preferred (a google search showed results with both mentioned variants, possibly others), nor am I sure it is the correct solution here - maybe overriding Apple's libtool with the local ./libtool generated by glibtoolize causes the link error below.
output of autogen.sh:
I am testing that you have the required versions of autoconf, automake, glib-gettextize and intltoolize. This test is not foolproof and if anything goes wrong, there may be guidance in the file HACKING.txt
checking for autoconf >= 2.52 ... yes (version 2.65) checking for automake >= 1.10 ... yes (version 1.11.1) checking for glib-gettextize >= 2.0.0 ... yes (version 2.24.1) checking for intltool >= 0.17 ... yes (version 0.40.6)
Running aclocal-1.11 ... Running autoheader ... Running glibtoolize ... glibtoolize: putting auxiliary files in `.'. glibtoolize: linking file `./ltmain.sh' glibtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and glibtoolize: rerunning glibtoolize, to keep the correct libtool macros in-tree. glibtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. glibtoolize: `AC_PROG_RANLIB' is rendered obsolete by `LT_INIT' Running automake-1.11 --copy --force --add-missing ... Running autoconf ... Running glib-gettextize --copy --force ... Copying file mkinstalldirs Copying file po/Makefile.in.in Running intltoolize --copy --force --automake ...
Done! Please run './configure' now.
My understanding of the compile and link process on OS X is is very limited, but "`AC_PROG_RANLIB' is rendered obsolete by `LT_INIT'" raises red flags for me - Apple's libtool and ranlib seem closely tied together [1] and differ from the GNU libtool version. Possibly linking fails because ./libtool overrides /usr/bin/libtool ?
- link error for 'libinkdbus.la'
CCLD libinkdbus.la Undefined symbols:
...
ld: symbol(s) not found collect2: ld returned 1 exit status make[3]: *** [libinkdbus.la] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
When building Inkscape before the dbus-api merge (or the 0.48.x branch), 'CCLD' is never called AFAICT - how can I find out the full command instead of the “silent make mode”?
~suv
[1] Apple man pages
http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPag... http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPag... http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPag...
[2] glibtoolize version (installed via MacPorts):
$ which glibtoolize /Volumes/blue/mp-inkscape/with-a-long-long-long-directory-name/bin/glibtoolize $ glibtoolize --version libtoolize (GNU libtool) 2.2.6b Written by Gary V. Vaughan <gary@...570...>, 2003
Copyright (C) 2008 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. $ port info libtool libtool @2.2.6b, Revision 1 (devel, sysutils) Variants: universal
Description: GNU libtool is a generic library support script. Libtool hides the complexity of using shared libraries behind a consistent, portable interface. Homepage: http://www.gnu.org/software/libtool/
Build Dependencies: automake Platforms: darwin, freebsd License: unknown Maintainers: boeyms@...2376..., openmaintainer@...2376... $ port installed libtool The following ports are currently installed: libtool @2.2.6b_0 libtool @2.2.6b_1 (active)
[3] System info:
Mac OS X 10.5.8 (9L30) Xcode version 3.1.4 i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5493)