Re: undefined reference - problem compiling pgadmin3

From: Luca Ferrari <fluca1978(at)infinito(dot)it>
To: pgadmin-support(at)postgresql(dot)org
Subject: Re: undefined reference - problem compiling pgadmin3
Date: 2007-02-02 11:00:09
Message-ID: 200702021200.09373.fluca1978@infinito.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

On Friday 02 February 2007 Alex Gorbachenko's cat, walking on the keyboard,
wrote:
> hmmm... very strange behavior. can you show output of
> objdump -T /usr/local/lib/libwx_baseu-2.8.so | grep 'wxStringBase.*Init'

0009f1c0 g DF .text 0000008d WXU_2.8 _ZN12wxStringBase8InitWithEPKwjj

> when you build wxgtk contribs (i.e. ogl), core and base wxgtk libs is
> not present in linker options.

but I've installed wx, run ldconfig and then build the contribs.

>
> example for "right" build flags: "-Wl,-L<wxbuilddir>/lib
> -lwx_gtk2u_core-2.8 -lwx_baseu-2.8"
>
> change dir to <wxbuilddir>/contrib/src/ogl and type make clean && make.
> at the end of report you should see string with linker options. for
> example, my string is:
>

It seems right to me, isn't it?

g++ -shared -fPIC -o /home/luca/tmp/wxWidgets-2.8.0/lib/libwx_gtk2u_ogl-2.8.so.0.0.0
ogldll_basic2.o ogldll_canvas.o ogldll_divided.o ogldll_mfutils.o
ogldll_oglmisc.o ogldll_basic.o ogldll_composit.o ogldll_drawn.o
ogldll_bmpshape.o ogldll_constrnt.o ogldll_lines.o
ogldll_ogldiag.o -pthread -L/home/luca/tmp/wxWidgets-2.8.0/lib -Wl,-soname,libwx_gtk2u_ogl-2.8.so.0 -lz -ldl -lm -lwxtiff-2.8 -lwxjpeg-2.8 -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 -lXinerama -lSM -lpng -lz -lwxregexu-2.8 -pthread -Wl,--version-script,/home/luca/tmp/wxWidgets-2.8.0/version-script -lz -ldl -lm -lwx_gtk2u_core-2.8 -lwx_baseu-2.8

Should I set other options?

Thanks,
Luca

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Alex Gorbachenko 2007-02-02 11:32:35 Re: undefined reference - problem compiling pgadmin3
Previous Message Alex Gorbachenko 2007-02-02 09:54:54 Re: undefined reference - problem compiling pgadmin3