profiling on win32

From: "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>
To: <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: profiling on win32
Date: 2005-08-23 18:47:55
Message-ID: 6EE64EF3AB31D5448D0007DD34EEB3417DD187@Herge.rcsinc.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers-win32

has andbody managed to get profiling working on windows? I'm hacking
the makefile.global with -pg in CFLAGS the postgres library compiles ok
but the next one fails:

what I am I doing wrong? libgmon.a is provided with mingw.

Merlin

gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wold-style-definition -Wendif-labels
-fno-strict-aliasing -pg -I../../../../../../src/include
-I./src/include/port/win32 -DEXEC_BACKEND
"-I../../../../../../src/include/port/win32" -c -o ascii_and_mic.o
ascii_and_mic.c
dlltool --export-all --output-def ascii_and_mic.def ascii_and_mic.o
dllwrap -o libascii_and_mic.dll --dllname libascii_and_mic.dll --def
ascii_and_mic.def ascii_and_mic.o -L../../../../../../src/backend
-L../../../../../../src/port -lpostgres
ascii_and_mic.o(.text+0x9):ascii_and_mic.c: undefined reference to
`mcount'
ascii_and_mic.o(.text+0x29):ascii_and_mic.c: undefined reference to
`mcount'
ascii_and_mic.o(.text+0x4c):ascii_and_mic.c: undefined reference to
`mcount'
ascii_and_mic.o(.text+0x7c):ascii_and_mic.c: undefined reference to
`mcount'
collect2: ld returned 1 exit status
c:\mingw\bin\dllwrap.exe: c:\mingw\bin\gcc exited with status 1
make[2]: *** [libascii_and_mic.dll] Error 1
make[2]: Leaving directory
`/postgres/pgsql/src/backend/utils/mb/conversion_procs/ascii_and_mic'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/postgres/pgsql/src/backend/utils/mb/conversion_procs'
make: *** [all] Error 2

Responses

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Tom Lane 2005-08-23 19:20:21 Re: profiling on win32
Previous Message Tom Lane 2005-08-23 13:26:16 Re: win32 random number generator