ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Andrey Rahmatullin <wrar@altlinux.ru>
To: ALT Linux general discussion list <community@altlinux.ru>
Subject: [Comm] whois(1) doesn't cross-compile
Date: Wed, 30 Jun 2004 20:49:33 +0600
Message-ID: <20040630144933.GA8265@wrars-comp.wrarsdomain> (raw)

[-- 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 --]

             reply	other threads:[~2004-06-30 14:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-30 14:49 Andrey Rahmatullin [this message]
2004-06-30 16:08 ` Dmitry V. Levin
2004-06-30 16:21   ` Andrey Rahmatullin
2004-07-01  6:03     ` Alex Gorbachenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040630144933.GA8265@wrars-comp.wrarsdomain \
    --to=wrar@altlinux.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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