Public bug reported:

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.

** Affects: cramfsswap (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1841579

Title:
  linking error occurs on compiling package cramfsswap-1.3.1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cramfsswap/+bug/1841579/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to