Fwd: wingcc link problem
Please take attention, is it bug or I use winegcc incorrectly? ---------- Forwarded message ---------- Subject: wingcc link problem Date: 24 Сентябрь 2005 16:51 From: Vitaly Lipatov <lav(a)etersoft.ru> To: wine-devel(a)winehq.org Last days I can't compile any program with winegcc: $ winegcc buildtest.c a.out.exe-u5twQI.spec.o(.data+0x28): In function `__wine_spec_nt_header': : undefined reference to `__wine_spec_exe_entry' a.out.exe-u5twQI.spec.o(.init+0x1): undefined reference to `__wine_spec_init_ctor' collect2: ld returned 1 exit status winegcc: gcc failed. $ cat buildtest.c int main(int argc, char **argv) { exit(0); } Any suggestions? ------------------------------------------------------- -- Lav Виталий Липатов Россия, Санкт-Петербург. www.etersoft.ru GNU! ALT Linux Team! WINE! WIKI! LaTeX! LyX!
В сообщении от 16 Октябрь 2005 18:51 Dimi Paun написал(a):
On Sun, October 16, 2005 9:05 am, Vitaly Lipatov said:
Please take attention, is it bug or I use winegcc incorrectly?
Yes, this seems to be a bug. What we can do with this problem? I can't compile any program... I can't figure what thing needs fixes:
In function `__wine_spec_nt_header': : undefined reference to `__wine_spec_exe_entry' doublegl.exe-wRtEBe.spec.o(.init+0x1): undefined reference to `__wine_spec_init_ctor' collect2: ld returned 1 exit status -- Vitaly Lipatov, ALT Linux Team Russia, Saint-Petersburg, www.etersoft.ru
Le jeu 03/11/2005 à 15:53, Vitaly Lipatov a écrit :
В сообщении от 16 Октябрь 2005 18:51 Dimi Paun написал(a):
On Sun, October 16, 2005 9:05 am, Vitaly Lipatov said:
Please take attention, is it bug or I use winegcc incorrectly?
Yes, this seems to be a bug. What we can do with this problem? I can't compile any program... I can't figure what thing needs fixes:
In function `__wine_spec_nt_header': : undefined reference to `__wine_spec_exe_entry' doublegl.exe-wRtEBe.spec.o(.init+0x1): undefined reference to `__wine_spec_init_ctor' collect2: ld returned 1 exit status
winegcc hasn't been updated to know about winecrt0, and pass it implicitely to gcc via -lwinecrt0. Not sure yet why it does work for building programs/... I'l send a patch soon for this problem. Vincent
On Friday 04 November 2005 02:21, Vincent Béron wrote:
winegcc hasn't been updated to know about winecrt0, and pass it implicitely to gcc via -lwinecrt0. Really I just had not libwinecrt0.a installed in system. Now it compile without -lwinecrt0. Not sure yet why it does work for building programs/...
I'l send a patch soon for this problem. I don't know if some problem still there :)
-- Lav Vitaly Lipatov Russia, Saint-Petersburg GNU! ALT Linux Team! WINE! LaTeX! LyX!
Le jeu 03/11/2005 à 18:46, Vitaly Lipatov a écrit :
On Friday 04 November 2005 02:21, Vincent Béron wrote:
winegcc hasn't been updated to know about winecrt0, and pass it implicitely to gcc via -lwinecrt0. Really I just had not libwinecrt0.a installed in system. Now it compile without -lwinecrt0.
Looks like our messages crossed :)
Not sure yet why it does work for building programs/...
It does because the make process gives explicit paths for all dlls linked in.
I'l send a patch soon for this problem. I don't know if some problem still there :)
At first I thought there was one because I could reproduce it in a build tree, but it was because I didn't give winegcc/winebuild the proper paths for finding libwinecrt0.a (-L.../dlls). Do you know why you didn't have libwinecrt0.a installed? Vincent
В сообщении от 4 Ноябрь 2005 03:17 Vincent Béron написал(a):
Le jeu 03/11/2005 à 18:46, Vitaly Lipatov a écrit :
Really I just had not libwinecrt0.a installed in system. Now it compile without -lwinecrt0.
Looks like our messages crossed :) :)
At first I thought there was one because I could reproduce it in a build tree, but it was because I didn't give winegcc/winebuild the proper paths for finding libwinecrt0.a (-L.../dlls).
Do you know why you didn't have libwinecrt0.a installed? Yes, I had not packed it in rpm package :)
Thank you for help.
Vincent
-- Vitaly Lipatov, ALT Linux Team Russia, Saint-Petersburg, www.etersoft.ru
Le jeu 03/11/2005 à 18:21, Vincent Béron a écrit :
Le jeu 03/11/2005 à 15:53, Vitaly Lipatov a écrit :
В сообщении от 16 Октябрь 2005 18:51 Dimi Paun написал(a):
On Sun, October 16, 2005 9:05 am, Vitaly Lipatov said:
Please take attention, is it bug or I use winegcc incorrectly?
Yes, this seems to be a bug. What we can do with this problem? I can't compile any program... I can't figure what thing needs fixes:
In function `__wine_spec_nt_header': : undefined reference to `__wine_spec_exe_entry' doublegl.exe-wRtEBe.spec.o(.init+0x1): undefined reference to `__wine_spec_init_ctor' collect2: ld returned 1 exit status
winegcc hasn't been updated to know about winecrt0, and pass it implicitely to gcc via -lwinecrt0.
Stupid me... that's not the problem. Have you installed (make install) your wine, or are you running from inside your build tree? I get the same error when I'm missing libwinecrt0.a in the -L paths. Vincent
participants (4)
-
Dimi Paun -
Vincent Béron -
Vitaly Lipatov -
Vitaly Lipatov