Lists: | pgsql-bugs |
---|
From: | Graham Swallow <lists(at)information-cascade(dot)co(dot)uk> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | ubuntu 9.10 AMD64 undefined reference to `optreset' |
Date: | 2010-05-05 11:49:46 |
Message-ID: | u2pba05db111005050449j93b7fc7cm613109fbfcbbb49c@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
9.0 beta1 tarball
configure --prefix=/tmp/PG9/
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -L../../src/port -Wl,--as-needed -Wl,-rpath,'/tmp/pg9/lib'
-Wl,-E
... long list of .o files ...
../../src/port/libpgport_srv.a -lcrypt -ldl -lm -o postgres
postmaster/postmaster.o: In function `PostmasterMain':
postmaster.c:(.text+0x42ac): undefined reference to `optreset'
tcop/postgres.o: In function `process_postgres_switches':
postgres.c:(.text+0x12fb): undefined reference to `optreset'
collect2: ld returned 1 exit status
make[2]: *** [postgres] Error 1
make[2]: Leaving directory `/tmp/p/src/backend'
config.log says:
ac_cv_func_getopt=yes
ac_cv_func_getopt_long=yes
Is there perhaps an empty .deb package that has the dependencies?
Graham
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Graham Swallow <lists(at)information-cascade(dot)co(dot)uk> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: ubuntu 9.10 AMD64 undefined reference to `optreset' |
Date: | 2010-05-05 13:58:48 |
Message-ID: | 517.1273067928@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
Graham Swallow <lists(at)information-cascade(dot)co(dot)uk> writes:
> 9.0 beta1 tarball
> configure --prefix=/tmp/PG9/
> ...
> postmaster/postmaster.o: In function `PostmasterMain':
> postmaster.c:(.text+0x42ac): undefined reference to `optreset'
> tcop/postgres.o: In function `process_postgres_switches':
> postgres.c:(.text+0x12fb): undefined reference to `optreset'
That's very peculiar, because those files only attempt to touch optreset
if configure found that that variable is defined by the system
libraries. Would you look at the part of config.log that begins with
"checking for optreset"?
regards, tom lane
From: | Graham Swallow <lists(at)information-cascade(dot)co(dot)uk> |
---|---|
To: | pgsql-bugs <pgsql-bugs(at)postgresql(dot)org> |
Subject: | ubuntu 9.10 AMD64 undefined reference to `optreset' |
Date: | 2010-05-05 14:18:46 |
Message-ID: | o2wba05db111005050718u94e1930an379ea73dc58c0e28@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
---------- Forwarded message ----------
Date: 5 May 2010 15:15
Subject: Re: [BUGS] ubuntu 9.10 AMD64 undefined reference to `optreset'
configure:21408: checking for optreset
configure:21434: gcc -o conftest -O2 -Wall -Wmissing-prototypes
-Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
-fno-strict-aliasing -fwrapv -D_GNU_SOURCE conftest.c -lz -ledit
-lcrypt -ldl -lm >&5
configure:21441: $? = 0
configure:21461: result: yes
Manually repeating without -ledit seemed to make the same difference
Graham
> libraries. Would you look at the part of config.log that begins with
> "checking for optreset"?
>
> regards, tom lane
>