ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] whois(1) doesn't cross-compile
@ 2004-06-30 14:49 Andrey Rahmatullin
  2004-06-30 16:08 ` Dmitry V. Levin
  0 siblings, 1 reply; 4+ messages in thread
From: Andrey Rahmatullin @ 2004-06-30 14:49 UTC (permalink / raw)
  To: ALT Linux general discussion list

[-- Attachment #1: Type: text/plain, Size: 843 bytes --]

Решил тут собрать whois под mingw32. Обрадовался, что весь его makefile
нужен только для команды $(CC) -O2 whois.c -o whois и начал пробовать. Для
начала пришлось вырезать из whois.c 3 хидера (sys/socket.h, netinet/in.h,
netdb.h) и воткнуть ws2tcpip.h. 
Компилю. Получаю `SIGALRM' undeclared. Поискал в
/usr/i386-mingw32msvc/include - не нашел. Не думая закомментировал 
signal(SIGALRM, alarm_handler);
Компилится - не линкуется. Подумал, добавил -lws2_32. Получил undefined
reference to `alarm'. Поискал в /usr/i386-mingw32msvc/lib - не нашел.
Почитал код. Подумал "В морг". Вызов alarm(2) не портируемый или как?

-- 
WBR, wRAR (ALT Linux Team)

> > [...] но сама работа Сизифа вполне стабильна
> Только перидоически что-то важное отваливается...
А вы не чешите это важное, оно и не отвалится :-)
		-- morozov in sisyphus@

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-07-01  6:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-30 14:49 [Comm] whois(1) doesn't cross-compile Andrey Rahmatullin
2004-06-30 16:08 ` Dmitry V. Levin
2004-06-30 16:21   ` Andrey Rahmatullin
2004-07-01  6:03     ` Alex Gorbachenko

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git