bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash versus printf -exported_symbol on OSF


From: Martin MOKREJŠ
Subject: Re: bash versus printf -exported_symbol on OSF
Date: Tue, 14 Jan 2003 12:04:47 +0100 (CET)

On Tue, 14 Jan 2003, Christian Cornelssen wrote:

> (Re: http://mail.gnu.org/archive/html/libtool/2003-01/msg00013.html)
>
> Martin Mokrejs has re-raised the issue today, and I have recommended
> the attached patch.  I have not tested it, and it could be simplified
> further.  Anyway, here it is, to get things started.

No, it doesn't work. Actually, there's something more rotten in todays
cvs!

/bin/bash ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. 
-DG_LOG_DOMAIN=\"GdkPixbuf\" -I.. -I.. -I../gdk-pixbuf -I../gdk-pixbuf 
-DGTK_SYYSCONFDIR=\"/software/@sys/usr/etc\" -DGTK_VERSION=\"2.2.0\" 
-DGTK_BINARY_VERSION=\"2.2.0\" -DG_DISABLE_DEPRECATED 
-DGDK_PIXBUF_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread 
-I/software/@sys/usr/include/glib-2.0 -I/software/@sys/usr/lib/glib-2.0/include 
-I/software/@sys/usr/include/libpng12 -DGDK_PIXBUF_ENABLE_BACKEND 
"-DPIXBUF_LIBDIR=\"/software/@sys/usr/lib/gtk-2.0/2.2.0/loaders\"" 
"-DBUILT_MODULES_DIR=\"./.libs\"" -I/software/@sys/usr/include 
-I/usr/local/include -I/usr/local/openssl/include  -O2 -arch ev56 -c 
gdk-pixbuf-enum-types.c
 cc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"GdkPixbuf\" -I.. -I.. 
-I../gdk-pixbuf -I../gdk-pixbuf -DGTK_SYSCONFDIR=\"/software/@sys/usr/etc\" 
-DGTK_VERSION=\"2.2.0\" -DGTK_BINARY_VERSION=\"2.2.0\" -DG_DISABLE_DEPRECATED 
-DGDK_PIXBUF_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread 
-I/software/@sys/usr/include/glib-2.0 -I/software/@sys/usr/lib/glib-2.0/include 
-I/software/@sys/usr/include/libpng12 -DGDK_PIXBUF_ENABLE_BACKEND 
-DPIXBUF_LIBDIR=\"/software/@sys/usr/lib/gtk-2.0/2.2.0/loaders\" 
-DBUILT_MODULES_DIR=\"./.libs\" -I/software/@sys/usr/include 
-I/usr/local/include -I/usr/local/openssl/include -O2 -arch ev56 -c 
gdk-pixbuf-enum-types.c  -o .libs/gdk-pixbuf-enum-types.o
/bin/bash ../libtool --mode=link cc  -O2 -arch ev56  -o libgdk_pixbuf-2.0.la 
-rpath /software/@sys/usr/lib -version-info 200:0:200 -export-symbols--regex 
"^[^_].*" gdk-pixbuf.lo gdk-pixbuf-animation.lo gdk-pixbuf-data.lo 
gdk-pixbuf-io.lo gdk-pixbuf-loader.lo gdk-pixbuf-scale.lo gdk-pixbuf-util.lo 
gdk-pixdata.lo gdk-pixbuf-enum-types.lo pixops/libpixops.la   
-L/software/@sys/usr/lib -lgmodule-2.0 -lgobject-2.0 -lglib-2.0 -lintl -liconv 
-lm    -lm -L/usr/local/lib -L/software/@sys/usr/lib -L/usr/local/openssl/lib 
-L/usr/lib -lintl
generating symbol list for `libgdk_pixbuf-2.0.la'
../libtool: test: : integer expression expected
../libtool: test: : integer expression expected
using reloadable object file for export list...
 -e "^[^_].*" ".libs/libgdk_pixbuf-2.0.exp" > ".libs/libgdk_pixbuf-2.0.expT"
../libtool: -e: command not found
mv -f ".libs/libgdk_pixbuf-2.0.expT" ".libs/libgdk_pixbuf-2.0.exp"
rm -fr .libs/libgdk_pixbuf-2.0.lax
mkdir .libs/libgdk_pixbuf-2.0.lax
rm -fr .libs/libgdk_pixbuf-2.0.lax/libpixops.a
mkdir .libs/libgdk_pixbuf-2.0.lax/libpixops.a
(cd .libs/libgdk_pixbuf-2.0.lax/libpixops.a && ar x 
/afs/gsf.de/sources/gtk+-2.2.0/gdk-pixbuf/pixops/.libs/libpixops.a)
../libtool: test: : integer expression expected
creating reloadable object files...
../libtool: test: : integer expression expected
../libtool: test: : integer expression expected
../libtool: test: : integer expression expected
../libtool: test: : integer expression expected
../libtool: test: : integer expression expected
../libtool: test: : integer expression expected
../libtool: test: : integer expression expected
../libtool: test: : integer expression expected
../libtool: test: : integer expression expected
generating symbol list for `libgdk_pixbuf-2.0.la'
creating a temporary reloadable object file: .libs/libgdk_pixbuf-2.0.la-10.o
/usr/bin/ld -r -o .libs/libgdk_pixbuf-2.0.la-1.o .libs/gdk-pixbuf.o
/usr/bin/ld -r -o .libs/libgdk_pixbuf-2.0.la-2.o .libs/gdk-pixbuf-animation.o 
.libs/libgdk_pixbuf-2.0.la-1.o
/usr/bin/ld -r -o .libs/libgdk_pixbuf-2.0.la-3.o .libs/gdk-pixbuf-data.o 
.libs/libgdk_pixbuf-2.0.la-2.o
/usr/bin/ld -r -o .libs/libgdk_pixbuf-2.0.la-4.o .libs/gdk-pixbuf-io.o 
.libs/libgdk_pixbuf-2.0.la-3.o
/usr/bin/ld -r -o .libs/libgdk_pixbuf-2.0.la-5.o .libs/gdk-pixbuf-loader.o 
.libs/libgdk_pixbuf-2.0.la-4.o
/usr/bin/ld -r -o .libs/libgdk_pixbuf-2.0.la-6.o .libs/gdk-pixbuf-scale.o 
.libs/libgdk_pixbuf-2.0.la-5.o
/usr/bin/ld -r -o .libs/libgdk_pixbuf-2.0.la-7.o .libs/gdk-pixbuf-util.o 
.libs/libgdk_pixbuf-2.0.la-6.o
/usr/bin/ld -r -o .libs/libgdk_pixbuf-2.0.la-8.o .libs/gdk-pixdata.o 
.libs/libgdk_pixbuf-2.0.la-7.o
/usr/bin/ld -r -o .libs/libgdk_pixbuf-2.0.la-9.o .libs/gdk-pixbuf-enum-types.o 
.libs/libgdk_pixbuf-2.0.la-8.o
/usr/bin/ld -r -o .libs/libgdk_pixbuf-2.0.la-10.o 
.libs/libgdk_pixbuf-2.0.lax/libpixops.a/pixops.o .libs/libgdk_pixbuf-2.0.la-9.o
/usr/bin/nm -B .libs/libgdk_pixbuf-2.0.la-10.o  pixops/.libs/libpixops.a | sed 
-n -e 's/^.*[    ]\([BCDEGQRST][BCDEGQRST]*\)[        ][      
]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' | sed 's/.* //' | sort | uniq > 
.libs/libgdk_pixbuf-2.0.exp
for i in `cat .libs/libgdk_pixbuf-2.0.exp`; do printf "-exported_symbol " >> 
.libs/libgdk_pixbuf-2.0.so.200.200.0.exp; echo "$i" >> 
.libs/libgdk_pixbuf-2.0.so.200.200.0.exp; done; echo "-hidden">> 
.libs/libgdk_pixbuf-2.0.so.200.200.0.exp
../libtool: printf: illegal option: -e
printf: usage: printf format [arguments]
../libtool: printf: illegal option: -e
printf: usage: printf format [arguments]
../libtool: printf: illegal option: -e
[...]
printf: usage: printf format [arguments]
../libtool: printf: illegal option: -e
printf: usage: printf format [arguments]
 /usr/bin/ld -shared -expect_unresolved \* -input 
