Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 397747 - =net-dialup/minicom-2.6 fails to compile - missing ETIME definition
Summary: =net-dialup/minicom-2.6 fails to compile - missing ETIME definition
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-05 10:35 UTC by Tibor Vago
Modified: 2012-03-09 02:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tibor Vago 2012-01-05 10:35:38 UTC
[ . . . ]
x86_64-gentoo-freebsd9.0-gcc -DHAVE_CONFIG_H -I. -I..  -I../lib -DCONFDIR=\"/etc/minicom\" -DLOCALEDIR=\"/usr/share/locale\"   -w -O2 -march=native -fno-strict-aliasing -pipe -W -Wall -Wextra -std=gnu99 -c main.c
main.c: In function 'get_alrm':
main.c:115:11: error: 'ETIME' undeclared (first use in this function)
main.c:115:11: note: each undeclared identifier is reported only once for each function it appears in
gmake[2]: *** [main.o] Error 1
[ . . . ]
Comment 1 Tibor Vago 2012-01-05 10:35:50 UTC
I found this in mysql/my_pthread.h:
#define ETIME ETIMEDOUT   /* For FreeBSD */

A added "-DETIME=ETIMEDOUT" to CFLAGS and minicom compiles fine.
Comment 2 Naohiro Aota gentoo-dev 2012-01-05 21:15:14 UTC
It would be better to fix it by a patch and send it to upstream.
Could you send it if possible.
Comment 4 Tibor Vago 2012-01-25 09:52:13 UTC
Patch was committed to the FreeBSD ports:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/comms/minicom/files/patch-src-main.c?rev=1.1;content-type=text%2Fplain

I don't know how to this committed to minicom mainline...
Comment 5 Tibor Vago 2012-01-25 09:58:32 UTC
Sorry, I was misunderstood Alioth tracker webpage style :)
The modification is in minicom repository too.
Comment 6 Naohiro Aota gentoo-dev 2012-03-08 14:03:20 UTC
(CC'ing to maintiaer to notice the change) I'll add the patch above in a week. Thanks.
Comment 7 Tim Harder gentoo-dev 2012-03-08 21:04:18 UTC
(In reply to comment #6)
> (CC'ing to maintiaer to notice the change) I'll add the patch above in a
> week. Thanks.

Go for it.
Comment 8 Naohiro Aota gentoo-dev 2012-03-09 02:48:48 UTC
Patch applied. Thanks!