<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:courier,monaco,monospace,sans-serif;font-size:12pt">export ZAP_CFLAGS="-fPIC"<br><br>will let you do the same with no patch since this is a gcc <br>specific flag.<br><br>cd libs/openzap<br>export ZAP_CFLAGS="-fPIC"<br>
make clean<br>make<br>cd ../..<br>make mod_openzap-install<br><br><br><div> </div><div>Anthony Minessale II<br><br><span>FreeSWITCH <a target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org/</a></span><br><span>ClueCon <a target="_blank" href="http://www.cluecon.com/">http://www.cluecon.com/</a></span><br><br>AIM: anthm<br>MSN:anthony_minessale@hotmail.com<br>GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<br>IRC: irc.freenode.net #freeswitch</div><div><br>FreeSWITCH Developer Conference<br>sip:888@conference.freeswitch.org<br>iax:guest@conference.freeswitch.org/888<br>googletalk:conf+888@conference.freeswitch.org<br>pstn:213-799-1400</div><div style="font-family: courier,monaco,monospace,sans-serif; font-size: 12pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Brian West <brian.west@mac.com><br>To:
freeswitch-users@lists.freeswitch.org<br>Sent: Wednesday, November 7, 2007 5:27:37 AM<br>Subject: Re: [Freeswitch-users] openzap compiling issue.<br><br>
This should let me know if this is the issue. But I have the correct <br>fix ready to go once you tell me this works.<br><br>/b<br><br>On Nov 7, 2007, at 11:12 AM, Brian West wrote:<br><br>> I would suspect that libopenzap wsn't compiled with -fPIC, which can<br>> result in this error when you try to compile against a lib that
wasn't<br>> compiled with -fPIC<br>><br>> please try this:<br>><br>> Index: general.makefile<br>> ===================================================================<br>> --- general.makefile (revision 320)<br>> +++ general.makefile (working copy)<br>> @@ -1,3 +1,3 @@<br>> CC=gcc<br>> -CC_CFLAGS += -Wall -Werror -Wextra -Wno-unused-parameter #-std=c99 -<br>> pedantic -Wno-unused-parameter<br>> +CC_CFLAGS += -fPIC -Wall -Werror -Wextra -Wno-unused-parameter #-<br>> std=c99 -pedantic -Wno-unused-parameter<br>><br>><br>><br>> Thanks,<br>> Brian<br>><br>><br>> On Nov 7, 2007, at 10:56 AM, John Bittner wrote:<br>><br>>> Guys,<br>>> Any idea why openzap will not compile under freeswitch ?<br>>> This is the error I am getting. FYI ... I am running 64bit Redhat <br>>> 5 ..<br>>><br>>> Compiling
mod_openzap.c...<br>>> gcc -w -I../src/include -I../src/isdn/include -I/usr/src/freeswitch/<br>>> src/include -I/usr/src/freeswitch/libs/libteletone/src -fPIC -Werror<br>>> -g -O2 -Wall -std=c99 -pedantic -D_GNU_SOURCE -DHAVE_CONFIG_H -c -o<br>>> mod_openzap.o mod_openzap.c<br>>> Creating <a target="_blank" href="http://mod_openzap.so">mod_openzap.so</a>...<br>>> /usr/bin/ld: ../libopenzap.a(zap_io.o): relocation R_X86_64_32S<br>>> against `a local symbol' can not be used when making a shared<br>>> object; recompile with -fPIC<br>>> ../libopenzap.a: could not read symbols: Bad value<br>>> collect2: ld returned 1 exit status<br>>> gcc -w -I../src/include -I../src/isdn/include -I/usr/src/freeswitch/<br>>> src/include -I/usr/src/freeswitch/libs/libteletone/src -fPIC -Werror<br>>> -g -O2 -Wall -std=c99 -pedantic -D_GNU_SOURCE -o .libs/<br>>> <a target="_blank"
href="http://mod_openzap.so">mod_openzap.so</a> -shared -Wl,-x mod_openzap.o -o .libs/mod_openzap.so<br>>> -lm -L/usr/local/lib /usr/src/freeswitch/.libs/libfreeswitch.so -<br>>> lsqlite3 /usr/src/freeswitch/libs/apr/.libs/libapr-1.a -luuid -lrt -<br>>> ldl -lcrypt -lpthread -L/usr/src/freeswitch/libs/srtp ../<br>>> libopenzap.a -Wl,--rpath -Wl,/usr/local/freeswitch/lib<br>>> make[5]: *** [<a target="_blank" href="http://mod_openzap.so">mod_openzap.so</a>] Error 1<br>>> make[4]: *** [all] Error 1<br>>><br>>> Any help appreciated.<br>>><br>>> Thanks<br>>><br>>> John Bittner<br>>> <a target="_blank" href="http://Simlab.net">Simlab.net</a><br>>><br>>><br>>><br>>> _______________________________________________<br>>> Freeswitch-users mailing list<br>>> <a ymailto="mailto:Freeswitch-users@lists.freeswitch.org"
href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>>>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>><br>><br>> _______________________________________________<br>> Freeswitch-users mailing list<br>> <a ymailto="mailto:Freeswitch-users@lists.freeswitch.org" href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><br><br>_______________________________________________<br>Freeswitch-users mailing list<br><a ymailto="mailto:Freeswitch-users@lists.freeswitch.org" href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br></div><br></div></div><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com </body></html>