Ticket #33479 (new defect)
p5.12-cgi-speedycgi fails to build with clang
| Reported by: | arno.barbier@… | Owned by: | markd@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.0.4 |
| Keywords: | Cc: | egall@… | |
| Port: | p5.12-cgi-speedycgi |
Description
Hello,
I couldn't build p5.12-cgi-speedycgi due to the following error:
:info:build /usr/bin/clang -o speedy_backend speedy_backend_main.o speedy_perl.o speedy_util.o speedy_sig.o speedy_frontend.o speedy_backend.o speedy_file.o speedy_slot.o speedy_poll.o speedy_ipc.o speedy_group.o speedy_script.o speedy_opt.o speedy_optdefs.o xsinit.o -L/opt/local/lib -fstack-protector -L/opt/local/lib/perl5/5.12.3/darwin-multi-2level/CORE -lperl -ldl -lm -lutil -lc :info:build Undefined symbols for architecture x86_64: :info:build "_speedy_file_set_state", referenced from: :info:build _main in speedy_backend_main.o :info:build _start_child in speedy_backend_main.o :info:build _cleanup_after_perl in speedy_perl.o :info:build _speedy_perl_run in speedy_perl.o :info:build _speedy_file_fork_child in speedy_file.o :info:build _speedy_group_lock in speedy_group.o :info:build "_speedy_util_getpid", referenced from: :info:build _main in speedy_backend_main.o :info:build _start_child in speedy_backend_main.o :info:build _cleanup_after_perl in speedy_perl.o :info:build _speedy_perl_run in speedy_perl.o :info:build _file_lock in speedy_file.o :info:build "_speedy_util_stat_devino", referenced from: :info:build _speedy_perl_init in speedy_perl.o :info:build _quick_cd in speedy_perl.o :info:build _chdir_path in speedy_perl.o :info:build "_speedy_opt_script_fname", referenced from: :info:build _speedy_perl_init in speedy_perl.o :info:build _speedy_script_open_failure in speedy_script.o :info:build _speedy_script_open in speedy_script.o :info:build _speedy_script_getstat in speedy_script.o :info:build _speedy_script_find in speedy_script.o :info:build _speedy_script_mmap in speedy_script.o :info:build "_speedy_file_fd_is_suspect", referenced from: :info:build _cleanup_after_perl in speedy_perl.o :info:build "_speedy_util_open_stat", referenced from: :info:build _load_script in speedy_perl.o :info:build _speedy_script_open_failure in speedy_script.o :info:build "_speedy_util_time", referenced from: :info:build _file_lock in speedy_file.o :info:build _speedy_script_open_failure in speedy_script.o :info:build (maybe you meant: _speedy_util_time_invalidate) :info:build "_speedy_util_gettimeofday", referenced from: :info:build _file_lock in speedy_file.o :info:build "_speedy_util_geteuid", referenced from: :info:build _speedy_ipc_listen in speedy_ipc.o :info:build ld: symbol(s) not found for architecture x86_64 :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation) :info:build make[1]: *** [speedy_backend] Error 1
The package source name is p5.12-cgi-speedycgi-2.220.0_11.darwin_11.x86_64.tbz2
Thanks for your help
Attachments
Change History
comment:1 follow-up: ↓ 2 Changed 15 months ago by ryandesign@…
- Owner changed from macports-tickets@… to markd@…
Changed 15 months ago by arno.barbier@…
- Attachment p5.12-cgi-speedycgi_main.log added
p5.12-cgi-speedycgi_main
comment:2 in reply to: ↑ 1 Changed 15 months ago by arno.barbier@…
Replying to ryandesign@…:
Please "sudo port clean p5.12-cgi-speedycgi" and try again, and if it fails again, attach the entire main.log file.
Hello, Result log from my new attempt, result was the same unfortunately. Best regards,
comment:3 follow-up: ↓ 6 Changed 10 months ago by jmr@…
Could be expecting GNU extension semantics for the inline keyword, rather than the standard C99 semantics provided by clang. If so, adding -std=gnu89 to the CFLAGS should make it work.
comment:6 in reply to: ↑ 3 Changed 4 months ago by jan.michael@…
Replying to jmr@…:
Could be expecting GNU extension semantics for the inline keyword, rather than the standard C99 semantics provided by clang. If so, adding -std=gnu89 to the CFLAGS should make it work.
I have the same problem with p5.12-cgi-speedycgi while trying to build smokeping. I don't really understand your instructions. So I tried adding
configure.cflags-append "-std=gnu89"
to
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/perl/p5-cgi-speedycgi/Portfile
But this didn't helped anything, although I cleaned the installation before.
Hope someone can help here, because that's the only way I get smokeping working under 10.8 Mountain Lion on a MacBook Air.
comment:7 Changed 4 months ago by markd@…
I had updated the port to v2.6.8 which no longer uses speedycgi, but I never had time to really test it. Since speedycgi is causing issues, I just made a ticket with the not yet fully tested version of the portfile in hopes someone else can test it. The portfile is on ticket #37585. I hope this helps out to get smokeping on Mountain Lion.


Please "sudo port clean p5.12-cgi-speedycgi" and try again, and if it fails again, attach the entire main.log file.