View previous topic :: View next topic |
Author |
Message |
level20peon
Joined: 24 Feb 2008 Posts: 19
|
Posted: Sun Feb 05, 2012 11:19 am Post subject: [SOLVED] error uppon kh31.7 compilation in cygwin |
|
|
When I run autogen.sh, one error pops up while ./configure is executed:
Code: |
configure: WARNING: winsock2.h: present but cannot be compiled
configure: WARNING: winsock2.h: check for missing prerequisite headers?
configure: WARNING: winsock2.h: see the Autoconf documentation
configure: WARNING: winsock2.h: section "Present But Cannot Be Compiled"
configure: WARNING: winsock2.h: proceeding with the compiler's result
configure: WARNING: ## ---------------------------- ##
configure: WARNING: ## Report this to karl@xiph.org ##
configure: WARNING: ## ---------------------------- ##
|
As a result, make fails in the end. Since the error was kind enough to personally ask me to report this, I am hereby doing it.
I have uploaded the full config.log here.
Last edited by level20peon on Mon Feb 06, 2012 7:23 pm; edited 1 time in total |
|
Back to top |
|
|
level20peon
Joined: 24 Feb 2008 Posts: 19
|
Posted: Sun Feb 05, 2012 2:38 pm Post subject: |
|
|
As it turns out, this error is the result of a conflict between various cygwin gcc dependencies.
I can get past that winsock2.h error by specifying some parameters when I use configure:
Code: |
./configure --host=i686-pc-cygwin --build=i686-pc-mingw32 CC="gcc -mno-cygwin" |
But it seems, the check for libvorbis is not functioning properly:
Code: |
checking for libvorbis... old version found
configure: error: must have Ogg Vorbis v1.0 or above installed
|
I just doublechecked that but I definitely have libvorbis 1.3.3-1 installed. There is no newer version of libvorbis availabe. The config.log can be found here.
Last edited by level20peon on Sun Feb 05, 2012 2:58 pm; edited 1 time in total |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Feb 05, 2012 2:40 pm Post subject: |
|
|
looks like a header ordering issue. mingw32 here has no problem but obviously cygwin does. probably just needs a header check moving nearer the beginning. Will get back to you on that.
karl. |
|
Back to top |
|
|
level20peon
Joined: 24 Feb 2008 Posts: 19
|
Posted: Sun Feb 05, 2012 3:02 pm Post subject: |
|
|
I updated my previous post with a new config.log. The interesting part probably is:
Code: |
/home/Administrator/icecast-kh/conftest.c:54: undefined reference to `_ogg_stream_init' |
|
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Feb 05, 2012 4:58 pm Post subject: |
|
|
yeah, just been checking myself. you have the right idea there on cygwin, the last issue looks to be missing vorbis includes
karl. |
|
Back to top |
|
|
level20peon
Joined: 24 Feb 2008 Posts: 19
|
Posted: Sun Feb 05, 2012 6:19 pm Post subject: |
|
|
So is there anything you or I could do about this ? |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Feb 05, 2012 6:37 pm Post subject: |
|
|
The missing vorbis headers is down to a missed libvorbis devel or similar named package. I suspect you only have the runtime package installed. Don't forget that several external libs are usually required, not just libogg, but libxml2, libcurl etc each of which would need a dependency on the devel package for compiling.
karl. |
|
Back to top |
|
|
level20peon
Joined: 24 Feb 2008 Posts: 19
|
Posted: Sun Feb 05, 2012 6:52 pm Post subject: |
|
|
I don't have the runtime package installed at all, just the libvorbis-devel. If I don't use the CC="gcc -mno-cygwin" parameter, ./configure does find the libvorbis library. But since in that case the winsock2.h cannot be compiled, I have to use mentioned parameter. I just don't know any more approaches I could test, in order to make it compile... I spent the better part of the day doing research on this matter, but up until now without success. |
|
Back to top |
|
|
level20peon
Joined: 24 Feb 2008 Posts: 19
|
Posted: Sun Feb 05, 2012 8:06 pm Post subject: |
|
|
Just for the sake of completeness, I just uninstalled the cygwin libvorbis-dev package and then compiled and installed libvorbis from source myself from http://svn.xiph.org/trunk/vorbis/. It makes no difference; ./configure still displays "old version found" (must have Ogg Vorbis v1.0 or above installed). Could I maybe just force the script to use this old version (it actually is 1.3.3, so the requirements actually are met) ? |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Feb 05, 2012 8:29 pm Post subject: |
|
|
I guess that those libs specifically built for cygwin use. I suppose I need to expand on that test for winsock2, needed for mingw32 but not cygwin even though it does exist on cygwin. Will rebuild a configure script for that shortly.
karl |
|
Back to top |
|
|
level20peon
Joined: 24 Feb 2008 Posts: 19
|
Posted: Mon Feb 06, 2012 7:16 pm Post subject: |
|
|
Just for the sake of completing this thread: Karl did it, yet again. The code on the git repository now is buildable in cygwin environments.
Thank you! |
|
Back to top |
|
|
|