Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 1999-05

I am still having trouble linking lazarus

8 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Sergio A. Kessler

(Cliff Baeseman) el d�a Wed, 5 May 1999
15:14:05 -0500, escribi�:

void gtk_label_set_text (GtkLabel *label, const char *str); The above leads me to belive that the linker is looking at your 1.2

version.

yes, I also have the *same* problem and also believe the linker is looking at gtk 1.2

The above is from the 1.2 gtklabel.h file gtk_label_set no longer exists

in

Show quoted text 69 lines
1.2 hmmmmm Cliff -----Original Message----- From: Behalf Of Michael A. Hess Sent: Wednesday, May 05, 1999 2:52 PM To: Subject: [lazarus] I am still having trouble linking lazarus Greetings, I think (that's think now mind you) that I have gtk 1.0.6 setup correctly. I have installed the libs into /usr/local/lib so that it doesn't interfer with my gtk 1.2 stuff for Gnome. I have made sure that this directory is set in ld.so.conf and ran ldconfig. I have also modifed the makefile GTKLIBDIR so that it also points to /usr/local/lib. The link.res places this first on the list so it should be the first place searched. Everything compiles OK but here is what I get during the link. What isn't working correctly for me? Linking ./lazarus ./comctrls.o: In function `_COMCTRLS$$_$$_TTABSHEET_SETTABCAPTION$STRING': ./comctrls.o(.text+0xabd): undefined reference to `gtk_label_set' ./comctrls.o: In function `_COMCTRLS$$_$$_TTABSHEET_CREATE$TCOMPONENT': ./comctrls.o(.text+0xb9c): undefined reference to `gtk_container_border_width' ./controls.o: In function `_CONTROLS$$_$$_TCONTROL_SETTEXT$TCAPTION': ./controls.o(.text+0xbb1): undefined reference to `gtk_label_set' ./controls.o(.text+0xbf0): undefined reference to `gtk_label_set' ./controls.o: In function `_CONTROLS$$_$$_TCONTROL_CREATECOMPONENT$TCOMPONENT': ./controls.o(.text+0xdfb): undefined reference to `gtk_container_border_width' /home/mhess/fpc/gtk/gtk.o: In function `_GTK$$_GTK_TYPE_WINDOW_TYPE': /home/mhess/fpc/gtk/gtk.o(.text+0x523): undefined reference to `gtk_type_builtins' /home/mhess/fpc/gtk/gtk.o: In function `_GTK$$_GTK_TYPE_STATE_TYPE': /home/mhess/fpc/gtk/gtk.o(.text+0x53b): undefined reference to `gtk_type_builtins' /home/mhess/fpc/gtk/gtk.o: In function `_GTK$$_GTK_TYPE_DIRECTION_TYPE': /home/mhess/fpc/gtk/gtk.o(.text+0x553): undefined reference to `gtk_type_builtin I would really like to get lazarus compile so I can at least attempt to help out in some way. :-) -- ==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject

Reply by email

Michael A. Hess
to Peter Vreman: But is the /usr/local/lib earlier in the list then /usr/lib? Else the only way to compile…
Michael A. Hess wrote 12 lines
SEARCH_DIR(/usr/local/lib/) SEARCH_DIR(/usr/X11/lib/) SEARCH_DIR(/lib) SEARCH_DIR(/usr/lib) SEARCH_DIR(/usr/lib/X11) SEARCH_DIR(/usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/) SEARCH_DIR(/home/mhess/fpc/gtk/) SEARCH_DIR(/home/mhess/fpc/fcl/linux/) SEARCH_DIR(/home/mhess/fpc/units/linux/) SEARCH_DIR(/home/mhess/fpc/rtl/linux/) SEARCH_DIR(/usr/lib/fpc/0.99.10/linuxunits/)

Man I'm confused. :-\

Shouldn't the above setup be telling it to search /usr/local/lib first for any libraries?

If I use ppas.sh and link.res just as they are built by the make it doesn't work. When I go into ppas.sh and add

-L/usr/local/lib

to the ld line then it links OK. Can somebody else see something I'm missing? :-\

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Michael A. Hess

Greetings,

