question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

make fail - injector

See original GitHub issue

Hi, using Manjaro Linux but the build fail.

python-capstone python2-capstone Python 2.7.13 Python 3.6.2

What did i wrong ?

$ make cc -c injector.c -o injector.o -Wall injector.c:321:93: warning: excess elements in array initializer .start={.bytes={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}, .len=0}, ^~~~ injector.c:321:93: note: (near initialization for ‘total_range.start.bytes’) injector.c:322:91: warning: excess elements in array initializer .end={.bytes={0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}, .len=0}, ^~~~ injector.c:322:91: note: (near initialization for ‘total_range.end.bytes’) cc injector.o -O3 -Wall -l:libcapstone.a -o injector -pthread /usr/bin/ld: injector.o: relocation R_X86_64_32S against undefined symbol `dummy_stack’ can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: error: ld returned 1 exit status make: *** [Makefile:35: injector] Error 1

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
martin3000commented, Aug 31, 2017

Change the Makefile to:

all: injector

injector: injector.o $(CC) $(CFLAGS) $< -O3 -Wall -no-pie -l:libcapstone.a -o $@ -pthread

%.o: %.c $(CC) $(CFLAGS) -c $< -o $@ -Wall

clean: rm *.o injector

0reactions
Zibricommented, Feb 5, 2019

just do: make CFLAGS=-no-pie

Read more comments on GitHub >

github_iconTop Results From Across the Web

Symptoms And Diagnosing A Failed Or Clogged Fuel Injector
Take a look at part 2 of rough running. Diagnosing a failed or clogged fuel injector can be tricky but here are some...
Read more >
Warning Signs Of A Bad Fuel Injector | Sun Devil Auto
Fuel injectors typically fail due to a buildup of contaminants such as carbon. Carbon build-up can cause a clogged or partially clogged injector,...
Read more >
Common causes of fuel injector failures and how to avoid them
While many things can cause breakdowns, the most likely cause of premature failure is fuel contamination.
Read more >
Fuel Injectors - Will usually only fail, in one of, three different ...
Possible Signs Of Fuel Injector Issues, Include: · Hard Starting, when engine is hot · Poor idle · Failed, emissions test · Poor...
Read more >
Five Common Signs of A Failed Fuel Injector | Car Care Tips
An abrupt loss of engine power is a somewhat obvious sign of a fuel injector failure. If the fuel injector is clogged, the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found