[Freeswitch-users] mod_perl buid errors on Solaris

Bruce McAlister bruce.mcalister at blueface.ie
Sat Aug 16 02:09:32 PDT 2008


Hi All,

 

I am trying to build mod_perl for use in FS on Solaris. The build completes
successfully if I don't include mod_perl. However, when I do include
mod_perl I receive the following compiler error:

 

 

making all mod_perl

Compiling freeswitch_perl.cpp...

/opt/SUNWspro/bin/CC -w -DMULTIPLICITY -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_TS_ERRNO
-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE -DEMBED_PERL
-I/export/home/vzhsxn/packages/BUILD/freeswitch-1.0.1/src/include
-I/export/home/vzhsxn/packages/BUILD/freeswitch-1.0.1/libs/libteletone/src
-KPIC -DPIC -features=extensions -g -D_GNU_SOURCE -DHAVE_CONFIG_H -c -o
freeswitch_perl.o freeswitch_perl.cpp

"freeswitch_perl.cpp", line 53: Warning (Anachronism): Formal argument
state_change of type extern "C" switch_status_t(*)(switch_core_session*) in
call to switch_core_event_hook_remove_state_change(switch_core_session*,
extern "C" switch_status_t(*)(switch_core_session*)) is being passed
switch_status_t(*)(switch_core_session*).

"freeswitch_perl.cpp", line 162: Warning (Anachronism): Formal argument
state_change of type extern "C" switch_status_t(*)(switch_core_session*) in
call to switch_core_event_hook_add_state_change(switch_core_session*, extern
"C" switch_status_t(*)(switch_core_session*)) is being passed
switch_status_t(*)(switch_core_session*).

2 Warning(s) detected.

Compiling mod_perl_wrap.cpp...

/opt/SUNWspro/bin/CC -w -DMULTIPLICITY -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_TS_ERRNO
-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE -DEMBED_PERL
-I/export/home/vzhsxn/packages/BUILD/freeswitch-1.0.1/src/include
-I/export/home/vzhsxn/packages/BUILD/freeswitch-1.0.1/libs/libteletone/src
-KPIC -DPIC -features=extensions -g -D_GNU_SOURCE -DHAVE_CONFIG_H -c -o
mod_perl_wrap.o mod_perl_wrap.cpp

Compiling perlxsi.c...

/opt/SUNWspro/bin/cc -w -DMULTIPLICITY -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_TS_ERRNO
-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE -DEMBED_PERL
-I/export/home/vzhsxn/packages/BUILD/freeswitch-1.0.1/src/include
-I/export/home/vzhsxn/packages/BUILD/freeswitch-1.0.1/libs/libteletone/src
-KPIC -DPIC -DPATH_MAX=2048 -g -v -Xc -xc99=all -D_GNU_SOURCE
-DHAVE_CONFIG_H -c -o perlxsi.o perlxsi.c

"/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE/scope.h", line 221: syntax
error before or at: sigjmp_buf

"/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE/proto.h", line 199: syntax
error before or at: off64_t

"/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE/proto.h", line 201: syntax
error before or at: Perl_do_sysseek

"/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE/proto.h", line 201: syntax
error before or at: off64_t

"/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE/proto.h", line 202: syntax
error before or at: Perl_do_tell

"/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE/proto.h", line 1308: syntax
error before or at: Perl_PerlIO_tell

"/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE/proto.h", line 1309: syntax
error before or at: off64_t

cc: acomp failed for perlxsi.c

make[5]: *** [perlxsi.o] Error 1

make[4]: *** [all] Error 1

make[3]: *** [mod_perl-all] Error 1

make[2]: *** [all-recursive] Error 1

make[1]: *** [all-recursive] Error 1

make: *** [all] Error 2

 

 

Steps to reproduce:

 

[1] Install Solaris 10 Update 5

[2] Install Sun Studio 12

[3] Patched system with recommended patches as of 15-08-2008

[4] Install JDC CBE 1.7.0 RC1

[5] Download/Install SFE

[6] Setup user with "Installation" permissions

[7] Build and install SFEcurl/SFEunixodbc packages (including development
packages)

[8] Create SFEfreeswitch spec file (attached)

[9] Run pkgtool -interactive -download -pkgformat=ds build-only
SFEfreeswitch.spec

 

Any comments suggestions would be greatly appreciated.

 

Thanks

Bruce

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080816/6d2b33eb/attachment-0002.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SFEfreeswitch.spec
Type: application/octet-stream
Size: 4418 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080816/6d2b33eb/attachment-0002.obj 


More information about the FreeSWITCH-users mailing list