.libs/libgdk_pixbuf-2.0.so.200.200.0.exp  .libs/libgdk_pixbuf-2.0.la-10.o 
-rpath /software/@sys/usr/lib  pixops/.libs/libpixops.a -L/usr/local/lib 
-L/software/@sys/usr/lib -L/usr/local/openssl/lib -L/usr/lib 
-R/software/@sys/usr/lib -lc /software/@sys/usr/lib/libgmodule-2.0.so 
/software/@sys/usr/lib/libgobject-2.0.so /software/@sys/usr/lib/libglib-2.0.so 
/software/@sys/usr/lib/libiconv.so -lm /software/@sys/usr/lib/libintl.so  -lc 
-soname libgdk_pixbuf-2.0.so.0 `test -n 
"200.200.0:0.0:1.0:2.0:3.0:4.0:5.0:6.0:7.0:8.0:9.0:10.0:11.0:12.0:13.0:14.0:15.0:16.0:17.0:18.0:19.0:20.0:21.0:22.0:23.0:24.0:25.0:26.0:27.0:28.0:29.0:30.0:31.0:32.0:33.0:34.0:35.0:36.0:37.0:38.0:39.0:40.0:41.0:42.0:43.0:44.0:45.0:46.0:47.0:48.0:49.0:50.0:51.0:52.0:53.0:54.0:55.0:56.0:57.0:58.0:59.0:60.0:61.0:62.0:63.0:64.0:65.0:66.0:67.0:68.0:69.0:70.0:71.0:72.0:73.0:74.0:75.0:76.0:77.0:78.0:79.0:80.0:81.0:82.0:83.0:84.0:85.0:86.0:87.0:88.0:89.0:90.0:91.0:92.0:93.0:94.0:95.0:96.0:97.0:98.0:99.
 /usr/bin/ld -shared -expect_unresolved \* -input 
.libs/libgdk_pixbuf-2.0.so.200.200.0.exp  .libs/libgdk_pixbuf-2.0.la-10.o 
-rpath /software/@sys/usr/lib  pixops/.libs/libpixops.a -L/usr/local/lib 
-L/software/@sys/usr/lib -L/usr/local/openssl/lib -L/usr/lib 
-R/software/@sys/usr/lib -lc /software/@sys/usr/lib/libgmodule-2.0.so 
/software/@sys/usr/lib/libgobject-2.0.so /software/@sys/usr/lib/libglib-2.0.so 
/software/@sys/usr/lib/libiconv.so -lm /software/@sys/usr/lib/libintl.so  -lc 
-soname libgdk_pixbuf-2.0.so.0 `test -n 
"200.200.0:0.0:1.0:2.0:3.0:4.0:5.0:6.0:7.0:8.0:9.0:10.0:11.0:12.0:13.0:14.0:15.0:16.0:17.0:18.0:19.0:20.0:21.0:22.0:23.0:24.0:25.0:26.0:27.0:28.0:29.0:30.0:31.0:32.0:33.0:34.0:35.0:36.0:37.0:38.0:39.0:40.0:41.0:42.0:43.0:44.0:45.0:46.0:47.0:48.0:49.0:50.0:51.0:52.0:53.0:54.0:55.0:56.0:57.0:58.0:59.0:60.0:61.0:62.0:63.0:64.0:65.0:66.0:67.0:68.0:69.0:70.0:71.0:72.0:73.0:74.0:75.0:76.0:77.0:78.0:79.0:80.0:81.0:82.0:83.0:84.0:85.0:86.0:87.0:88.0:89.0:90.0:91.0:92.0:93.0:94.0:95.0:96.0:97.0:98.0:99.
 /usr/bin/ld -shared -expect_unresolved \* -input 
.libs/libgdk_pixbuf-2.0.so.200.200.0.exp  .libs/libgdk_pixbuf-2.0.la-10.o 
-rpath /software/@sys/usr/lib  pixops/.libs/libpixops.a -L/usr/local/lib 
-L/software/@sys/usr/lib -L/usr/local/openssl/lib -L/usr/lib 
-R/software/@sys/usr/lib -lc /software/@sys/usr/lib/libgmodule-2.0.so 
/software/@sys/usr/lib/libgobject-2.0.so /software/@sys/usr/lib/libglib-2.0.so 
/software/@sys/usr/lib/libiconv.so -lm /software/@sys/usr/lib/libintl.so  -lc 
-soname libgdk_pixbuf-2.0.so.0 `test -n 
"200.200.0:0.0:1.0:2.0:3.0:4.0:5.0:6.0:7.0:8.0:9.0:10.0:11.0:12.0:13.0:14.0:15.0:16.0:17.0:18.0:19.0:20.0:21.0:22.0:23.0:24.0:25.0:26.0:27.0:28.0:29.0:30.0:31.0:32.0:33.0:34.0:35.0:36.0:37.0:38.0:39.0:40.0:41.0:42.0:43.0:44.0:45.0:46.0:47.0:48.0:49.0:50.0:51.0:52./usr/bin/ld:
Can't open: _gdk_pixbuf_generic_image_load (No such file or directory)
make[3]: *** [libgdk_pixbuf-2.0.la] Error 1
make[3]: Leaving directory `/afs/gsf.de/sources/gtk+-2.2.0/gdk-pixbuf'


BTW: Shouldn't libtool stop processing when something (printf, test) failed? 
Why does it have to run
ld at all? ;-)


-- 
Martin Mokrejs <address@hidden>, <address@hidden>
PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
MIPS / Institute for Bioinformatics <http://mips.gsf.de>
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
tel.: +49-89-3187 3683 , fax: +49-89-3187 3585

Attachment: printf-dash.diff
Description: Text document

Attachment: ChangeLog.print-dash
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]