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 

URL authentication, Nothing happen

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



Joined: 25 Jun 2009
Posts: 4

PostPosted: Thu Jun 25, 2009 5:32 am    Post subject: URL authentication, Nothing happen Reply with quote

I tried many time with many PHP scripts, I build some and even the main example script, but always no action from PHP side.

the listeners still can listen even when I didn't send a PHP respond at all, so I believe there something to active in order to run URL authentication.

Note: each time I edit icecast.xml file, I kill Icecast process then start it again.
I'm using icecast-2.3.2 on linux.

Any advice please?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Jun 25, 2009 11:44 am    Post subject: Reply with quote

If the scripts are not being run then either the xml does not have the URLs to run (commented out or the option not is listener_add etc) or icecast has not been built with libcurl

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kdman



Joined: 25 Jun 2009
Posts: 4

PostPosted: Thu Jun 25, 2009 12:50 pm    Post subject: Reply with quote

I entered url correctly in icecast.xml file, but about libcurl do i have to do something in install? how can I confirm that it build with libcurl?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Jun 25, 2009 3:05 pm    Post subject: Reply with quote

look for HAVE_AUTH_URL in the config.h, if that is set to 1 then the problem will be the xml definition.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kdman



Joined: 25 Jun 2009
Posts: 4

PostPosted: Thu Jun 25, 2009 9:20 pm    Post subject: Reply with quote

you are right, HAVE_AUTH_URL in config.h was commented out by default
I didn't read about that.

Now I think it have to be like this:
/* Define to compile in auth URL support code */
#define HAVE_AUTH_URL 1

now when I do "make" I got this error:

Code:

/path/icecast-2.3.2/src/auth.c:559: undefined reference to `auth_get_url_auth'
collect2: ld returned 1 exit status
make[3]: *** [icecast] Error 1
make[3]: Leaving directory `/path/icecast-2.3.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/path/icecast-2.3.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/path/icecast-2.3.2'
make: *** [all] Error 2


I tried to edit some files but no luck.
is there any docs about this? Embarassed

do I need to uncomment HAVE_CURL too?

Thank you for your time, it's very fast support Cool
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Jun 26, 2009 12:13 am    Post subject: Reply with quote

The configure will check to see if libcurl support is possible and enables that setting if possible. I suspect you don't have the development package for libcurl installed. The config.log will will have the detailed message referring to the libcurl checking.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kdman



Joined: 25 Jun 2009
Posts: 4

PostPosted: Fri Jun 26, 2009 5:36 am    Post subject: Reply with quote

after installing libcurl, every thing go fine.

Big thanks for 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 -> Icecast Server 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