Ticket #213 (closed bug: fixed)

Opened 13 years ago

Last modified 13 years ago

wrong link order, fix win32 make installable

Reported by: rurban Owned by: rurban
Priority: blocker Milestone: 0.9.1
Component: core Version: trunk
Severity: fatal Keywords:
Cc: Language:
Patch status: applied Platform: win32

Description

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

Attachments

tt213-install_config-order.patch Download (0.7 KB) - added by rurban 13 years ago.

Change History

Changed 13 years ago by rurban

Changed 13 years ago by rurban

  • status changed from new to closed
  • resolution set to fixed

Changed 13 years ago by rurban

applied as r35905 to trunk

Note: See TracTickets for help on using tickets.