Discussion:
compiling on win2000/cygwin
12034981309423883238271
2003-03-15 19:35:36 UTC
Permalink
windows 2000
libdvdcss-1.2.6
using cygwin with gcc -mno-cygwin

here's what i've done:
./bootstrap
CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin" ./configure
make

and i get the following error:

gcc -mno-cygwin -DHAVE_CONFIG_H -I. -I. -I.. -D_LARGEFILE64_SOURCE -
D_FILE_OFFS
ET_BITS=64 -DDVDCSS_DIST -Wsign-compare -Wall -g -O2 -MT libdvdcss.lo -MD
-MP -M
F .deps/libdvdcss.Tpo -c libdvdcss.c -DPIC -o .libs/libdvdcss.o
In file included from libdvdcss.c:123:
common.h:49:1: warning: "PATH_MAX" redefined
In file included from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/limits.h:132,
from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/syslimits.h:7,

from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/limits.h:11,
from /usr/include/mingw/sys/param.h:29,
from libdvdcss.c:104:
/usr/include/mingw/limits.h:44:1: warning: this is the location of the previous
definition
In file included from libdvdcss.c:127:
device.h:33:80: sys/uio.h: No such file or directory
libdvdcss.c: In function `dvdcss_open':
libdvdcss.c:390: too many arguments to function `mkdir'
libdvdcss.c:403: too many arguments to function `mkdir'
libdvdcss.c: In function `dvdcss_readv':
libdvdcss.c:601: dereferencing pointer to incomplete type
libdvdcss.c:602: dereferencing pointer to incomplete type
libdvdcss.c:615: increment of pointer to unknown structure
libdvdcss.c:615: arithmetic on pointer to an incomplete type
libdvdcss.c:616: dereferencing pointer to incomplete type
libdvdcss.c:617: dereferencing pointer to incomplete type
make[3]: *** [libdvdcss.lo] Error 1
make[3]: Leaving directory `/home/jon/dev/libdvdcss-1.2.6/src'

i have successfully built other libs (mad-0.14.2b) from cygwin, but
i am having troubles building videolan/vlc libs.

any suggestions?

thanks,
jon
--
This is the libdvdcss-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
Gildas Bazin
2003-03-17 01:14:54 UTC
Permalink
Post by 12034981309423883238271
windows 2000
libdvdcss-1.2.6
using cygwin with gcc -mno-cygwin
./bootstrap
CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin" ./configure
make
common.h:49:1: warning: "PATH_MAX" redefined
In file included from
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/limits.h:132,
Post by 12034981309423883238271
from
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/syslimits.h:7,
Post by 12034981309423883238271
from
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/limits.h:11,
Post by 12034981309423883238271
from /usr/include/mingw/sys/param.h:29,
/usr/include/mingw/limits.h:44:1: warning: this is the location of the
previous
Post by 12034981309423883238271
definition
device.h:33:80: sys/uio.h: No such file or directory
Libdvdcss 1.2.6 compiles fine with cygwin and -mno-cygwin here.

The errors above strongly suggest that you're not using the mingw compiler
(this compiler is normally used when you pass the -mno-cygwin option to
gcc). Make sure you have the gcc-mingw, mingw-runtime and w32api packages
installed on your cygwin distribution.

Hope this helps,

--
Gildas
--
This is the libdvdcss-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
12034981309423883238271
2003-03-17 18:57:39 UTC
Permalink
I double checked that I have gcc-mingw (20020817-5),
mingw-runtime (2.4-1) and w32api (2.2-1) packages.

Now I have run:

CC="gcc -v -mno-cygwin" CXX="g++ -v -mno-cygwin" ./configure
make

And I see:

....
gcc -v -mno-cygwin -DHAVE_CONFIG_H -I. -I. -I.. -D_LARGEFILE64_SOURCE -
D_FILE_O
FFSET_BITS=64 -DDVDCSS_DIST -Wsign-compare -Wall -g -O2 -MT libdvdcss.lo
-MD -MP
-MF .deps/libdvdcss.Tpo -c libdvdcss.c -DPIC
Reading specs from /usr/lib/gcc-lib/i686-pc-mingw32/3.2/specs
Configured with: /netrel/src/gcc-3.2-3/configure --enable-languages=c,c++,f77,ja
va --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --with
out-included-gettext --enable-interpreter --disable-sjlj-exceptions --disable-ve
rsion-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-pc
-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-prefix=/usr
--sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --libexecd
ir=/usr/sbin
Thread model: posix
gcc version 3.2 20020927 (prerelease)
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/cc1.exe -lang-c -v -I. -I. -I.. -MD libdvd
css.d -MF .deps/libdvdcss.Tpo -MP -MT libdvdcss.lo -D__GNUC__=3 -
D__GNUC_MINOR__
=2 -D__GNUC_PATCHLEVEL__=0 -D__GXX_ABI_VERSION=102 -D_X86_=1 -
D_X86_=1 -Asystem=
winnt -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -
Di386 -D__i3
86 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ -D__tune_pentium2__ -
D__tune
_pentium3__ -D__stdcall=__attribute__((__stdcall__)) -D__fastcall=__attribute__(
(__fastcall__)) -D__cdecl=__attribute__((__cdecl__)) -D_stdcall=__attribute__((_
_stdcall__)) -D_fastcall=__attribute__((__fastcall__)) -D_cdecl=__attribute__((_
_cdecl__)) -D__declspec(x)=__attribute__((x)) -D__i386__ -D__i386 -
D__MSVCRT__ -
D__MINGW32__ -DWIN32 -D_WIN32 -D__WIN32 -D__WIN32__ -DWINNT -
isystem /usr/lib/gc
c-lib/i686-pc-mingw32/3.2/../../../../include/w32api -isystem /usr/lib/gcc-lib/i
686-pc-mingw32/3.2/../../../../i686-pc-mingw32/lib/../../include/w32api -DHAVE_C
ONFIG_H -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -
DDVDCSS_DIST -DPIC libdvdc
ss.c -quiet -dumpbase libdvdcss.c -mno-cygwin -g -O2 -Wsign-compare -Wall -versi
on -o /cygdrive/c/DOCUME~1/jon/LOCALS~1/Temp/ccHmja6Q.s
GNU CPP version 3.2 20020927 (prerelease) (cpplib) (80386, BSD syntax)
GNU C version 3.2 20020927 (prerelease) (i686-pc-cygwin)
compiled by GNU C version 3.2 20020927 (prerelease).
ignoring nonexistent directory "/usr/local/include/mingw/mingw"
ignoring nonexistent directory "/usr/i686-pc-mingw32/include/usr/include/mingw"
ignoring duplicate directory "."
ignoring duplicate directory "/usr/i686-pc-mingw32/lib/../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
.
..
/usr/include/w32api
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/include
/usr/include/mingw
End of search list.
In file included from libdvdcss.c:123:
common.h:49:1: warning: "PATH_MAX" redefined
In file included from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/limits.h:132,
from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/syslimits.h:7,

from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/limits.h:11,
from /usr/include/mingw/sys/param.h:29,
from libdvdcss.c:104:
/usr/include/mingw/limits.h:44:1: warning: this is the location of the previous
definition



It seems that I am missing some include directories or my gcc is not
looking in the correct directories... So my question now is:
How do I properly setup my cygwin devel environment? I was
under the impression that I should install cygwin with the
gcc-mingw, mingw-runtime, and w32api packages. Do I need to
also install MinGW from www.mingw.org? Or, is there anything else
I need to install? Do I need to do anything else in cygwin to get
-mno-cygwin to work properly?

I'm a bit confused. Thanks for any help.
jon
--
This is the libdvdcss-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
h***@netcabo.pt
2003-03-20 10:59:12 UTC
Permalink
I apologise for not being able to provide details because I'm half a world away from my development computer, but I can give a general idea of what's happening. I had the same problem when building with the -mno-cygwin option.

The compile part works OK, the problem is that libtool is not generating correctly. When you go searching through the libtool script you will find an occurrance of calling gcc/g++ that doesn't include the -mno-cygwin option. You will also find a part in there where the output library is changed to cyg*.dll that is still there. I'm no sed expert but I just changed that line to remove the cyg and it works.

I ment to try and fix these correctly and provide a patch, but I won't be home again for a few months. I had to unsubscribe from the list to reduce the e-mail traffic, please include my address in replies.

Joe.


-----Original Message-----
From: "libdvdcss-devel-***@videolan.org" <libdvdcss-devel-***@videolan.org> on behalf of "12034981309423883238271" <***@inappropriate.com>
Sent: Monday, March 17, 2003 6:57 PM
To: "libdvdcss-***@videolan.org" <libdvdcss-***@videolan.org>
Subject: Re: compiling on win2000/cygwin


I double checked that I have gcc-mingw (20020817-5),
mingw-runtime (2.4-1) and w32api (2.2-1) packages.

Now I have run:

CC="gcc -v -mno-cygwin" CXX="g++ -v -mno-cygwin" ./configure
make

And I see:

....
gcc -v -mno-cygwin -DHAVE_CONFIG_H -I. -I. -I.. -D_LARGEFILE64_SOURCE -
D_FILE_O
FFSET_BITS=64 -DDVDCSS_DIST -Wsign-compare -Wall -g -O2 -MT libdvdcss.lo
-MD -MP
-MF .deps/libdvdcss.Tpo -c libdvdcss.c -DPIC
Reading specs from /usr/lib/gcc-lib/i686-pc-mingw32/3.2/specs
Configured with: /netrel/src/gcc-3.2-3/configure --enable-languages=c,c++,f77,ja
va --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --with
out-included-gettext --enable-interpreter --disable-sjlj-exceptions --disable-ve
rsion-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-pc
-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-prefix=/usr
--sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --libexecd
ir=/usr/sbin
Thread model: posix
gcc version 3.2 20020927 (prerelease)
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/cc1.exe -lang-c -v -I. -I. -I.. -MD libdvd
css.d -MF .deps/libdvdcss.Tpo -MP -MT libdvdcss.lo -D__GNUC__=3 -
D__GNUC_MINOR__
=2 -D__GNUC_PATCHLEVEL__=0 -D__GXX_ABI_VERSION=102 -D_X86_=1 -
D_X86_=1 -Asystem=
winnt -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -
Di386 -D__i3
86 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ -D__tune_pentium2__ -
D__tune
_pentium3__ -D__stdcall=__attribute__((__stdcall__)) -D__fastcall=__attribute__(
(__fastcall__)) -D__cdecl=__attribute__((__cdecl__)) -D_stdcall=__attribute__((_
_stdcall__)) -D_fastcall=__attribute__((__fastcall__)) -D_cdecl=__attribute__((_
_cdecl__)) -D__declspec(x)=__attribute__((x)) -D__i386__ -D__i386 -
D__MSVCRT__ -
D__MINGW32__ -DWIN32 -D_WIN32 -D__WIN32 -D__WIN32__ -DWINNT -
isystem /usr/lib/gc
c-lib/i686-pc-mingw32/3.2/../../../../include/w32api -isystem /usr/lib/gcc-lib/i
686-pc-mingw32/3.2/../../../../i686-pc-mingw32/lib/../../include/w32api -DHAVE_C
ONFIG_H -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -
DDVDCSS_DIST -DPIC libdvdc
ss.c -quiet -dumpbase libdvdcss.c -mno-cygwin -g -O2 -Wsign-compare -Wall -versi
on -o /cygdrive/c/DOCUME~1/jon/LOCALS~1/Temp/ccHmja6Q.s
GNU CPP version 3.2 20020927 (prerelease) (cpplib) (80386, BSD syntax)
GNU C version 3.2 20020927 (prerelease) (i686-pc-cygwin)
compiled by GNU C version 3.2 20020927 (prerelease).
ignoring nonexistent directory "/usr/local/include/mingw/mingw"
ignoring nonexistent directory "/usr/i686-pc-mingw32/include/usr/include/mingw"
ignoring duplicate directory "."
ignoring duplicate directory "/usr/i686-pc-mingw32/lib/../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
.
..
/usr/include/w32api
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/include
/usr/include/mingw
End of search list.
In file included from libdvdcss.c:123:
common.h:49:1: warning: "PATH_MAX" redefined
In file included from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/limits.h:132,
from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/syslimits.h:7,

from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/limits.h:11,
from /usr/include/mingw/sys/param.h:29,
from libdvdcss.c:104:
/usr/include/mingw/limits.h:44:1: warning: this is the location of the previous
definition



It seems that I am missing some include directories or my gcc is not
looking in the correct directories... So my question now is:
How do I properly setup my cygwin devel environment? I was
under the impression that I should install cygwin with the
gcc-mingw, mingw-runtime, and w32api packages. Do I need to
also install MinGW from www.mingw.org? Or, is there anything else
I need to install? Do I need to do anything else in cygwin to get
-mno-cygwin to work properly?

I'm a bit confused. Thanks for any help.
jon
--
This is the libdvdcss-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
--
This is the libdvdcss-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
Loading...