/usr/bin/ld: cannot find [...] when compiling - Mailing list pgsql-general

From Janek Sendrowski
Subject /usr/bin/ld: cannot find [...] when compiling
Date
Msg-id trinity-b1b29b5b-8e02-451d-aff1-95e2929d3e75-1385307093657@3capp-webde-bs45
Whole thread Raw
Responses Re: /usr/bin/ld: cannot find [...] when compiling
List pgsql-general
Hi,

 

My Makefile looks like this:


PROGRAM = test
DATA = test.c
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)

 


The file test.c only includes the postgres.h (#include "postgres.h"), but I get this error, when compiling:

/usr/bin/ld: cannot find -lxslt
/usr/bin/ld: cannot find -lxml2
/usr/bin/ld: cannot find -lpam
/usr/bin/ld: cannot find -ledit
collect2: ld returned 1 exit status
make: *** [test] Error 1

 

Does anyone have an idea?

 

Janek Sendrowski

pgsql-general by date:

Previous
From: Kevin Grittner
Date:
Subject: Re: Query runs slow
Next
From: Tom Lane
Date:
Subject: Re: /usr/bin/ld: cannot find [...] when compiling