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

Build breaks - undefined references in spgsql.o (SVN) #405

Closed
Habbie opened this issue Apr 26, 2013 · 10 comments
Closed

Build breaks - undefined references in spgsql.o (SVN) #405

Habbie opened this issue Apr 26, 2013 · 10 comments
Assignees

Comments

@Habbie
Copy link
Member

Habbie commented Apr 26, 2013

SVN rev 2291 seems to have introduced a build breaking bug for me. During linking spgsql.o shows a lot of undefined references - see attached make.txt

configure line is: ./configure --prefix=/opt/pdns --enable-pdns-server --with-modules="gpgsql geo pipe pdns" --enable-botan1.8 --no-recursion

root@dev:~# uname -a
Linux dev.home.hitzemann.org 2.6.32-5-amd64 #1 SMP Mon Oct 3 03:59:20 UTC 2011 x86_64 GNU/Linux

root@dev:~# cat /etc/debian_version
6.0.3

Postgres version: 9.1.1-1~bpo60+1

@ghost ghost assigned Habbie Apr 26, 2013
@Habbie Habbie closed this as completed Apr 26, 2013
@Habbie
Copy link
Member Author

Habbie commented Apr 26, 2013

Attachment '' (make.txt) https://gist.github.com/5466714

@Habbie
Copy link
Member Author

Habbie commented Apr 26, 2013

Attachment '' (configure.txt) https://gist.github.com/5466715

@Habbie
Copy link
Member Author

Habbie commented Apr 26, 2013

Attachment '' (bootstrap.txt) https://gist.github.com/5466716

@Habbie
Copy link
Member Author

Habbie commented Apr 26, 2013

Attachment '' (configure.ac.diff) https://gist.github.com/5466717

@Habbie
Copy link
Member Author

Habbie commented Apr 26, 2013

Author: anon
In case you need to contact me: simon@hitzemann.org :)

@Habbie
Copy link
Member Author

Habbie commented Apr 26, 2013

Author: anon
It looks like the check for libcrypt introduced in r2291 breaks the gpgsql backend build. configure.ac needs the OBJECTLIBS file in line 567, but the file is not existing at that point. It is generated at the end of the configure run from OBJECTLIBS.in.
gpgsql is the only backend using this mechanism.

A workaround would be running the configure script twice, as OBJECTLIBS has been generated before the second run.

@Habbie
Copy link
Member Author

Habbie commented Apr 26, 2013

Author: anon
I moved AC_OUTPUT in front of the OBJECTFILES/OBJECTLIBS routine in configure.ac
It now seems to build fine.

@Habbie
Copy link
Member Author

Habbie commented Apr 26, 2013

Author: peter
Presumably fixed by Bert in r2310, please let me know if it works for you.

@Habbie
Copy link
Member Author

Habbie commented Apr 26, 2013

Author: anon
Doesn't fix it...
During configure:
---SNIP---
checking for PgSQL include directory... /usr/include/postgresql
cat: ./modules/gpgsqlbackend/OBJECTLIBS: No such file or directory
configure: creating ./config.status
---SNIP---

As long as the code in configure.ac lines 563-582 tried to read OBJECTLIBS before it is generated in line 604 the build will fail.

@Habbie
Copy link
Member Author

Habbie commented Apr 26, 2013

Author: ahu
Fixed in 2319.

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

No branches or pull requests

1 participant