Bug 67911 - popt 1.6.4 does not compile with mingw32 due to getuid/geteuid
Summary: popt 1.6.4 does not compile with mingw32 due to getuid/geteuid
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: popt
Version: 7.3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-07-04 07:27 UTC by Matthew Mueller
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-07-04 07:28:51 UTC
Embargoed:


Attachments (Terms of Use)
fix (1.35 KB, patch)
2002-07-04 07:28 UTC, Matthew Mueller
no flags Details | Diff

Description Matthew Mueller 2002-07-04 07:27:16 UTC
Description of Problem:
getuid/geteuid don't exist on windows.

Version-Release number of selected component (if applicable):
1.6.4

How Reproducible:
Always.

Steps to Reproduce:
1. CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++ ./configure --build=i386-linux --host=i586-mingw32msvc
2. make

Actual Results:
/bin/sh ./libtool --mode=link i586-mingw32msvc-gcc  -g -O2  -o test1.exe -all-static test1.o libpopt.la
i586-mingw32msvc-gcc -g -O2 -o test1.exe -static test1.o  ./.libs/libpopt.a
./.libs/libpopt.a(poptconfig.o): In function `poptReadDefaultConfig':
/x/donut/nb/src/popt-1.6.4/poptconfig.c:172: undefined reference to `getuid'
/x/donut/nb/src/popt-1.6.4/poptconfig.c:172: undefined reference to `geteuid'
make[2]: *** [test1.exe] Error 1


Expected Results:
No errors.


Additional Information:
Simple fix, just check for getuid and geteuid in configure.  See attached patch.

Comment 1 Matthew Mueller 2002-07-04 07:28:46 UTC
Created attachment 63644 [details]
fix

Comment 2 Jeff Johnson 2002-07-13 19:21:30 UTC
Patch applied in CVS, should be in rpm-4.1-0.48 sources.


Note You need to log in before you can comment on or make changes to this bug.