Skip to content

Installation failed - Lunix redhat 9.5 #80

@glopez20-dev

Description

@glopez20-dev

Hi, when i try install the docsis encrypt in the make step, the process return error.
The system info is:
[hpe@LNXRHACTRPRE1 ~]$ gcc --version
gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-5)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[hpe@LNXRHACTRPRE1 ~]$ more /etc/system-release
Red Hat Enterprise Linux release 9.5 (Plow)
[hpe@LNXRHACTRPRE1 ~]$

This is the make log when fail
gcc -DHAVE_CONFIG_H -I. -I.. -I. -I/usr/include -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Werror-implicit-function-declaration -Wextra -Wno-unused-parameter -Wfloat-equal -Wformat-security -Winit-self -Wmissing-declarations -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wundef -g -g -O2 -MT docsis_snmp.o -MD -MP -MF .deps/docsis_snmp.Tpo -c -o docsis_snmp.o docsis_snmp.c
docsis_snmp.c: In function ‘encode_vbind’:
docsis_snmp.c:253:9: warning: ‘strncpy’ specified bound 2560 equals destination size [-Wstringop-truncation]
253 | strncpy ((char *) buf, value->strval, SPRINT_MAX_LEN);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
docsis_snmp.c:174:11: warning: ‘strncpy’ specified bound 2560 equals destination size [-Wstringop-truncation]
174 | strncpy ((char *) buf, value->strval, SPRINT_MAX_LEN);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mv -f .deps/docsis_snmp.Tpo .deps/docsis_snmp.Po
/bin/sh ../ylwrap docsis_yy.y y.tab.c docsis_yy.c y.tab.h echo docsis_yy.c | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/ y.output docsis_yy.output -- /usr/bin/bison -t -d -y
updating docsis_yy.h
gcc -DHAVE_CONFIG_H -I. -I.. -I. -I/usr/include -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Werror-implicit-function-declaration -Wextra -Wno-unused-parameter -Wfloat-equal -Wformat-security -Winit-self -Wmissing-declarations -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wundef -g -g -O2 -MT docsis_yy.o -MD -MP -MF .deps/docsis_yy.Tpo -c -o docsis_yy.o docsis_yy.c
docsis_yy.y:31:5: warning: "YYTEXT_POINTER" is not defined, evaluates to 0 [-Wundef]
31 | #if YYTEXT_POINTER
| ^~~~~~~~~~~~~~
mv -f .deps/docsis_yy.Tpo .deps/docsis_yy.Po
/bin/sh ../ylwrap docsis_lex.l lex.yy.c docsis_lex.c -- flex
gcc -DHAVE_CONFIG_H -I. -I.. -I. -I/usr/include -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Werror-implicit-function-declaration -Wextra -Wno-unused-parameter -Wfloat-equal -Wformat-security -Winit-self -Wmissing-declarations -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wundef -g -g -O2 -MT docsis_lex.o -MD -MP -MF .deps/docsis_lex.Tpo -c -o docsis_lex.o docsis_lex.c
mv -f .deps/docsis_lex.Tpo .deps/docsis_lex.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I. -I/usr/include -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Werror-implicit-function-declaration -Wextra -Wno-unused-parameter -Wfloat-equal -Wformat-security -Winit-self -Wmissing-declarations -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wundef -g -g -O2 -MT hmac_md5.o -MD -MP -MF .deps/hmac_md5.Tpo -c -o hmac_md5.o hmac_md5.c
mv -f .deps/hmac_md5.Tpo .deps/hmac_md5.Po
/bin/sh ../libtool --tag=CC --mode=link gcc -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Werror-implicit-function-declaration -Wextra -Wno-unused-parameter -Wfloat-equal -Wformat-security -Winit-self -Wmissing-declarations -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wundef -g -g -O2 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -lm -L/usr/lib64 -lnetsnmp -lm -lssl -lssl -lcrypto -lm -o docsis docsis.o ethermac.o md5.o docsis_encode.o docsis_decode.o docsis_snmp.o docsis_yy.o docsis_lex.o hmac_md5.o -lresolv
libtool: link: gcc -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Werror-implicit-function-declaration -Wextra -Wno-unused-parameter -Wfloat-equal -Wformat-security -Winit-self -Wmissing-declarations -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wundef -g -g -O2 -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -o docsis docsis.o ethermac.o md5.o docsis_encode.o docsis_decode.o docsis_snmp.o docsis_yy.o docsis_lex.o hmac_md5.o -L/usr/lib64 -lnetsnmp -lssl -lcrypto -lm -lresolv
/usr/bin/ld: docsis.o: relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: ethermac.o: relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: docsis_encode.o: relocation R_X86_64_32 against .rodata.str1.8' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: docsis_decode.o: relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: docsis_snmp.o: relocation R_X86_64_32 against .bss' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: docsis_yy.o: relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: docsis_lex.o: relocation R_X86_64_32S against .rodata' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: hmac_md5.o: relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
collect2: error: ld returned 1 exit status
make: *** [Makefile:433: docsis] Error 1
[hpe@LNXRHACTRPRE1 src]$

I appreciate your help and support in resolving this issue. Thank you.
Gilbert López

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions