Today, I tried to get a bit closer to a cross compiled windows binary of
the geda utils. Thanks to a build script at gnome.org I already have all
the GTK stuff compiled for win32. I managed to compile libtool, too.
However, I still seem to have some omissions to fix in the cross compile
environment.
Compile of readline fails with errors during link:
/usr/local/src/readline/readline-5.2$ sudo make
test -d shlib || mkdir shlib
( cd shlib ; make all )
make[1]: Entering directory `/usr/local/src/readline/readline-5.2/shlib'
rm -f libreadline.so.5
i586-mingw32msvc-gcc -mms-bitfields -shared -L/usr/i586-mingw32msvc/mingw32/lib
-L./lib/termcap -o libreadline.so.5 readline.so vi_mode.so funmap.so
keymaps.so parens.so search.so rltty.so complete.so bind.so isearch.so
display.so signals.so util.so kill.so undo.so macro.so input.so callback.so
terminal.so text.so nls.so misc.so xmalloc.so history.so histexpand.so
histfile.so histsearch.so shell.so mbutil.so tilde.so compat.so
display.so:display.c:(.text+0x259): undefined reference to `_tputs'
display.so:display.c:(.text+0x289): undefined reference to `_tputs'
display.so:display.c:(.text+0x31d): undefined reference to `_tputs'
display.so:display.c:(.text+0xc75): undefined reference to `_tputs'
display.so:display.c:(.text+0xd65): undefined reference to `_tputs'
display.so:display.c:(.text+0xdb8): more undefined references to `_tputs' follow
terminal.so:terminal.c:(.text+0x460): undefined reference to `_tgetnum'
terminal.so:terminal.c:(.text+0x4ea): undefined reference to `_tgetnum'
terminal.so:terminal.c:(.text+0x786): undefined reference to `_tgetent'
terminal.so:terminal.c:(.text+0x7a2): undefined reference to `_tgetstr'
terminal.so:terminal.c:(.text+0x7c9): undefined reference to `_tgetstr'
terminal.so:terminal.c:(.text+0x820): undefined reference to `_tgetflag'
terminal.so:terminal.c:(.text+0x873): undefined reference to `_tgetflag'
terminal.so:terminal.c:(.text+0x8da): undefined reference to `_tgetflag'
terminal.so:terminal.c:(.text+0x8fc): undefined reference to `_tgetflag'
terminal.so:terminal.c:(.text+0xb47): undefined reference to `_tputs'
collect2: ld returned 1 exit status
make[1]: *** [libreadline.so.5] Error 1
make[1]: Leaving directory `/usr/local/src/readline/readline-5.2/shlib'
make: [shared] Error 2 (ignored)
Consequently, configure of guile warns about a missing libreadline.
If I try to compile anyway, I get:
/usr/local/src/guile/guile-1.6.8$ make
(...)
make[3]: Leaving directory
`/usr/local/src/guile/guile-1.6.8/libguile-ltdl/upstream'
make[3]: Entering directory `/usr/local/src/guile/guile-1.6.8/libguile-ltdl'
if /bin/sh ../libtool --tag=CC --mode=compile i586-mingw32msvc-gcc
-mms-bitfields -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -I.. -I./.. -O2
-march=i586 -mms-bitfields -Wall -Wmissing-prototypes -fno-strict-aliasing -MT
guile-ltdl.lo -MD -MP -MF ".deps/guile-ltdl.Tpo" -c -o guile-ltdl.lo
guile-ltdl.c; \
then mv -f ".deps/guile-ltdl.Tpo" ".deps/guile-ltdl.Plo"; else rm -f
".deps/guile-ltdl.Tpo"; exit 1; fi
mkdir .libs
i586-mingw32msvc-gcc -mms-bitfields -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -I..
-I./.. -O2 -march=i586 -mms-bitfields -Wall -Wmissing-prototypes
-fno-strict-aliasing -MT guile-ltdl.lo -MD -MP -MF .deps/guile-ltdl.Tpo -c
guile-ltdl.c -DDLL_EXPORT -DPIC -o .libs/guile-ltdl.o
In file included from guile-ltdl.c:44:
raw-ltdl.c:220: error: external linkage required for symbol 'lt_dlmalloc'
because of 'dllexport' attribute
raw-ltdl.c:222: error: external linkage required for symbol 'lt_dlrealloc'
because of 'dllexport' attribute
raw-ltdl.c:224: error: external linkage required for symbol 'lt_dlfree' because
of 'dllexport' attribute
In file included from guile-ltdl.c:44:
raw-ltdl.c: In function 'sys_wll_open':
raw-ltdl.c:1309: warning: unused variable 'errormsg'
raw-ltdl.c: In function 'try_dlopen':
raw-ltdl.c:3170: warning: the address of 'sys_search_path' will always evaluate
as 'true'
raw-ltdl.c: In function 'lt_dlopenext':
raw-ltdl.c:3462: warning: the address of 'archive_ext' will always evaluate as
'true'
raw-ltdl.c:3483: warning: the address of 'shlib_ext' will always evaluate as
'true'
raw-ltdl.c:3483: warning: the address of 'archive_ext' will always evaluate as
'true'
raw-ltdl.c:3486: warning: the address of 'shlib_ext' will always evaluate as
'true'
make[3]: *** [guile-ltdl.lo] Error 1
make[3]: Leaving directory `/usr/local/src/guile/guile-1.6.8/libguile-ltdl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/guile/guile-1.6.8/libguile-ltdl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/guile/guile-1.6.8'
make: *** [all] Error 2
Any hint, what is missing here?
(Shall I post the output of configure?)
---<(kaimartin)>---
--
Kai-Martin Knaak
http://lilalaser.de/blog
_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev