Cliff,

I faced the same issue. Please see your gcc version. Install gcc < 4.5 because they have changed something regarding paths.

while using FS version 1.0.6 i faced switch.h problem and on git HEAD i faced the same problem as yours.  

I installed gcc-4.4 and compilation worked well. Also did you follow ./bootstrap.sh and ./configure ? 

--
regards,

Abdul Basit




On Sun, Oct 23, 2011 at 9:29 PM, Madovsky <infos@madovsky.org> wrote:
did you try sh boostrap.sh before compile ?

----- Original Message -----
From: "Cliff Wells" <cliff@develix.com>
To: <freeswitch-users@lists.freeswitch.org>
Sent: Sunday, October 23, 2011 12:25 PM
Subject: [Freeswitch-users] Make error on Scientific Linux 6.1


> I've compiled FS on SL6.1 previously without issue.  I'm wondering how I
> can get more informative output so I can figure out if I'm missing a
> dependency, have a conflicting library installed, or whatever:
>
> Compiling ../../../../libs/xmlrpc-c/lib/expat/xmltok/xmltok.c...
> Compiling
> /usr/local/src/freeswitch/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c...
> quiet_libtool: compile:
>  gcc -w -I../../../../libs/xmlrpc-c/lib/expat/xmlparse -I../../../../libs/xmlrpc-c/lib/expat/xmltok
>  -I../../../../libs/xmlrpc-c -I../../../../libs/xmlrpc-c/include -I../../../../libs/xmlrpc-c/lib/abyss/src
>  -I../../../../libs/xmlrpc-c/lib/util/include -D_THREAD -D__EXTENSIONS__ -I/usr/local/src/freeswitch/src/include
>  -I/usr/local/src/freeswitch/src/include -I/usr/local/src/freeswitch/libs/libteletone/src
>  -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1
>  -g -ggdb -DHAVE_OPENSSL -g -O2 -Wall -std=c99 -pedantic -Wdeclaration-after-statement
>  -D_GNU_SOURCE -DHAVE_CONFIG_H -c
> /usr/local/src/freeswitch/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c  -fPIC
>  -DPIC -o .libs/mod_xml_rpc.o
> quiet_libtool: compile:
>  gcc -w -I../../../../libs/xmlrpc-c/lib/expat/xmlparse -I../../../../libs/xmlrpc-c/lib/expat/xmltok
>  -I../../../../libs/xmlrpc-c -I../../../../libs/xmlrpc-c/include -I../../../../libs/xmlrpc-c/lib/abyss/src
>  -I../../../../libs/xmlrpc-c/lib/util/include -D_THREAD -D__EXTENSIONS__ -I/usr/local/src/freeswitch/src/include
>  -I/usr/local/src/freeswitch/src/include -I/usr/local/src/freeswitch/libs/libteletone/src
>  -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1
>  -g -ggdb -DHAVE_OPENSSL -g -O2 -Wall -std=c99 -pedantic -Wdeclaration-after-statement
>  -D_GNU_SOURCE -DHAVE_CONFIG_H -c
> /usr/local/src/freeswitch/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c -o
> mod_xml_rpc.o >/dev/null 2>&1
> Creating mod_xml_rpc.la...
> make[6]: Leaving directory
> `/usr/local/src/freeswitch/src/mod/xml_int/mod_xml_rpc'
> make[5]: Leaving directory
> `/usr/local/src/freeswitch/src/mod/xml_int/mod_xml_rpc'
> make[4]: Leaving directory `/usr/local/src/freeswitch/src/mod'
> make[3]: Leaving directory `/usr/local/src/freeswitch/src'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/usr/local/src/freeswitch'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/usr/local/src/freeswitch'
> make: *** [current] Error 2
>
> Thanks for any suggestions.
>
> Cliff
>
>
>
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users@lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org



FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org