compile failure: undefined reference to `__mingw_vfprintf'
$ make LINK i386-softmmu/qemu.exe c:/Programme/MinGW/lib/libSDLmain.a(SDL_win32_main.o):(.text+0x1b): undefined reference to `__mingw_vfprintf' collect2: ld returned 1 exit status make[1]: *** [qemu.exe] Error 1 make: *** [subdir-i386-softmmu] Error 2
537fe2d63f744e7c96ff45b60d09486a81958e06 is first bad commit commit 537fe2d63f744e7c96ff45b60d09486a81958e06
Author: Anthony Liguori <[email protected]> Date: Tue Jun 16 15:17:22 2009 -0500
Make sure to use SDL_CFLAGS everywhere we include SDL headers
- Sebastian
Quoted 13 lines · Sebastian Herbszt
$ make LINK i386-softmmu/qemu.exe c:/Programme/MinGW/lib/libSDLmain.a(SDL_win32_main.o):(.text+0x1b): undefined reference to `__mingw_vfprintf' collect2: ld returned 1 exit status make[1]: *** [qemu.exe] Error 1 make: *** [subdir-i386-softmmu] Error 2
537fe2d63f744e7c96ff45b60d09486a81958e06is first bad commit commit537fe2d63f744e7c96ff45b60d09486a81958e06
Author: Anthony Liguori <[email protected]>
Date: Tue Jun 16 15:17:22 2009 -0500
Quoted 6 lines
Make sure to use
SDL_CFLAGSeverywhere we include SDL headersSigned-off-by Anthony Liguori <[email protected]>- Sebastian
Seems to be a bug in your MinGW installation, the function should be implemented in libmingwex.a. I'm using mingw runtime 3.15.2 and everything links just fine.
Best regards,
Filip Navara
Quoted 16 lines · Filip Navara
Quoted 15 lines · Sebastian Herbszt
$ make LINK i386-softmmu/qemu.exe c:/Programme/MinGW/lib/libSDLmain.a(SDL_win32_main.o):(.text+0x1b): undefined reference to `__mingw_vfprintf' collect2: ld returned 1 exit status make[1]: *** [qemu.exe] Error 1 make: *** [subdir-i386-softmmu] Error 2
537fe2d63f744e7c96ff45b60d09486a81958e06is first bad commit commit537fe2d63f744e7c96ff45b60d09486a81958e06
Author: Anthony Liguori <[email protected]>
Date: Tue Jun 16 15:17:22 2009 -0500Make sure to use
SDL_CFLAGSeverywhere we include SDL headers
Quoted 8 lines
Quoted 4 lines
Signed-off-by Anthony Liguori <[email protected]>- Sebastian
Seems to be a bug in your MinGW installation, the function should be implemented in libmingwex.a. I'm using mingw runtime 3.15.2 and everything links just fine.
Looks like my older MinGW doesn't implement it - will upgrade. Thanks.
- Sebastian
Quoted 16 lines · Filip Navara
Quoted 15 lines · Sebastian Herbszt
$ make LINK i386-softmmu/qemu.exe c:/Programme/MinGW/lib/libSDLmain.a(SDL_win32_main.o):(.text+0x1b): undefined reference to `__mingw_vfprintf' collect2: ld returned 1 exit status make[1]: *** [qemu.exe] Error 1 make: *** [subdir-i386-softmmu] Error 2
537fe2d63f744e7c96ff45b60d09486a81958e06is first bad commit commit537fe2d63f744e7c96ff45b60d09486a81958e06
Author: Anthony Liguori <[email protected]>
Date: Tue Jun 16 15:17:22 2009 -0500Make sure to use
SDL_CFLAGSeverywhere we include SDL headers
Quoted 8 lines
Quoted 4 lines
Signed-off-by Anthony Liguori <[email protected]>- Sebastian
Seems to be a bug in your MinGW installation, the function should be implemented in libmingwex.a. I'm using mingw runtime 3.15.2 and everything links just fine.
After the upgrade to 3.15.2 it does indeed link fine. But it seems the commit broke output to console:
Quoted 1 line
qemu-3f9a.exe -net nic,model=blub
Warning: vlan 0 is not connected to host network
Could not open '\\.\kqemu' - QEMU acceleration layer not activated: 2
qemu: Unsupported NIC model: blub
qemu: Supported NIC models: ne2k_pci,i82551,i82557b,i82559er,rtl8139,e1000,pcnet,virtio
Quoted 1 line
qemu-537f.exe -net nic,model=blub
(no output here)
- Sebastian
Quoted 40 lines · Sebastian Herbszt
Quoted 18 lines · Filip Navara
Quoted 16 lines · Sebastian Herbszt
$ make LINK i386-softmmu/qemu.exe c:/Programme/MinGW/lib/libSDLmain.a(SDL_win32_main.o):(.text+0x1b): undefined reference to `__mingw_vfprintf' collect2: ld returned 1 exit status make[1]: *** [qemu.exe] Error 1 make: *** [subdir-i386-softmmu] Error 2
537fe2d63f744e7c96ff45b60d09486a81958e06is first bad commit commit537fe2d63f744e7c96ff45b60d09486a81958e06
Author: Anthony Liguori <[email protected]>
Date: Tue Jun 16 15:17:22 2009 -0500Make sure to use
SDL_CFLAGSeverywhere we include SDL headersQuoted 8 lines
Quoted 4 lines
Signed-off-by Anthony Liguori <[email protected]>- Sebastian
Seems to be a bug in your MinGW installation, the function should be implemented in libmingwex.a. I'm using mingw runtime 3.15.2 and everything links just fine.
After the upgrade to 3.15.2 it does indeed link fine. But it seems the commit
broke output to console:Quoted 1 line
qemu-3f9a.exe -net nic,model=blub
Warning: vlan 0 is not connected to host network
Could not open '\\.\kqemu' - QEMU acceleration layer not activated: 2
qemu: Unsupported NIC model: blub
qemu: Supported NIC models:
ne2k_pci,i82551,i82557b,i82559er,rtl8139,e1000,pcnet,virtio
Quoted 5 lines
Quoted 1 line
qemu-537f.exe -net nic,model=blub
(no output here)
- Sebastian
I've already reported this earlier on the mailing list. Technically it's SDL "feature".
http://www.emclient.com/temp/libSDLmain.zip - here you can get precompiled library with disabled console redirection.
Best regards,
Filip Navara