Bug 13096 - Xmon 1.5.6: Fails to build from source on RHEL 5
Summary: Xmon 1.5.6: Fails to build from source on RHEL 5
Status: RESOLVED NOTOURBUG
Alias: None
Product: xorg
Classification: Unclassified
Component: * Other (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium critical
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-05 06:24 UTC by Alex Page
Modified: 2009-09-06 23:45 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch for gethostbyname build issue on RHEL5 (125 bytes, patch)
2007-11-05 06:25 UTC, Alex Page
no flags Details | Splinter Review

Description Alex Page 2007-11-05 06:24:41 UTC
Xmon 1.5.6 fails to build from source on RHEL5:

~/xmon.1.5.6$ xmkmf
imake -DUseInstalled -I/usr/share/X11/config

~/xmon.1.5.6$ make
gcc -g      -I/usr/include    -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L                             -D_POSIX_SOURCE -D_XOPEN_SOURCE                    -D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64                                                       -DFUNCPROTO=15 -DNARROWPROTO       -c -o decode11.o decode11.c
gcc -g      -I/usr/include    -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L                             -D_POSIX_SOURCE -D_XOPEN_SOURCE                    -D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64                                                       -DFUNCPROTO=15 -DNARROWPROTO       -c -o linkl.o linkl.c
gcc -g      -I/usr/include    -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L                             -D_POSIX_SOURCE -D_XOPEN_SOURCE                    -D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64                                                       -DFUNCPROTO=15 -DNARROWPROTO       -c -o print11.o print11.c
gcc -g      -I/usr/include    -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L                             -D_POSIX_SOURCE -D_XOPEN_SOURCE                    -D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64                                                       -DFUNCPROTO=15 -DNARROWPROTO       -c -o server.o server.c
gcc -g      -I/usr/include    -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L                             -D_POSIX_SOURCE -D_XOPEN_SOURCE                    -D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64                                                       -DFUNCPROTO=15 -DNARROWPROTO       -c -o fd.o fd.c
gcc -g      -I/usr/include    -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L                             -D_POSIX_SOURCE -D_XOPEN_SOURCE                    -D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64                                                       -DFUNCPROTO=15 -DNARROWPROTO       -c -o main.o main.c
main.c:79: error: conflicting types for 'gethostname'
/usr/include/unistd.h:843: error: previous declaration of 'gethostname' was here
main.c: In function 'main':
main.c:132: warning: cast to pointer from integer of different size
main.c: In function 'SetUpConnectionSocket':
main.c:402: warning: cast to pointer from integer of different size
main.c: In function 'ReadStdin':
main.c:614: warning: cast from pointer to integer of different size
main.c: In function 'NewConnection':
main.c:824: warning: cast from pointer to integer of different size
make: *** [main.o] Error 1

The cause of the error is a declaration of gethostname at main.c:79 which uses int rather than size_t for the length field.
Comment 1 Alex Page 2007-11-05 06:25:39 UTC
Created attachment 12356 [details] [review]
Patch for gethostbyname build issue on RHEL5
Comment 2 Alan Coopersmith 2009-09-06 23:45:21 UTC
X.Org doesn't maintain xmon.   Google suggests there was a sourceforge
project site for it, but it seems to be many years idle now.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.