Hi all,

after my latest fixes/hacks I'm still having problems with
compilation. Now it fails when calling libtool:

make[4]: Entering directory `/c/x/y/sofia-sip_1_12_10/libsofia-sip-ua/su'
/bin/sh ../../libtool --tag=CC --mode=link gcc -Wall     -g -O2 -I{srcdir}/win32
/pthread -DWINVER=0x0501        -D_WIN32_WINNT=0x0501 -DIN_LIBSOFIA_SIP_UA -DIN_
LIBSOFIA_SRES   -mms-bitfields  -pipe -mno-cygwin -mwindows -mconsole -Wall -g -
O0  -Wl,--enable-auto-image-base -o addrinfo.exe  addrinfo.o libsu.la -lpthread
-L./win32/pthread -lpthreadVC2 -lws2_32         -lwsock32
../../libtool: line 1933: cd: ./win32/pthread: Not a directory
libtool: link: cannot determine absolute directory name of `./win32/pthread'
gcc -Wall -g -O2 "-I{srcdir}/win32/pthread" -DWINVER=0x0501 -D_WIN32_WINNT=0x050
1 -DIN_LIBSOFIA_SIP_UA -DIN_LIBSOFIA_SRES -mms-bitfields -pipe -mno-cygwin -mwin
dows -mconsole -Wall -g -O0 -Wl,--enable-auto-image-base -o addrinfo.exe addrinf
o.o  ./.libs/libsu.a -L./win32/pthread -lpthread -lpthreadVC2 -lws2_32 -lwsock32

c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: cannot 
find -lpthreadVC2

It's precisely failing in this snippet of the libtool script:

      -L*)
        dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
        # We need an absolute path.
        case $dir in
        [\\/]* | [A-Za-z]:[\\/]*) ;;
        *)
          absdir=`cd "$dir" && pwd`
          if test -z "$absdir"; then
            $echo "$modename: cannot determine absolute directory name of 
\`$dir'" 1>&2
            absdir="$dir"
            notinst_path="$notinst_path $dir"
          fi
          dir="$absdir"
          ;;

Since $dir is: ./win32/pthread, and the current dir is
libsofia-sip-ua/su, it's trying to cd to
libsofia-sip-ua/su/win32/pthread which is unexisting. I hacked libtool
to do:
          absdir=`cd ../../"$dir" && pwd`

but this doesn't sound like the correct solution, as libtool is
auto-generated (and I'm rather clueless about it and all the libtool
thing) .

Can someone give some hint about a correct fix?

Regards.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to