getuid and geteuid are Unix functions that do not exist as such on
MS-Windows. You'll have to provide replacements, either one that does
something sensible, or a stub. Such replacement functions are also available
in the libc package from Gnuwin32; if you want to use this, then download
libc-*-lib.zip and link with libc.a (it is probably best not to install
libc.dll.a, since then your program will depend on a libc.dll).

Kees Zeelenberg

----- Oorspronkelijk bericht -----
Van: "Christophe Trophime" <[EMAIL PROTECTED]>
Aan: <[EMAIL PROTECTED]>
Verzonden: donderdag 23 januari 2003 11:04
Onderwerp: [GnuWin32-Users] trouble compiling dll for popt 1.6.4-4 with
cross mingw32-gcc on linux


> I have installed a brand new mingw32 cross compiler on my linux RedHat
> 7.2. I am trying to port my codes to Windows NT. I need to link my code
> with popt. So I tried to compile natively for NT popt on my linux box.
> I grab the source from cygwin... but I cannot build popt.dll with
> mingw32-gcc. I end up with the following compiler error
>
>
> /bin/sh ./libtool --mode=link i686-pc-mingw32-gcc  -g -O2   -o
> libpopt.la -rpath /usr/local/mingw32/lib -version-info 0:0:0
> -no-undefined popt.lo findme.lo poptparse.lo poptconfig.lo popthelp.lo
> rm -fr .libs/libpopt.la .libs/libpopt.* .libs/libpopt.*
> generating symbol list for `libpopt.la'
>  i686-pc-mingw32-dlltool --export-all --exclude-symbols
>
DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTSta
rtup@12,DllEntryPoint@12 --output-def .libs/libpopt-0.dll-def  popt.lo
findme.lo poptparse.lo poptconfig.lo popthelp.lo
>  sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" <
> .libs/libpopt-0.dll-def > .libs/libpopt.exp
> if test "x`sed 1q .libs/libpopt.exp`" = xEXPORTS; then cp
> .libs/libpopt.exp .libs/libpopt-0.dll-def; else echo EXPORTS >
> .libs/libpopt-0.dll-def; _lt_hint=1; cat .libs/libpopt.exp | while read
> symbol; do set dummy $symbol; case $# in 2) echo " $2 @ $_lt_hint ; " >>
> .libs/libpopt-0.dll-def;; 4) echo " $2 $3 $4 ; " >>
> .libs/libpopt-0.dll-def; _lt_hint=`expr $_lt_hint - 1`;; *) echo " $2 @
> $_lt_hint $3 ; " >> .libs/libpopt-0.dll-def;; esac; _lt_hint=`expr 1 +
> $_lt_hint`; done; fi
>  i686-pc-mingw32-gcc -Wl,--base-file,.libs/libpopt-0.dll-base -mdll
> -Wl,-e,_DllMainCRTStartup@12 -o .libs/libpopt-0.dll  popt.lo findme.lo
> poptparse.lo poptconfig.lo popthelp.lo
> poptconfig.lo(.text+0x687): In function `poptReadDefaultConfig':
> /home/trophime/Cygwin/popt/popt-1.6.4-new/poptconfig.c:172: undefined
> reference to `getuid'
>
poptconfig.lo(.text+0x68e):/home/trophime/Cygwin/popt/popt-1.6.4-new/poptcon
fig.c:172: undefined reference to `geteuid'
>
> where can I get getuid?
> Did I make something wrong?
>
> I configure popt with:
> ./configure --host=i686-pc-mingw32 --prefix=/usr/local/mingw32
>
> My libtool is 1.4.3-3 from RawHide which is different from the one used
> by cygwin (serial 46 instead of serial 47)
>
> Any help would be very much appreciated.
> Thanks
>
> --
> Christophe Trophime <[EMAIL PROTECTED]>
> LCMI
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> GnuWin32-Users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/gnuwin32-users
>



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
GnuWin32-Users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users

Reply via email to