[Rpm-maint] [rpm-software-management/rpm] How to compile debugedit? (#1581)
Vanessasaurus
notifications at github.com
Wed Mar 17 22:34:28 UTC 2021
Ok, I found a patch to generate lua.pc, added to PKG_CONFIG_PATH, and it starts the build, but then errors out:
```
==> Error: ProcessError: Command exited with status 2:
'make' '-j8'
23 errors found in build log:
1023 mv -f $depbase.Tpo $depbase.Po
1024 libtool: link: /home/vanessa/Desktop/Code/spack-dev/lib/spack/env/gcc/gcc -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes -Wstri
ct-prototypes -fno-strict-aliasing -fstack-protector -Wempty-body -fPIC -o .libs/rpm2cpio rpm2cpio.o lib/.libs/librpm.so -L/home/vaness
a/Desktop/Code/spack-dev/opt/spack/linux-ubuntu20.04-skylake/gcc-9.3.0/libgcrypt-1.9.1-ilrszqij6qudts7cq4h4tnuswvnjgzs7/lib -L/home/vane
ssa/Desktop/Code/spack-dev/opt/spack/linux-ubuntu20.04-skylake/gcc-9.3.0/libgpg-error-1.37-pbytmevkno53sctoh6pweq25ze6bzc54/lib /tmp/van
essa/spack-stage/spack-stage-rpm-4.16.1.2-smdq6mmawack7lieg7vdmzhikb6syhok/spack-src/rpmio/.libs/librpmio.so -lintl -ldb /usr/lib/x86_64
-linux-gnu/libsqlite3.so rpmio/.libs/librpmio.so -lgcrypt -lgpg-error -lbz2 -lz -llzma -lpopt -ldl -lpthread -Wl,-rpath -Wl,/home/vaness
a/Desktop/Code/spack-dev/opt/spack/linux-ubuntu20.04-skylake/gcc-9.3.0/rpm-4.16.1.2-smdq6mmawack7lieg7vdmzhikb6syhok/lib
1025 mv -f .deps/libcliutils_la-cliutils.Tpo .deps/libcliutils_la-cliutils.Plo
1026 depbase=`echo tools/hashtab.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
1027 /home/vanessa/Desktop/Code/spack-dev/lib/spack/env/gcc/gcc -DHAVE_CONFIG_H -I. -I. -I./include/ -I./build -I./lib -I./rpmio -I./misc -
DLOCALEDIR="\"/home/vanessa/Desktop/Code/spack-dev/opt/spack/linux-ubuntu20.04-skylake/gcc-9.3.0/rpm-4.16.1.2-smdq6mmawack7lieg7vdmzhikb
6syhok/share/locale\"" -DLIBRPMALIAS_FILENAME="\"rpmpopt-4.16.1.2\"" -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-p
rototypes -fno-strict-aliasing -fstack-protector -Wempty-body -fPIC -MT tools/hashtab.o -MD -MP -MF $depbase.Tpo -c -o tools/hashtab.o
tools/hashtab.c &&\
1028 mv -f $depbase.Tpo $depbase.Po
>> 1029 /usr/bin/ld: lib/.libs/librpm.so: undefined reference to `rpmluavSetValue'
>> 1030 /usr/bin/ld: lib/.libs/librpm.so: undefined reference to `rpmluaGetGlobalState'
>> 1031 /usr/bin/ld: lib/.libs/librpm.so: undefined reference to `rpmluavSetListMode'
>> 1032 /usr/bin/ld: lib/.libs/librpm.so: undefined reference to `rpmluaPushTable'
>> 1033 /usr/bin/ld: /tmp/vanessa/spack-stage/spack-stage-rpm-4.16.1.2-smdq6mmawack7lieg7vdmzhikb6syhok/spack-src/rpmio/.libs/librpmio.so: undef
ined reference to `rpmluaPushPrintBuffer'
>> 1034 /usr/bin/ld: lib/.libs/librpm.so: undefined reference to `rpmluaFree'
>> 1035 /usr/bin/ld: lib/.libs/librpm.so: undefined reference to `rpmluavSetValueNum'
>> 1036 /usr/bin/ld: lib/.libs/librpm.so: undefined reference to `rpmluavNew'
>> 1037 /usr/bin/ld: lib/.libs/librpm.so: undefined reference to `rpmluaSetNextFileFunc'
>> 1038 /usr/bin/ld: lib/.libs/librpm.so: undefined reference to `rpmluaRunScript'
>> 1039 /usr/bin/ld: /tmp/vanessa/spack-stage/spack-stage-rpm-4.16.1.2-smdq6mmawack7lieg7vdmzhikb6syhok/spack-src/rpmio/.libs/librpmio.so: undef
ined reference to `rpmluaPopPrintBuffer'
>> 1040 /usr/bin/ld: lib/.libs/librpm.so: undefined reference to `rpmluavFree'
>> 1041 /usr/bin/ld: lib/.libs/librpm.so: undefined reference to `rpmluaDelVar'
>> 1042 /usr/bin/ld: lib/.libs/librpm.so: undefined reference to `rpmluaPop'
>> 1043 /usr/bin/ld: lib/.libs/librpm.so: undefined reference to `rpmluaSetVar'
>> 1044 collect2: error: ld returned 1 exit status
1045 make[2]: *** [Makefile:993: rpm2cpio] Error 1
1046 make[2]: *** Waiting for unfinished jobs....
1047 tools/debugedit.c: In function 'edit_dwarf2':
>> 1048 tools/debugedit.c:2390:9: error: 'DW_MACRO_GNU_define' undeclared (first use in this function); did you mean 'DW_MACRO_define'?
1049 2390 | case DW_MACRO_GNU_define:
1050 | ^~~~~~~~~~~~~~~~~~~
1051 | DW_MACRO_define
1052 tools/debugedit.c:2390:9: note: each undeclared identifier is reported only once for each function it appears in
>> 1053 tools/debugedit.c:2391:9: error: 'DW_MACRO_GNU_undef' undeclared (first use in this function); did you mean 'DW_MACRO_undef'?
1054 2391 | case DW_MACRO_GNU_undef:
1055 | ^~~~~~~~~~~~~~~~~~
1056 | DW_MACRO_undef
>> 1057 tools/debugedit.c:2396:9: error: 'DW_MACRO_GNU_start_file' undeclared (first use in this function); did you mean 'DW_MACRO_start_file'?
1058 2396 | case DW_MACRO_GNU_start_file:
1059 | ^~~~~~~~~~~~~~~~~~~~~~~
1060 | DW_MACRO_start_file
>> 1061 tools/debugedit.c:2400:9: error: 'DW_MACRO_GNU_end_file' undeclared (first use in this function); did you mean 'DW_MACRO_end_file'?
1062 2400 | case DW_MACRO_GNU_end_file:
1063 | ^~~~~~~~~~~~~~~~~~~~~
1064 | DW_MACRO_end_file
1065 config.status: creating ./macros
1066 config.status: creating ./rpmrc
>> 1067 tools/debugedit.c:2402:9: error: 'DW_MACRO_GNU_define_indirect' undeclared (first use in this function)
1068 2402 | case DW_MACRO_GNU_define_indirect:
1069 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 1070 tools/debugedit.c:2403:9: error: 'DW_MACRO_GNU_undef_indirect' undeclared (first use in this function)
1071 2403 | case DW_MACRO_GNU_undef_indirect:
1072 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
1073 config.status: creating ./rpmpopt-4.16.1.2
>> 1074 tools/debugedit.c:2421:9: error: 'DW_MACRO_GNU_transparent_include' undeclared (first use in this function)
1075 2421 | case DW_MACRO_GNU_transparent_include:
1076 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1077 config.status: creating ./platform
1078 make[2]: *** [Makefile:1133: tools/debugedit.o] Error 1
1079 config.status: creating ./rpm.pc
1080 make[2]: Leaving directory '/tmp/vanessa/spack-stage/spack-stage-rpm-4.16.1.2-smdq6mmawack7lieg7vdmzhikb6syhok/spack-src'
```
What am I missing?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1581#issuecomment-801485651
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210317/9d468a38/attachment.html>
More information about the Rpm-maint
mailing list