#213: wrong link order, fix win32 make installable
---------------------+------------------------------------------------------
Reporter: rurban | Owner: rurban
Type: bug | Status: new
Priority: blocker | Milestone: 0.9.1
Component: core | Version: trunk
Severity: fatal | Keywords:
Lang: | Patch: applied
Platform: win32 |
---------------------+------------------------------------------------------
Wrong link order, the object file must come before the libs.
This is only critical on win32 linkers.
This patch was part of rt#39742
$ gcc -o installable_parrot.exe \
> src/main.o \
> -L/usr/src/perl/parrot/parrot-0.9.0-1/build -lparrot -Wl,--enable-
auto-image-base -lpthread -lm -L/usr/lib -licuuc -licudata -lpthread -lm
-lcrypt -lgmp -lreadline -lpcre -lcrypto -lintl -Wl,--enable-auto-import
-Wl,--export-all-symbols -Wl,--stack,8388608 -Wl,--enable-auto-image-base
-L/usr/local/lib src/install_config.o
src/install_config.o:install_config.c:(.text+0x17): undefined reference to
`_Parrot_set_config_hash_internal'
collect2: ld returned 1 exit status
$ gcc -o installable_parrot.exe src/main.o src/install_config.o
-L/usr/src/perl/parrot/parrot-0.9.0-1/build -lparrot -Wl,--enable-auto-
image-base -lpthread -lm -L/usr/lib -licuuc -licudata -lpthread -lm
-lcrypt -lgmp -lreadline -lpcre -lcrypto -lintl -Wl,--enable-auto-import
-Wl,--export-all-symbols -Wl,--stack,8388608 -Wl,--enable-auto-image-base
-L/usr/local/lib
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/213>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets