| View previous topic :: View next topic |
| Author |
Message |
kdman
Joined: 25 Jun 2009 Posts: 4
|
Posted: Thu Jun 25, 2009 5:32 am Post subject: URL authentication, Nothing happen |
|
|
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 |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Jun 25, 2009 11:44 am Post subject: |
|
|
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 |
|
 |
kdman
Joined: 25 Jun 2009 Posts: 4
|
Posted: Thu Jun 25, 2009 12:50 pm Post subject: |
|
|
| 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 |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Jun 25, 2009 3:05 pm Post subject: |
|
|
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 |
|
 |
kdman
Joined: 25 Jun 2009 Posts: 4
|
Posted: Thu Jun 25, 2009 9:20 pm Post subject: |
|
|
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?
do I need to uncomment HAVE_CURL too?
Thank you for your time, it's very fast support  |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Jun 26, 2009 12:13 am Post subject: |
|
|
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 |
|
 |
kdman
Joined: 25 Jun 2009 Posts: 4
|
Posted: Fri Jun 26, 2009 5:36 am Post subject: |
|
|
after installing libcurl, every thing go fine.
Big thanks for you |
|
| Back to top |
|
 |
|