linking error occurs on compiling package cramfsswap-1.3.1

Bug #1841579 reported by Vaibhov Bhardwaj
8
This bug affects 1 person
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/Vaibhov/toolchain/HCL-ToolChain/WRL/wrlinux_toolchain/toolchain/wrl3_builddir.2019_08_27.15_13_39/arm11_le/build-tools/cramfsswap-1.3.1/cramfsswap.c:374: undefined reference to `crc32'
/home/dev/Vaibhov/toolchain/HCL-ToolChain/WRL/wrlinux_toolchain/toolchain/wrl3_builddir.2019_08_27.15_13_39/arm11_le/build-tools/cramfsswap-1.3.1/cramfsswap.c:376: undefined reference to `crc32'
/home/dev/Vaibhov/toolchain/HCL-ToolChain/WRL/wrlinux_toolchain/toolchain/wrl3_builddir.2019_08_27.15_13_39/arm11_le/build-tools/cramfsswap-1.3.1/cramfsswap.c:376: undefined reference to `crc32'
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.

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

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.

Changed in cramfsswap (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for cramfsswap (Ubuntu) because there has been no activity for 60 days.]

Changed in cramfsswap (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.