{"id":44,"date":"2008-04-29T04:15:00","date_gmt":"2008-04-29T09:15:00","guid":{"rendered":"http:\/\/www.rajatswarup.com\/blog\/?p=44"},"modified":"2010-02-10T23:42:07","modified_gmt":"2010-02-11T04:42:07","slug":"spike-fuzzer-linker-errors","status":"publish","type":"post","link":"https:\/\/www.rajatswarup.com\/blog\/2008\/04\/29\/spike-fuzzer-linker-errors\/","title":{"rendered":"Spike Fuzzer linker errors"},"content":{"rendered":"<p>I decided to play around with <a href=\"http:\/\/www.immunitysec.com\/downloads\/SPIKE2.9.tgz\">Spike fuzzer<\/a> and encountered some weird errors during installation. I was using gcc 4.1.2.  <\/p>\n<pre>gcc -ggdb -o generic_listen_tcp generic_listen_tcp.o dlrpc.o <br \/>dlargs.o spike.o listener.o hdebug.o tcpstuff.o <br \/>spike_dcerpc.o base64.o udpstuff.o spike_oncrpc.o -ldl -L. -ldlrpc<br \/>\/usr\/bin\/ld: generic_listen_tcp: hidden symbol `__stack_chk_fail_local' in<br \/>\/usr\/lib\/libc_nonshared.a(stack_chk_fail_local.oS) is referenced by DSO<br \/>\/usr\/bin\/ld: final link failed: Nonrepresentable section on output<br \/>collect2: ld returned 1 exit status<br \/>make: *** [generic_listen_tcp] Error 1<\/pre>\n<p>If you are also getting the same error, I would recommend that you do the following<\/p>\n<pre>SPIKE\/SPIKE\/src$ .\/configure<\/pre>\n<p>Now open the Makefile in your favorite editor and edit the CFLAGS line to include the following option:<\/p>\n<pre>-fno-stack-protector<\/pre>\n<p>This is how my CFLAGS line looks like in the Makefile:<\/p>\n<pre>CFLAGS = -Wall -funsigned-char -c -fPIC -ggdb -fno-stack-protector<\/pre>\n<p>This should make it build fine (I do get a few warnings but that&#8217;s cool&#8230;it still does not result in a no-build.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I decided to play around with Spike fuzzer and encountered some weird errors during installation. I was using gcc 4.1.2. gcc -ggdb -o generic_listen_tcp generic_listen_tcp.o dlrpc.o dlargs.o spike.o listener.o hdebug.o tcpstuff.o spike_dcerpc.o base64.o udpstuff.o spike_oncrpc.o -ldl -L. -ldlrpc\/usr\/bin\/ld: generic_listen_tcp: hidden symbol `__stack_chk_fail_local&#8217; in\/usr\/lib\/libc_nonshared.a(stack_chk_fail_local.oS) is referenced by DSO\/usr\/bin\/ld: final link failed: Nonrepresentable section on outputcollect2: ld [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[230,197],"tags":[229,296,297,295],"class_list":["post-44","post","type-post","status-publish","format-standard","hentry","category-howto","category-tools","tag-error","tag-fuzzer","tag-linker","tag-spike"],"_links":{"self":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/44","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/comments?post=44"}],"version-history":[{"count":1,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/44\/revisions"}],"predecessor-version":[{"id":127,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/44\/revisions\/127"}],"wp:attachment":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/media?parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/categories?post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/tags?post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}