Bug 27075

Summary: RPM COPR builds for Mageia: undefined reference to `ap_pass_brigade'
Product: Mageia Reporter: Graham Leggett <minfrin>
Component: RPM PackagesAssignee: All Packagers <pkg-bugs>
Status: RESOLVED OLD QA Contact:
Severity: normal    
Priority: Normal CC: lewyssmith, marja11
Version: 7   
Target Milestone: ---   
Hardware: All   
OS: Linux   
URL: https://copr.fedorainfracloud.org/coprs/minfrin/mod_magick/build/1601152/
Whiteboard:
Source RPM: https://github.com/minfrin/mod_magick/releases/download/mod_magick-1.0.0/mod_magick-1.0.0-1.el8.src.rpm CVE:
Status comment:

Description Graham Leggett 2020-08-10 22:19:35 CEST
Description of problem:

While trying to build an Apache httpd module on Mageia 7, the build fails with missing symbols that belong to httpd.

All of the reported symbols belong to Apache httpd, it is not clear why these are being reported as missing.

/usr/bin/ld: ./.libs/mod_magick.o: in function `magick_set_option':
/builddir/build/BUILD/mod_magick-1.0.0/./mod_magick.c:260: undefined reference to `ap_expr_str_exec'
/usr/bin/ld: /builddir/build/BUILD/mod_magick-1.0.0/./mod_magick.c:262: undefined reference to `ap_log_rerror_'
/usr/bin/ld: ./.libs/mod_magick.o: in function `add_magick_option':
/builddir/build/BUILD/mod_magick-1.0.0/./mod_magick.c:142: undefined reference to `ap_expr_parse_cmd_mi'
/usr/bin/ld: ./.libs/mod_magick.o: in function `magick_out_filter':
/builddir/build/BUILD/mod_magick-1.0.0/./mod_magick.c:372: undefined reference to `ap_log_rerror_'
/usr/bin/ld: /builddir/build/BUILD/mod_magick-1.0.0/./mod_magick.c:383: undefined reference to `ap_remove_output_filter'
/usr/bin/ld: /builddir/build/BUILD/mod_magick-1.0.0/./mod_magick.c:384: undefined reference to `ap_pass_brigade'
/usr/bin/ld: /builddir/build/BUILD/mod_magick-1.0.0/./mod_magick.c:291: undefined reference to `ap_pass_brigade'
/usr/bin/ld: /builddir/build/BUILD/mod_magick-1.0.0/./mod_magick.c:330: undefined reference to `ap_log_rerror_'
/usr/bin/ld: ./.libs/mod_magick.o: in function `register_hooks':
/builddir/build/BUILD/mod_magick-1.0.0/./mod_magick.c:393: undefined reference to `ap_register_output_filter'
collect2: error: ld returned 1 exit status
apxs:Error: Command failed with rc=65536

Version-Release number of selected component (if applicable):


How reproducible:

Always.

Steps to Reproduce:
1. Build mod_magick v1.0.0 from https://github.com/minfrin/mod_magick at COPR at https://copr.fedorainfracloud.org/coprs/minfrin/mod_magick/.
2. See build succeed for all Fedora and EPEL.
3. See build fail for Mageia 7.

Full build log is here:

https://download.copr.fedorainfracloud.org/results/minfrin/mod_magick/mageia-7-x86_64/01601152-mod_magick/builder-live.log.gz

Full failure is as follows:

RPM build errors:
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -fasynchronous-unwind-tables  -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/httpd  -I/usr/include/apr-1   -I/usr/include/apr-1 -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apr-1  -I/usr/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread  -I/usr/include/GraphicsMagick  -I/usr/include/GraphicsMagick  -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apr-1  -I/usr/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread  -I/usr/include/GraphicsMagick  -I/usr/include/GraphicsMagick    -c -o ./mod_magick.lo ./mod_magick.c && touch ./mod_magick.slo
/usr/lib64/apr-1/build/libtool --silent --mode=link gcc -Wl,-z,relro,-z,now   -o ./mod_magick.la -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags       -lGraphicsMagickWand -lGraphicsMagick -lapr-1 -lpthread -ldl -laprutil-1 -lldap -llber -lexpat -lcrypt -lapr-1 -lpthread -ldl -lGraphicsMagick -lGraphicsMagickWand -lGraphicsMagick -rpath /usr/lib64/httpd/modules -module -avoid-version    ./mod_magick.lo
/usr/bin/ld: ./.libs/mod_magick.o: in function `magick_set_option':
/builddir/build/BUILD/mod_magick-1.0.0/./mod_magick.c:260: undefined reference to `ap_expr_str_exec'
/usr/bin/ld: /builddir/build/BUILD/mod_magick-1.0.0/./mod_magick.c:262: undefined reference to `ap_log_rerror_'
/usr/bin/ld: ./.libs/mod_magick.o: in function `add_magick_option':
/builddir/build/BUILD/mod_magick-1.0.0/./mod_magick.c:142: undefined reference to `ap_expr_parse_cmd_mi'
/usr/bin/ld: ./.libs/mod_magick.o: in function `magick_out_filter':
/builddir/build/BUILD/mod_magick-1.0.0/./mod_magick.c:372: undefined reference to `ap_log_rerror_'
/usr/bin/ld: /builddir/build/BUILD/mod_magick-1.0.0/./mod_magick.c:383: undefined reference to `ap_remove_output_filter'
/usr/bin/ld: /builddir/build/BUILD/mod_magick-1.0.0/./mod_magick.c:384: undefined reference to `ap_pass_brigade'
/usr/bin/ld: /builddir/build/BUILD/mod_magick-1.0.0/./mod_magick.c:291: undefined reference to `ap_pass_brigade'
/usr/bin/ld: /builddir/build/BUILD/mod_magick-1.0.0/./mod_magick.c:330: undefined reference to `ap_log_rerror_'
/usr/bin/ld: ./.libs/mod_magick.o: in function `register_hooks':
/builddir/build/BUILD/mod_magick-1.0.0/./mod_magick.c:393: undefined reference to `ap_register_output_filter'
collect2: error: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
.
make[1]: *** [Makefile:665: all-local] Error 1
make: *** [Makefile:263: all] Error 2
Comment 1 Lewis Smith 2020-08-12 21:21:15 CEST
See also bug 27076.

I was tempted to say that this is not a Mageia problem; but COPR rang a bell, we do have a Wiki about it: https://wiki.mageia.org/en/Fedora_COPR and a package 'copr-cli'.

Assigning globally, CC'ing Marja who knows about this, and myself to find out.

Assignee: bugsquad => pkg-bugs
CC: (none) => lewyssmith, marja11

Comment 2 Aurelien Oudelet 2021-07-06 13:17:31 CEST
Mageia 7 is EOL since July 1st 2021.
There will not have any further bugfix for this release.

You are encouraged to upgrade to Mageia 8 as soon as possible.

@reporter, if this bug still apply with Mageia 8, please let us know it.

@packager, if you work on the Mageia 7 version of your package, please check the Mageia 8 package if issue is also present. In this case, please fix the Mageia 8 version instead.

This bug report will be closed OLD if there is no further notice within 1st September 2021.
Comment 3 Marja Van Waes 2021-09-07 14:09:06 CEST
Hi bug reporter and hi assignee and others involved,

Please reopen this bug report if it is still valid for Mageia 8 or 9(cauldron), and change "Version:" in the upper left of this report accordingly.

This report is being closed as OLD because it was filed against Mageia 7, for which  support ended on June 30th 2021.

Thanks,
Marja

Status: NEW => RESOLVED
Resolution: (none) => OLD