linking error occurs on compiling package cramfsswap-1.3.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cramfsswap (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
On compiling cramfsswap-1.3.1 package linking error occurs.
following are the build logs:-
/tmp/ccfC9Y3l.o: In function `main':
/home/dev/
/home/dev/
/home/dev/
collect2: error: ld returned 1 exit status
In makefile it has following compiling command
cramfsswap: cramfsswap.c
$(CC) $(CFLAGS) -o cramfsswap -lz cramfsswap.c
I think it should be like this
cramfsswap: cramfsswap.c
$(CC) $(CFLAGS) -o cramfsswap cramfsswap.c -lz
Can you please confirm and provide a fix for this.
PS: I cannot make these changes manually as i am building a toolchain and it downloads cramfsswap and then extracts it, so my local changes are overwritten.
Thanks for reporting.
Could you please provide some more details or context on the toolchain you are building? From what I can see all currently supported Ubuntu releases have cramfsswap 1.4.1ubuntu1 available (https:/ /launchpad. net/ubuntu/ +source/ cramfsswap) so I am unsure where the older 1.3.1 version comes from.