Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mod_psgi.so: undefined symbol: GvCV_set #8

Open
mrdvt92 opened this issue Mar 11, 2015 · 0 comments
Open

mod_psgi.so: undefined symbol: GvCV_set #8

mrdvt92 opened this issue Mar 11, 2015 · 0 comments

Comments

@mrdvt92
Copy link

mrdvt92 commented Mar 11, 2015

So, it looks like I have some kind of missing define statement. I tried to add the missing defined but still no luck. I'm not a C programmer. Googling shows that the API changed in Perl 5.14 but we run 5.10 from CentOS 6. I wonder if that's the issue.

My Versions

$ rpm -q httpd perl
httpd-2.2.15-39.el6.centos.x86_64
perl-5.10.1-136.el6_6.1.x86_64

What I tried unsuccessfully

$ git diff mod_psgi.c
diff --git a/mod_psgi.c b/mod_psgi.c
index 3df69f4..abe1c69 100644
--- a/mod_psgi.c
+++ b/mod_psgi.c
@@ -62,6 +62,8 @@
 #define TRACE(...) ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_NOTICE, 0, NULL, __VA_ARGS__)
 #endif
+#define GvCV_set(gv, cv) (GvCV(gv) = (cv))
+
 module AP_MODULE_DECLARE_DATA psgi_module;
 typedef struct {

Spec file from djzort https://github.com/spiritloose/mod_psgi/pull/7/files

$ sudo rpm -Uhv ~/rpmbuild/RPMS/x86_64/mod_psgi-0.0.3-1.el6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:mod_psgi               ########################################### [100%]
$ sudo /etc/init.d/httpd configtest
httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/psgi.conf: Cannot load /etc/httpd/modules/mod_psgi.so into server: /etc/httpd/modules/mod_psgi.so: undefined symbol: GvCV_set

Ref:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant