Opened 12 years ago

Closed 9 years ago

#33479 closed defect (wontfix)

p5.12-cgi-speedycgi fails to build with clang

Reported by: arno.barbier@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: cooljeanius (Eric Gallager)
Port: p5-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 (1)

p5.12-cgi-speedycgi_main.log (56.5 KB) - added by arno.barbier@… 12 years ago.
p5.12-cgi-speedycgi_main

Download all attachments as: .zip

Change History (11)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to markd@…

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

Changed 12 years ago by arno.barbier@…

p5.12-cgi-speedycgi_main

comment:2 in reply to:  1 Changed 12 years 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 Changed 12 years ago by jmroot (Joshua Root)

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:4 Changed 11 years ago by jan.michael@…

Cc: jan.michael@… added

Cc Me!

comment:5 Changed 11 years ago by jan.michael@…

Cc: jan.michael@… removed

Cc Me!

comment:6 in reply to:  3 Changed 11 years 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 11 years 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.

comment:8 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:9 Changed 10 years ago by mf2k (Frank Schima)

Owner: changed from markd@… to macports-tickets@…
Port: p5-cgi-speedycgi added; p5.12-cgi-speedycgi removed

markd has retired. See #44782.

comment:10 Changed 9 years ago by mojca (Mojca Miklavec)

Resolution: wontfix
Status: newclosed
Version: 2.0.4

Port deleted in r129456. It has been defunct for almost three years and there doesn't seem to be any fix for it.

Note: See TracTickets for help on using tickets.