I think (that's think now mind you) that I have gtk 1.0.6 setup correctly. I have installed the libs into /usr/local/lib so that it doesn't interfer with my gtk 1.2 stuff for Gnome. I have made sure that this directory is set in ld.so.conf and ran ldconfig. I have also modifed the makefile GTKLIBDIR so that it also points to /usr/local/lib.

The link.res places this first on the list so it should be the first place searched.

Everything compiles OK but here is what I get during the link. What isn't working correctly for me?

Linking ./lazarus
./comctrls.o: In function
`_COMCTRLS$$_$$_TTABSHEET_SETTABCAPTION$STRING':
./comctrls.o(.text+0xabd): undefined reference to `gtk_label_set' ./comctrls.o: In function `_COMCTRLS$$_$$_TTABSHEET_CREATE$TCOMPONENT': ./comctrls.o(.text+0xb9c): undefined reference to
`gtk_container_border_width'
./controls.o: In function `_CONTROLS$$_$$_TCONTROL_SETTEXT$TCAPTION': ./controls.o(.text+0xbb1): undefined reference to `gtk_label_set' ./controls.o(.text+0xbf0): undefined reference to `gtk_label_set' ./controls.o: In function
`_CONTROLS$$_$$_TCONTROL_CREATECOMPONENT$TCOMPONENT': ./controls.o(.text+0xdfb): undefined reference to
`gtk_container_border_width'
/home/mhess/fpc/gtk/gtk.o: In function `_GTK$$_GTK_TYPE_WINDOW_TYPE': /home/mhess/fpc/gtk/gtk.o(.text+0x523): undefined reference to `gtk_type_builtins'
/home/mhess/fpc/gtk/gtk.o: In function `_GTK$$_GTK_TYPE_STATE_TYPE': /home/mhess/fpc/gtk/gtk.o(.text+0x53b): undefined reference to `gtk_type_builtins'
/home/mhess/fpc/gtk/gtk.o: In function `_GTK$$_GTK_TYPE_DIRECTION_TYPE': /home/mhess/fpc/gtk/gtk.o(.text+0x553): undefined reference to `gtk_type_builtin

I would really like to get lazarus compile so I can at least attempt to help out in some way. :-)

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Cliff Baeseman
to Michael A. Hess
void       gtk_label_set_text      (GtkLabel          *label,
                                    const char        *str);

The above leads me to belive that the linker is looking at your 1.2 version. The above is from the 1.2 gtklabel.h file gtk_label_set no longer exists in 1.2

hmmmmm

Cliff

Earlier message 58 lines
-----Original Message----- From: Behalf Of Michael A. Hess Sent: Wednesday, May 05, 1999 2:52 PM To: Subject: [lazarus] I am still having trouble linking lazarus Greetings, I think (that's think now mind you) that I have gtk 1.0.6 setup correctly. I have installed the libs into /usr/local/lib so that it doesn't interfer with my gtk 1.2 stuff for Gnome. I have made sure that this directory is set in ld.so.conf and ran ldconfig. I have also modifed the makefile GTKLIBDIR so that it also points to /usr/local/lib. The link.res places this first on the list so it should be the first place searched. Everything compiles OK but here is what I get during the link. What isn't working correctly for me? Linking ./lazarus ./comctrls.o: In function `_COMCTRLS$$_$$_TTABSHEET_SETTABCAPTION$STRING': ./comctrls.o(.text+0xabd): undefined reference to `gtk_label_set' ./comctrls.o: In function `_COMCTRLS$$_$$_TTABSHEET_CREATE$TCOMPONENT': ./comctrls.o(.text+0xb9c): undefined reference to `gtk_container_border_width' ./controls.o: In function `_CONTROLS$$_$$_TCONTROL_SETTEXT$TCAPTION': ./controls.o(.text+0xbb1): undefined reference to `gtk_label_set' ./controls.o(.text+0xbf0): undefined reference to `gtk_label_set' ./controls.o: In function `_CONTROLS$$_$$_TCONTROL_CREATECOMPONENT$TCOMPONENT': ./controls.o(.text+0xdfb): undefined reference to `gtk_container_border_width' /home/mhess/fpc/gtk/gtk.o: In function `_GTK$$_GTK_TYPE_WINDOW_TYPE': /home/mhess/fpc/gtk/gtk.o(.text+0x523): undefined reference to `gtk_type_builtins' /home/mhess/fpc/gtk/gtk.o: In function `_GTK$$_GTK_TYPE_STATE_TYPE': /home/mhess/fpc/gtk/gtk.o(.text+0x53b): undefined reference to `gtk_type_builtins' /home/mhess/fpc/gtk/gtk.o: In function `_GTK$$_GTK_TYPE_DIRECTION_TYPE': /home/mhess/fpc/gtk/gtk.o(.text+0x553): undefined reference to `gtk_type_builtin I would really like to get lazarus compile so I can at least attempt to help out in some way. :-) -- ==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject

Reply by email

Peter Vreman
to Michael A. Hess: I think (that's think now mind you) that I have gtk 1.0.6 setup correctly. I have…
you wrote 7 lines
Greetings, I think (that's think now mind you) that I have gtk 1.0.6 setup correctly. I have installed the libs into /usr/local/lib so that it doesn't interfer with my gtk 1.2 stuff for Gnome. I have made sure that this directory is set in ld.so.conf and ran ldconfig. I have also modifed the makefile GTKLIBDIR so that it also points to /usr/local/lib.

But is the /usr/local/lib earlier in the list then /usr/lib?

Else the only way to compile it atm is to create libgtk.so to link to 1.0.6. This should not interfere with the 1.2 needed for gnome except if you develop for it.

I've some patch lying around for gtk1.2, i'll try that one soon.

Reply by email

Cliff Baeseman
to Michael A. Hess: I think (that's think now mind you) that I have gtk 1.0.6 setup correctly. I have…

`gtk_container_border_width

does not exist in the 1.2 headers either...

Cliff

Earlier message 59 lines
-----Original Message----- From: Behalf Of Michael A. Hess Sent: Wednesday, May 05, 1999 2:52 PM To: Subject: [lazarus] I am still having trouble linking lazarus Greetings, I think (that's think now mind you) that I have gtk 1.0.6 setup correctly. I have installed the libs into /usr/local/lib so that it doesn't interfer with my gtk 1.2 stuff for Gnome. I have made sure that this directory is set in ld.so.conf and ran ldconfig. I have also modifed the makefile GTKLIBDIR so that it also points to /usr/local/lib. The link.res places this first on the list so it should be the first place searched. Everything compiles OK but here is what I get during the link. What isn't working correctly for me? Linking ./lazarus ./comctrls.o: In function `_COMCTRLS$$_$$_TTABSHEET_SETTABCAPTION$STRING': ./comctrls.o(.text+0xabd): undefined reference to `gtk_label_set' ./comctrls.o: In function `_COMCTRLS$$_$$_TTABSHEET_CREATE$TCOMPONENT': ./comctrls.o(.text+0xb9c): undefined reference to `gtk_container_border_width' ./controls.o: In function `_CONTROLS$$_$$_TCONTROL_SETTEXT$TCAPTION': ./controls.o(.text+0xbb1): undefined reference to `gtk_label_set' ./controls.o(.text+0xbf0): undefined reference to `gtk_label_set' ./controls.o: In function `_CONTROLS$$_$$_TCONTROL_CREATECOMPONENT$TCOMPONENT': ./controls.o(.text+0xdfb): undefined reference to `gtk_container_border_width' /home/mhess/fpc/gtk/gtk.o: In function `_GTK$$_GTK_TYPE_WINDOW_TYPE': /home/mhess/fpc/gtk/gtk.o(.text+0x523): undefined reference to `gtk_type_builtins' /home/mhess/fpc/gtk/gtk.o: In function `_GTK$$_GTK_TYPE_STATE_TYPE': /home/mhess/fpc/gtk/gtk.o(.text+0x53b): undefined reference to `gtk_type_builtins' /home/mhess/fpc/gtk/gtk.o: In function `_GTK$$_GTK_TYPE_DIRECTION_TYPE': /home/mhess/fpc/gtk/gtk.o(.text+0x553): undefined reference to `gtk_type_builtin I would really like to get lazarus compile so I can at least attempt to help out in some way. :-) -- ==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject

Reply by email

Michael A. Hess
to Peter Vreman: But is the /usr/local/lib earlier in the list then /usr/lib? Else the only way to compile…
Peter Vreman wrote
But is the /usr/local/lib earlier in the list then /usr/lib?

In link.res yes. Here is the output of link.res

SEARCH_DIR(/usr/local/lib/)
SEARCH_DIR(/usr/X11/lib/)
SEARCH_DIR(/lib)
SEARCH_DIR(/usr/lib)
SEARCH_DIR(/usr/lib/X11)
SEARCH_DIR(/usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/) SEARCH_DIR(/home/mhess/fpc/gtk/)
SEARCH_DIR(/home/mhess/fpc/fcl/linux/)
SEARCH_DIR(/home/mhess/fpc/units/linux/)
SEARCH_DIR(/home/mhess/fpc/rtl/linux/)
SEARCH_DIR(/usr/lib/fpc/0.99.10/linuxunits/)

Seeing you comment then I wasn't sure if it made a difference with ld.so.conf so I placed it first and reran ldconfig. Looking into the ld.so.cache it appears that the /usr/local/lib stuff is I still get the same link errors.

Else the only way to compile it atm is to create libgtk.so to link to 1.0.6. This should not interfere with the 1.2 needed for gnome except if you develop for it.

I do and I don't. I haven't done any deep development on my own yet but I do need to build apps for Gnome that require it. :-\

Thanks.

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Sergio A. Kessler

Peter Vreman el d�a Wed, 05 May 1999 23:29:27 +0200, escribi�:

Else the only way to compile it atm is to create libgtk.so to link to 1.0.6. This should not interfere with the 1.2 needed for gnome except if you develop for it.

you say modify the symlink in /usr/lib ?
it will no break the gtk apps ?

I've some patch lying around for gtk1.2, i'll try that one soon.

try it :)

Sergio

Reply by email