Forum OpenACS Q&A: Contacts 1.0d3 - Error installing from HEAD

I'm having trouble installing contacts. I see the following in the error log:
......
[01/Jul/2005:19:53:01][1477.57352][-conn:head::4] Notice: CREATE TABLE

[01/Jul/2005:19:53:02][1477.57352][-conn:head::4] Notice: INSERT 930646 1

[01/Jul/2005:19:53:02][1477.57352][-conn:head::4] Notice: INSERT 930647 1

[01/Jul/2005:19:53:02][1477.57352][-conn:head::4] Notice: CREATE TABLE

[01/Jul/2005:19:53:02][1477.57352][-conn:head::4] Notice: CREATE VIEW

[01/Jul/2005:19:53:02][1477.57352][-conn:head::4] Notice: CREATE TABLE

[01/Jul/2005:19:53:02][1477.57352][-conn:head::4] Error: apm_package_install: Error installing Contacts version 1.0d3: psql:contacts-create.sql:106: ERROR: syntax error at or near "(" at character 414 CONTEXT: PL/pgSQL function "acs_object__new" line 17 at select into variables PL/pgSQL function "content_item__new" line 92 at assignment PL/pgSQL function "content_folder__new" line 40 at assignment PL/pgSQL function "content_folder__new" line 7 at return PL/pgSQL function "contact__folder_id" line 11 at assignment

It seems that the data model has been created and that the error comes from the after-install callback, but here I'm stuck.