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

error "Loading file /package/text/emacs-27.0.50/share/emacs/27.0.50/lisp/cus-start.elc failed to provide feature 'pg' #8

Closed
gnusupport opened this issue Dec 31, 2017 · 11 comments

Comments

@gnusupport
Copy link

Hello,

I am trying to load this file test.el however, on (require 'pq) I get the error as in subject of this message. I am using latest GNU Emacs from git.

Please help me run this database connection, as pg.el stopped working with PostgreSQL version 10.1

@gnusupport
Copy link
Author

make check
emacs --batch -Q -l ert -l test.el -f ert-run-tests-batch-and-exit
Loading file /package/text/emacs-27.0.50/share/emacs/27.0.50/lisp/emacs-lisp/ert.elc failed to provide feature ‘pq’
make: *** [Makefile:28: check] Error 255

@anse1
Copy link
Owner

anse1 commented Jan 2, 2018 via email

@gnusupport
Copy link
Author

As you see, apparently random XX.elc files are blamed to "fail to provide" feature 'pq'.

pg_config --includedir
/package/database/postgresql-10.1/include

make clean
rm -f pq.so

make
gcc -I/home/data1/protected/Programming/git/emacs-libpq -I/media/GNU.Support/sources/emacs/src/ -I/package/database/postgresql-10.1/include -std=gnu99 -ggdb3 -Wall -fPIC -c pq.c
ld -shared -lpq -o pq.so pq.o
rm pq.o

make check
emacs --batch -Q -l ert -l test.el -f ert-run-tests-batch-and-exit
Loading file /package/text/emacs-27.0.50/share/emacs/27.0.50/lisp/emacs-lisp/ert.elc failed to provide feature ‘pq’
make: *** [Makefile:28: check] Error 255

I have this file here:
/media/GNU.Support/sources/emacs/src/emacs-module.h

@anse1
Copy link
Owner

anse1 commented Jan 3, 2018 via email

@gnusupport
Copy link
Author

gnusupport commented Jan 9, 2018 via email

@gnusupport
Copy link
Author

it appears at random, it changes files:
.../emacs/27.0.50/lisp/vc/vc-git.elc failed to provide feature ‘pq’")

Did you ever try to use development version with your module?

@anse1
Copy link
Owner

anse1 commented Jan 14, 2018 via email

@gnusupport
Copy link
Author

gnusupport commented Jan 14, 2018 via email

@anse1
Copy link
Owner

anse1 commented Jan 14, 2018 via email

@gnusupport
Copy link
Author

gnusupport commented Jan 14, 2018 via email

@gnusupport
Copy link
Author

That issue relates to GNU Emacs, and not to emacs-libpq module. So I think it should be closed now as a "bug".

I have discussed it as Emacs bug https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30106 and after the patch, few other bugs were found, but I could make it so that it works. Now I can load the emacs-libpq module and have replaced whatever I was doing earlier with pg.el that does not work in the version 10.1 of the PostgreSQL

If I find anything weird with your module, I will report again.

Otherwise, few commands you made work well. And I found that pq:query is working well even for INSERT statements and anything. I had to adjust to use vectors instead of list members, that was not hard at all.

You did not know that pg.el is going to become not functional for 10.1 version of PostgreSQL, and you made this module for your use. As soon as various operating systems start adopting 10.1 version, your module will be more wanted. It advertised on https://www.emacswiki.org/emacs/PostgreSQL#toc2

Thank you for making this happen.

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

2 participants