i have experienced many issues with libtool and cross compiling.
building dlls is also a major pain the the a.

You can assume that the libtool is wrong for most flags,
why is it using cygwin for that example you posted?

Mike g has done some experiments with that, maybe he cares to comment.

mike


--- Christophe Trophime <[EMAIL PROTECTED]> wrote:
> 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,DllMainCRTStartup@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/poptconfig.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


=====
James Michael DuPont
http://introspector.sourceforge.net/

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


-------------------------------------------------------
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