Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[SOLVED] error uppon kh31.7 compilation in cygwin

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Dev Branches
View previous topic :: View next topic  
Author Message
level20peon



Joined: 24 Feb 2008
Posts: 19

PostPosted: Sun Feb 05, 2012 11:19 am    Post subject: [SOLVED] error uppon kh31.7 compilation in cygwin Reply with quote

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
View user's profile Send private message
level20peon



Joined: 24 Feb 2008
Posts: 19

PostPosted: Sun Feb 05, 2012 2:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Feb 05, 2012 2:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
level20peon



Joined: 24 Feb 2008
Posts: 19

PostPosted: Sun Feb 05, 2012 3:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Feb 05, 2012 4:58 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
level20peon



Joined: 24 Feb 2008
Posts: 19

PostPosted: Sun Feb 05, 2012 6:19 pm    Post subject: Reply with quote

So is there anything you or I could do about this ?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Feb 05, 2012 6:37 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
level20peon



Joined: 24 Feb 2008
Posts: 19

PostPosted: Sun Feb 05, 2012 6:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
level20peon



Joined: 24 Feb 2008
Posts: 19

PostPosted: Sun Feb 05, 2012 8:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Feb 05, 2012 8:29 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
level20peon



Joined: 24 Feb 2008
Posts: 19

PostPosted: Mon Feb 06, 2012 7:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Dev Branches All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber