Re: clang and postgresql90

2011-04-04 Thread Christer Solskogen
On Mon, Apr 4, 2011 at 12:47 AM, Dimitry Andric d...@freebsd.org wrote:
 On 2011-04-03 20:15, Christer Solskogen wrote:

 I'm just wondering if anyone else has trouble compiling postgresql90
 with clang. I get this (and I cant seem to find anything online that
 somebody else had that same problem):

 ...

 libpq/auth.o: In function `ClientAuthentication':
 auth.c:(.text+0x51e): undefined reference to `gss_accept_sec_context'
 auth.c:(.text+0x5c7): undefined reference to `gss_release_buffer'

 ...

 This error is not related to clang, but a problem with postgresql's
 configure script, in combination with the updated binutils in the base
 system.  You will get the same error if you use gcc.

 Patch:
 http://www.andric.com/freebsd/binutils/bu217-databases-postgresql90-server-1.diff

 Similar one for postgres 8.4:
 http://www.andric.com/freebsd/binutils/bu217-databases-postgresql84-server-1.diff


Okay, thanks :-)

-- 
chs,
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


clang and postgresql90

2011-04-03 Thread Christer Solskogen
Hi!

I'm just wondering if anyone else has trouble compiling postgresql90
with clang. I get this (and I cant seem to find anything online that
somebody else had that same problem):

gmake[1]: Leaving directory
`/usr/obj/usr/ports/databases/postgresql90-server/work/postgresql-9.0.3/src/timezone'
clang -O2 -pipe -march=core2 -O3 -funroll-loops -fno-strict-aliasing
-Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -L../../src/port -
L/usr/local/lib -rpath=/usr/lib:/usr/local/lib -L/usr/local/lib
-L/usr/local/lib -L/usr/local/lib  -L/usr/local/lib -Wl,--as-needed
-Wl,-R'/usr/local/lib'  -Wl,-export-dynamic access/common/heaptuple.o
ac
cess/common/indextuple.o access/common/printtup.o
access/common/reloptions.o access/common/scankey.o
access/common/tupconvert.o access/common/tupdesc.o access/gist/gist.o
access/gist/gistutil.o access/gis
t/gistxlog.o access/gist/gistvacuum.o access/gist/gistget.o
access/gist/gistscan.o access/gist/gistproc.o access/gist/gistsplit.o
access/hash/hash.o access/hash/hashfunc.o access/hash/hashinsert.o
access/
hash/hashovfl.o access/hash/hashpage.o access/hash/hashscan.o
access/hash/hashsearch.o access/hash/hashsort.o access/hash/hashutil.o
access/heap/heapam.o access/heap/hio.o access/heap/pruneheap.o
access/h
eap/rewriteheap.o access/heap/syncscan.o access/heap/tuptoaster.o
access/heap/visibilitymap.o access/index/genam.o
access/index/indexam.o access/nbtree/nbtcompare.o
access/nbtree/nbtinsert.o access/nbtree
/nbtpage.o access/nbtree/nbtree.o access/nbtree/nbtsearch.o
access/nbtree/nbtutils.o access/nbtree/nbtsort.o
access/nbtree/nbtxlog.o access/transam/clog.o access/transam/transam.o
access/transam/varsup.o
access/transam/xact.o access/transam/xlog.o access/transam/xlogutils.o
access/transam/rmgr.o access/transam/slru.o access/transam/subtrans.o
access/transam/multixact.o access/transam/twophase.o access/tra
nsam/twophase_rmgr.o access/gin/ginutil.o access/gin/gininsert.o
access/gin/ginxlog.o access/gin/ginentrypage.o
access/gin/gindatapage.o access/gin/ginbtree.o access/gin/ginscan.o
access/gin/ginget.o acce
ss/gin/ginvacuum.o access/gin/ginarrayproc.o access/gin/ginbulk.o
access/gin/ginfast.o bootstrap/bootparse.o bootstrap/bootstrap.o
catalog/catalog.o catalog/dependency.o catalog/heap.o catalog/index.o
cat
alog/indexing.o catalog/namespace.o catalog/aclchk.o
catalog/pg_aggregate.o catalog/pg_constraint.o catalog/pg_conversion.o
catalog/pg_depend.o catalog/pg_enum.o catalog/pg_inherits.o
catalog/pg_largeobje
ct.o catalog/pg_namespace.o catalog/pg_operator.o catalog/pg_proc.o
catalog/pg_db_role_setting.o catalog/pg_shdepend.o catalog/pg_type.o
catalog/storage.o catalog/toasting.o parser/analyze.o parser/gram.o
 parser/keywords.o parser/kwlookup.o parser/parser.o
