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

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

Projects

None yet

1 participant

@Habbie
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

@Habbie Habbie was assigned Apr 26, 2013
@Habbie Habbie closed this Apr 26, 2013
@Habbie
Member
Habbie commented Apr 26, 2013

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

@Habbie
Member
Habbie commented Apr 26, 2013

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

@Habbie
Member
Habbie commented Apr 26, 2013

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

@Habbie
Member
Habbie commented Apr 26, 2013

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

@Habbie
Member
Habbie commented Apr 26, 2013

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

@Habbie
Member
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
Member
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
Member
Habbie commented Apr 26, 2013

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

@Habbie
Member
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
Member
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