Building static version of ImageMagick (was: Re: Building
static version of glib2)
Andrei Tchijov
andrei at tchijov.com
Sat Dec 1 12:12:51 PST 2007
Thanx again!!!!
I already have tried "upgrade glib2" and it did produce static
libraries! It did complained a little about libiconv (just in case, I
have attached all messages at the bottom of this e-mail)
Andrei
On Dec 1, 2007, at 15:07 , Ryan Schmidt wrote:
>
> On Dec 1, 2007, at 09:44, Andrei Tchijov wrote:
>
>> Thanks for quick response. While you fixing it, could you do the
>> same with ImageMagic? It does not install any static libraries
>> either.
>
> ImageMagick is a bit of a different case. Its default is to build
> static libraries, but the port specifically requested that static
> libraries be disabled, and it has done so since the port was created
> in r2591 on 2003-05-08.
>
> Enabling the static libraries seems to work though so I changed this
> in r31651. Wait 12 hours and you should be able to install version
> 6.3.7-1_1 which includes this fix.
>
>
[local/lib] > upgrade glib2
---> Fetching libiconv
---> Attempting to fetch libiconv-1.12.tar.gz from http://ftp.gnu.org/gnu/libiconv
---> Verifying checksum(s) for libiconv
---> Extracting libiconv
---> Applying patches to libiconv
---> Configuring libiconv
---> Building libiconv with target all
---> Staging libiconv into destroot
Error: Target org.macports.destroot returned: shell command " cd "/opt/
local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_textproc_libiconv/work/libiconv-1.12" &&
make install DESTDIR=/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_textproc_libiconv/work/destroot " returned
error 2
Command output: libtool: install: warning: remember to run `libtool --
finish /opt/local/lib'
case "darwin9.1.0" in \
aix*) (cd /opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_textproc_libiconv/work/destroot/opt/local/
lib && \
objects=`ar t libiconv.a`" "`ar t /lib/libiconv.a` && \
ar x libiconv.a && ar x /lib/libiconv.a && \
ar q libiconv.new.a $objects && \
rm -f $objects && \
mv -f libiconv.new.a libiconv.a) ;; \
esac
if test -n ""; then /usr/bin/install -c -m 644 /opt/local/var/
macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_textproc_libiconv/work/destroot/opt/local/
lib/.new && mv /opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_textproc_libiconv/work/destroot/opt/local/
lib/.new /opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_textproc_libiconv/work/destroot/opt/local/
lib/ ; fi
cd srclib && make install prefix='/opt/local' exec_prefix='/opt/local'
libdir='/opt/local/lib'
make install-am
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
cd src && make install prefix='/opt/local' exec_prefix='/opt/local'
libdir='/opt/local/lib'
test `ls -ld . | sed -e 's/^d\(.........\).*/\1/'` = rwxrwxrwx ||
chmod 777 .
if [ ! -d /opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_textproc_libiconv/work/destroot/opt/local/
bin ] ; then /bin/sh ../build-aux/mkinstalldirs /opt/local/var/
macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_textproc_libiconv/work/destroot/opt/local/
bin ; fi
case "darwin9.1.0" in \
hpux*) gcc -L/opt/local/lib -O2 `if test -n ''; then /opt/local/
bin; fi` iconv.o ../srclib/libicrt.a -L/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_textproc_libiconv/work/destroot/opt/local/
lib -liconv `if test -n '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_textproc_libiconv/work/destroot'; then
echo " -Wl,+b -Wl,/opt/local/lib"; fi` -o iconv;; \
*) /bin/sh ../libtool --mode=link gcc -L/opt/local/lib -O2 `if test
-n ''; then /opt/local/bin; fi` iconv.o ../srclib/libicrt.a /opt/
local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_textproc_libiconv/work/destroot/opt/local/
lib/libiconv.la -o iconv;; \
esac
gcc -O2 iconv.o -o iconv -L/opt/local/lib ../srclib/libicrt.a /opt/
local/lib/libiconv.dylib
Undefined symbols:
"_iconv_canonicalize", referenced from:
_main in iconv.o
_main in iconv.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [install] Error 1
make: *** [install] Error 2
Error: Unable to upgrade port: 1
---> Fetching expat
---> Attempting to fetch expat-2.0.1.tar.gz from http://downloads.sourceforge.net/expat
---> Verifying checksum(s) for expat
---> Extracting expat
---> Configuring expat
---> Building expat with target all
---> Staging expat into destroot
---> Deactivating expat 1.95.8_1
---> Installing expat 2.0.1_0
---> Activating expat 2.0.1_0
---> Cleaning expat
---> Fetching gettext
---> Attempting to fetch gettext-0.17.tar.gz from http://ftp.gnu.org/gnu/gettext
---> Verifying checksum(s) for gettext
---> Extracting gettext
---> Applying patches to gettext
---> Configuring gettext
---> Building gettext with target all
---> Staging gettext into destroot
---> Deactivating gettext 0.14.3_1
---> Installing gettext 0.17_1
---> Activating gettext 0.17_1
---> Cleaning gettext
---> Fetching glib2
---> Attempting to fetch glib-2.14.4.tar.bz2 from ftp://ftp.gtk.org/pub/glib/2.14/
---> Verifying checksum(s) for glib2
---> Extracting glib2
---> Applying patches to glib2
---> Configuring glib2
---> Building glib2 with target all
---> Staging glib2 into destroot
---> Deactivating glib2 2.14.3_0+darwin_9
---> Installing glib2 2.14.4_1+darwin_9
---> Activating glib2 2.14.4_1+darwin_9
---> Cleaning glib2
More information about the macports-users
mailing list