Re: undefined reference - problem compiling pgadmin3

From: Alex Gorbachenko <agent_007(at)immo(dot)ru>
To: pgadmin-support(at)postgresql(dot)org
Subject: Re: undefined reference - problem compiling pgadmin3
Date: 2007-02-02 09:54:54
Message-ID: 20070202125454.35fa7ca7@satellit.immo
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

On Fri, 2 Feb 2007 09:15:42 +0100
Luca wrote:

>It returns
[skipped]

hmmm... very strange behavior. can you show output of
objdump -T /usr/local/lib/libwx_baseu-2.8.so | grep 'wxStringBase.*Init'

>and all the above are under /usr/local/lib that is listed in
>my /etc/ld.so.conf (I ran ldconfig a few times).
>How can I proceed?

your problem is not there.

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

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:

g++ -shared -fPIC
-o /home/agent_007/RPM/BUILD/wxGTK-2007-01-31/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 -Wl,--as-needed
-L/home/agent_007/RPM/BUILD/wxGTK-2007-01-31/lib
-Wl,-soname,libwx_gtk2u_ogl-2.8.so.0 -lz -ldl -lm -pthread
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpango-1.0
-lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 -lXinerama
-lXxf86vm -lSM -lpng -lz -ljpeg -ltiff -pthread -Wl,--as-needed
-Wl,--version-script,/home/agent_007/RPM/BUILD/wxGTK-2007-01-31/version-script
-lz -ldl -lm -lwx_gtk2u_core-2.8 -lwx_baseu-2.8

--
np: Bullet for My Valentine - No Control

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Luca Ferrari 2007-02-02 11:00:09 Re: undefined reference - problem compiling pgadmin3
Previous Message Luca Ferrari 2007-02-02 08:15:42 Re: undefined reference - problem compiling pgadmin3