[MacPorts] #33479: p5.12-cgi-speedycgi fails to build with clang
#33479: p5.12-cgi-speedycgi fails to build with clang ------------------------------------+--------------------------------------- Reporter: arno.barbier@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: p5.12-cgi-speedycgi ------------------------------------+--------------------------------------- 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 -- Ticket URL: <https://trac.macports.org/ticket/33479> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33479: p5.12-cgi-speedycgi fails to build with clang ------------------------------------+--------------------------------------- Reporter: arno.barbier@… | Owner: markd@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: p5.12-cgi-speedycgi ------------------------------------+--------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => markd@… Comment: Please "sudo port clean p5.12-cgi-speedycgi" and try again, and if it fails again, attach the entire main.log file. -- Ticket URL: <https://trac.macports.org/ticket/33479#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33479: p5.12-cgi-speedycgi fails to build with clang ------------------------------------+--------------------------------------- Reporter: arno.barbier@… | Owner: markd@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: p5.12-cgi-speedycgi ------------------------------------+--------------------------------------- Comment(by arno.barbier@…): Replying to [comment:1 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,
-- Ticket URL: <https://trac.macports.org/ticket/33479#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33479: p5.12-cgi-speedycgi fails to build with clang ------------------------------------+--------------------------------------- Reporter: arno.barbier@… | Owner: markd@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: p5.12-cgi-speedycgi ------------------------------------+--------------------------------------- Comment(by jmr@…): Could be expecting GNU extension semantics for the inline keyword, rather than the standard C9 semantics provided by clang. If so, adding `-std=gnu89` to the CFLAGS should make it work. -- Ticket URL: <https://trac.macports.org/ticket/33479#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33479: p5.12-cgi-speedycgi fails to build with clang ----------------------------------+--------------------- Reporter: arno.barbier@… | Owner: markd@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: | Keywords: Port: p5.12-cgi-speedycgi | ----------------------------------+--------------------- Comment (by jan.michael@…): Replying to [comment:3 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. -- Ticket URL: <https://trac.macports.org/ticket/33479#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33479: p5.12-cgi-speedycgi fails to build with clang ----------------------------------+--------------------- Reporter: arno.barbier@… | Owner: markd@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: | Keywords: Port: p5.12-cgi-speedycgi | ----------------------------------+--------------------- Comment (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. -- Ticket URL: <https://trac.macports.org/ticket/33479#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33479: p5.12-cgi-speedycgi fails to build with clang -------------------------------+-------------------------------- Reporter: arno.barbier@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: | Keywords: Port: p5-cgi-speedycgi | -------------------------------+-------------------------------- Changes (by mf2k@…): * owner: markd@… => macports-tickets@… * port: p5.12-cgi-speedycgi => p5-cgi-speedycgi Comment: markd has retired. See #44782. -- Ticket URL: <https://trac.macports.org/ticket/33479#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts