Gpsim compile question

View: New views
6 Messages — Rating Filter:   Alert me  

Gpsim compile question

by Phil-22 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you for reading this.

Gpsim installed without any problems using the GTK and GTK+extra rpms, apart
from the GTK crash bug.

In an effort to fix the bug I removed the GTK+extra rpm and compiled
gtk+extra-2.1.1.tar.gz. I found that I needed to add the GTK devel rpm and
that gtk+extra needed to be installed into /usr rather than /usr/local so
that gpsim could find the gtk+extra library.

Now gpsim won't compile without an error. Can anyone offer a suggestion?

../cli/.libs/libgpsimcli.so: undefined reference to `rl_forced_update_display'
../cli/.libs/libgpsimcli.so: undefined reference to `rl_completion_matches'
../cli/.libs/libgpsimcli.so: undefined reference to
`rl_callback_handler_remove'
../cli/.libs/libgpsimcli.so: undefined reference to `rl_callback_read_char'
../cli/.libs/libgpsimcli.so: undefined reference to
`rl_callback_handler_install'
../cli/.libs/libgpsimcli.so: undefined reference to `add_history'
collect2: ld returned 1 exit status

By the way, this error is unrelated to the GTK+extra patch but still seems to
be related somehow to the gtk+extra tar file.

--
Regards,
Phil

---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...


Re: Gpsim compile question

by Scott Dattalo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> In an effort to fix the bug I removed the GTK+extra rpm and compiled
> gtk+extra-2.1.1.tar.gz. I found that I needed to add the GTK devel rpm and
> that gtk+extra needed to be installed into /usr rather than /usr/local so
> that gpsim could find the gtk+extra library.
>
> Now gpsim won't compile without an error. Can anyone offer a suggestion?
>
> ../cli/.libs/libgpsimcli.so: undefined reference to
> `rl_forced_update_display'

The "rl_" prefixes refer to the ReadLine Library. I think you will need to
install that development RPM as well.

Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...


Re: Gpsim compile question

by Alain PORTAL-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Le samedi 03 mai 2008, Phil a écrit :
> Thank you for reading this.
>
> Gpsim installed without any problems using the GTK and GTK+extra rpms,
> apart from the GTK crash bug.

What is your distribution?

Regards,
Alain
--
Les pages de manuel Linux en français
http://manpagesfr.free.fr/


signature.asc (196 bytes) Download Attachment

Re: Gpsim compile question

by Alain PORTAL-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Le samedi 03 mai 2008, Scott Dattalo a écrit :

> > In an effort to fix the bug I removed the GTK+extra rpm and compiled
> > gtk+extra-2.1.1.tar.gz. I found that I needed to add the GTK devel rpm
> > and that gtk+extra needed to be installed into /usr rather than
> > /usr/local so that gpsim could find the gtk+extra library.
> >
> > Now gpsim won't compile without an error. Can anyone offer a suggestion?
> >
> > ../cli/.libs/libgpsimcli.so: undefined reference to
> > `rl_forced_update_display'
>
> The "rl_" prefixes refer to the ReadLine Library. I think you will need to
> install that development RPM as well.
Which should be "readline-devel".

Regards,
Alain
--
Les pages de manuel Linux en français
http://manpagesfr.free.fr/


signature.asc (196 bytes) Download Attachment

Re: Gpsim compile question

by Alain PORTAL-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Le samedi 03 mai 2008, Phil a écrit :
> Thank you for reading this.
>
> Gpsim installed without any problems using the GTK and GTK+extra rpms,
> apart from the GTK crash bug.

It seems your distribution is Mandriva.

Fill a bug in Mandriva against gtk+extra and join the two patches I sent.

Regards,
Alain
--
Les pages de manuel Linux en français
http://manpagesfr.free.fr/


signature.asc (196 bytes) Download Attachment

Re: Gpsim compile question

by Phil-22 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, 3 May 2008 08:01:39 pm Alain PORTAL wrote:
> Le samedi 03 mai 2008, Scott Dattalo a écrit :
> > > `rl_forced_update_display'
> >
> > The "rl_" prefixes refer to the ReadLine Library. I think you will need
> > to install that development RPM as well.
>
> Which should be "readline-devel".
>

Thanks for your reply Alain and Scott.

This is starting to get frustrating especially since I had gpsim working
before I installed the tared version of gtk+extra. Now for some strange
reason libreadline-devel is giving me trouble. A closer inspection of the
output of configure turned up this:

checking for unistd.h... yes
checking for GNU Readline library, version 2.0 or newer... no (it is present
but too old to use)
checking to see if readline callbacks take a cast... no

I have libreadline-devel 5.2, the current Mandriva 2008.1 version.

From input.cc, could this be the problem?

#define GETCWD getcwd
// temp fix to over come 23jan05 changes to configure script that prevent
// readline from being found on older systems.
#define HAVE_READLINE
#define HAVE_NSCLEAN_READLINE

Can anyone offer any suggestions?

--
Regards,
Phil

---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...

LightInTheBox - Buy quality products at wholesale price!