[AOLSERVER] Build nspostgres from github repositories in Mac OS X Mountain Lion

6 views
Skip to first unread message

Cesáreo García Rodicio

unread,
Nov 16, 2012, 10:41:18 AM11/16/12
to aolserv...@lists.sourceforge.net
Hi

I'm trying to build nspostgres from github repositories in Mac OS X
Mountain Lion.

I do:

> make AOLSERVER=/usr/local/aolserver ACS=1 POSTGRES=/usr/local/pgsql

But I had some errors:
"
Undefined symbols for architecture x86_64:
"_Ns_Db0or1Row", referenced from:
_PgBindCmd in nspostgres.o
"_Ns_Db1Row", referenced from:
_PgBindCmd in nspostgres.o
....

"

I did some googling and I found this
(http://stackoverflow.com/questions/1757509/precompiled-headers-and-compiling-universal-objects-on-osx)
but I'm not sure if it is related.

Any clue?

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
aolserver-talk mailing list
aolserv...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aolserver-talk

Jim

unread,
Nov 16, 2012, 4:21:46 PM11/16/12
to Cesáreo García Rodicio, aolserv...@lists.sourceforge.net
Hi,

I added some stuff to the build system that might help you: Later
versions of postgres have an information-supplying executable called
pg_config. This program can tell other programs where they can find
everything of that particular build of pg.

Information about how you can use it are in the README and the
Makefile, and I'll also quote it here:

See the Makefile for further information on building this module.

Note additions to build system (made in 2007):

make POSTGRES=SEPARATELY PGINC=... PGLIB=...
make POSTGRES=PG_CONFIG
make POSTGRES=PG_CONFIG PG_CONFIG=/path/to/pg_config

NOTE NOTE NOTE!! As of aolserver-4.5.x, the variable INST is used for
a different purpose than it used to be, so DO NOT set it to the installation
dir!! (Also you shouldn't change it unless you discover its new purpose,
which I don't remember at this moment)

Cesáreo,

Looking at the last invocation of make you tried, you should try this:

make AOLSERVER=/usr/local/aolserver ACS=1 POSTGRES=PG_CONFIG
PG_CONFIG=/usr/local/pgsql/bin/pg_config

-Jim

Cesáreo García Rodicio

unread,
Nov 16, 2012, 6:51:27 PM11/16/12
to Jim, aolserv...@lists.sourceforge.net
Hi Jim

I had already tried but ...

> make AOLSERVER=/usr/local/aolserver ACS=1 POSTGRES=PG_CONFIG
PG_CONFIG=/usr/local/pgsql/bin/pg_config

"

...
/usr/local/aolserver/bin/tclsh8.5 /usr/local/aolserver/bin/nsremove.tcl
nspostgres.so
gcc -bundle -pipe -o nspostgres.so nspostgres.o
-L/usr/local/pgsql/lib -lpq -L. -lnspostgres -L/usr/local/aolserver/lib
-lnsd -lnsthread -L/usr/local/aolserver/lib -ltcl8.5 -lpthread
-framework CoreFoundation


Undefined symbols for architecture x86_64:
"_Ns_Db0or1Row", referenced from:
_PgBindCmd in nspostgres.o
"_Ns_Db1Row", referenced from:

....

"

Thanks for your answer !

Regards
Cesáreo

El 16/noviembre/12 19:21, Jim escribió:

Jeff Rogers

unread,
Nov 16, 2012, 9:46:35 PM11/16/12
to Cesáreo García Rodicio, aolserv...@lists.sourceforge.net
Try using nspostgres off sourceforge - that appears to be the most
recent version.

Alternately, add nsdb to the libraries to link against in the makefile.

-J

Cesáreo García Rodicio

unread,
Nov 17, 2012, 8:00:59 AM11/17/12
to Jeff Rogers, aolserv...@lists.sourceforge.net
Hi Jeff

Oh! shi...!!! :-)

I had forgotten that
(http://openacs.org/forums/message-view?message_id=118559#118559).

Now I have the same issue posted some time ago
(http://www.mail-archive.com/aolserv...@lists.sourceforge.net/msg00198.html)
but it worked (I copy nspostgres.so to aolserver installation)

Thanks so much!!
Cesáreo

El 17/noviembre/12 00:46, Jeff Rogers escribió:

Reply all
Reply to author
Forward
0 new messages