parser/parse_agg.o parser/parse_clause.o parser/parse_coerce.o
parser/parse_cte.o parser/parse_expr.o parser/parse_func.o
parser/parse_node.o parser/pa
rse_oper.o parser/parse_param.o parser/parse_relation.o
parser/parse_target.o parser/parse_type.o parser/parse_utilcmd.o
parser/scansup.o commands/aggregatecmds.o commands/alter.o
commands/analyze.o comma
nds/async.o commands/cluster.o commands/comment.o
commands/constraint.o commands/conversioncmds.o commands/copy.o
commands/dbcommands.o commands/define.o commands/discard.o
commands/explain.o commands/for
eigncmds.o commands/functioncmds.o commands/indexcmds.o
commands/lockcmds.o commands/operatorcmds.o commands/opclasscmds.o
commands/portalcmds.o commands/prepare.o commands/proclang.o
commands/schemacmds.
o commands/sequence.o commands/tablecmds.o commands/tablespace.o
commands/trigger.o commands/tsearchcmds.o commands/typecmds.o
commands/user.o commands/vacuum.o commands/vacuumlazy.o
commands/variable.o commands/view.o executor/execAmi.o
executor/execCurrent.o executor/execGrouping.o executor/execJunk.o
executor/execMain.o executor/execProcnode.o executor/execQual.o
executor/execScan.o executor/execTuples.o executor/execUtils.o
executor/functions.o executor/instrument.o executor/nodeAppend.o
executor/nodeAgg.o executor/nodeBitmapAnd.o executor/nodeBitmapOr.o
executor/nodeBitmapHeapscan.o executor/nodeBitmapIndexscan.o
executor/nodeHash.o executor/nodeHashjoin.o executor/nodeIndexscan.o
executor/nodeLimit.o executor/nodeLockRows.o executor/nodeMaterial.o
executor/nodeMergejoin.o executor/nodeModifyTable.o
executor/nodeNestloop.o executor/nodeFunctionscan.o
executor/nodeRecursiveunion.o executor/nodeResult.o
executor/nodeSeqscan.o executor/nodeSetOp.o executor/nodeSort.o
executor/nodeUnique.o executor/nodeValuesscan.o executor/nodeCtescan.o
executor/nodeWorktablescan.o executor/nodeGroup.o
executor/nodeSubplan.o executor/nodeSubqueryscan.o
executor/nodeTidscan.o executor/nodeWindowAgg.o
executor/tstoreReceiver.o executor/spi.o foreign/foreign.o
lib/dllist.o lib/stringinfo.o libpq/be-fsstubs.o libpq/be-secure.o
libpq/auth.o libpq/crypt.o libpq/hba.o libpq/ip.o libpq/md5.o
libpq/pqcomm.o libpq/pqformat.o

Re: clang and postgresql90

2011-04-03 Thread Dimitry Andric

On 2011-04-03 20:15, Christer Solskogen wrote:

I'm just wondering if anyone else has trouble compiling postgresql90
with clang. I get this (and I cant seem to find anything online that
somebody else had that same problem):

...

libpq/auth.o: In function `ClientAuthentication':
auth.c:(.text+0x51e): undefined reference to `gss_accept_sec_context'
auth.c:(.text+0x5c7): undefined reference to `gss_release_buffer'

...

This error is not related to clang, but a problem with postgresql's
configure script, in combination with the updated binutils in the base
system.  You will get the same error if you use gcc.

Patch:
http://www.andric.com/freebsd/binutils/bu217-databases-postgresql90-server-1.diff

Similar one for postgres 8.4:
http://www.andric.com/freebsd/binutils/bu217-databases-postgresql84-server-1.diff
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org