Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 301589 Details for
Bug 441429
gethostid fails when linked against libbind
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
bash shell script to reproduce fault
runtest.sh (text/plain), 785 bytes, created by
Anthony Harris
on 2008-04-08 01:54:37 UTC
(
hide
)
Description:
bash shell script to reproduce fault
Filename:
MIME Type:
Creator:
Anthony Harris
Created:
2008-04-08 01:54:37 UTC
Size:
785 bytes
patch
obsolete
>#!/bin/sh > >cmd=$0 > >function fail() { > printf "please install %s before executing %s\n" $1 $cmd > exit 1 >} > >cat > /tmp/test.c << EOF >#include <stdio.h> >#include <stdlib.h> >#include <unistd.h> > >int main(void) >{ > > > long x=gethostid(); > > fprintf(stderr,"Host ID is [%ld]\n",x); > > return EXIT_SUCCESS; >} >EOF >rpm -q bind-libbind-devel || fail "bind-libbind-devel" >rpm -q gcc || fail "gcc" > >echo this will work >echo gcc -o /tmp/test-nolibbind /tmp/test.cpp >echo /tmp/test-nolibbind >gcc -o /tmp/test-nolibbind /tmp/test.c >/tmp/test-nolibbind > >echo this will segfault on 64bit but work on 32 >echo gcc -o /tmp/test-libbind /tmp/test.cpp >echo /tmp/test-libbind >gcc -o /tmp/test-libbind /tmp/test.c -lbind >/tmp/test-libbind
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 441429
: 301589