[Pgcluster-general] PGCluster1.7.0rc3 and Postgresql-8.2.1 (inside Mac Os x 10.4.8)
Adriano Nassi
adriano at historicalengineering.com
Sat Feb 10 11:52:30 UTC 2007
Hi,
Thanks so much for your quick answer.
The OS is MAC OS X ( rel. 10.4.8)
The processor is 2.1 GHz PowerPC G5.
Postgresql is the release 8.2.1
The PgCluster is the release 1.7.0rc3.
About my code, when I saw the first error shown below:
+++++++++++++++++++++++++++++++++++++++++++
gcc -no-cpp-precomp -O2 -Wall -Wmissing-prototypes -Wpointer-arith -
Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-
aliasing -DUSE_REPLICATION -DPRINT_DEBUG -L../../src/port access/
SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o parser/SUBSYS.o commands/
SUBSYS.o executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o main/SUBSYS.o
nodes/SUBSYS.o optimizer/SUBSYS.o port/SUBSYS.o postmaster/SUBSYS.o
regex/SUBSYS.o rewrite/SUBSYS.o storage/SUBSYS.o tcop/SUBSYS.o utils/
SUBSYS.o ../../src/timezone/SUBSYS.o ../../src/port/
libpgport_srv.a ../../src/interfaces/libpq/libpq.a -lm -o postgres
/usr/bin/ld: Undefined symbols:
_cuserid
collect2: ld returned 1 exit status
make[2]: *** [postgres] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2
+++++++++++++++++++++++++++++++++++++++++++
I tried to investigate this error --> Undefined symbols: _cuserid
I went to internet and I saw this germar forum:
http://www.pg-forum.de/showthread.php?
s=b4aececfd0894a598c91430653a19d8e&t=1158&page=3
I translated the page with the google option and I tried to
understand the question on the forum that seems the same my problem.
I found this variable ?_cuserid inside this path in my local machine :
/src/backend/libpq/recovery.c
I putted the same code suggest in the forum show
+++++++++++++++++++++++++++++++++++++++++++
#include <string.h>
char * cuserid(char *s)
{
register struct passwd *pwd;
if ((pwd = getpwuid(geteuid())) == NULL) {
if (s)
*s = '\0';
return (s);
}
if (s) {
(void)strncpy(s, pwd->pw_name, L_cuserid);
return (s);
}
return (pwd->pw_name);
}
static int
read_packet(int sock,RecoveryPacket * packet)
+++++++++++++++++++++++++++++++++++++++++++
And after I typed
make clean && install again.
But unfortunately I saw this problem after:
+++++++++++++++++++++++++++++++++++++++++++
gcc -no-cpp-precomp -O2 -Wall -Wmissing-prototypes -Wpointer-arith -
Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-
aliasing -DUSE_REPLICATION -DPRINT_DEBUG -DPRINT_DEBUG pqformat.o
cascade.o conf.o main.o recovery.o replicate.o rlog.o ../../../src/
backend/libpq/replicate_com.o ../libpgc/SUBSYS.o -L../../../src/
interfaces/libpq -lpq ../../../src/interfaces/libpq/libpq.a -
L../../../src/port -lpgport -lz -lreadline -lm -o pgreplicate
+++++++++++++++++++++++++++++++++++++++++++
Thanks of lot,
Adriano
More information about the Pgcluster-general
mailing list