Sign in Join

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

Mailing lists / lazarus / 1999-05

Problem linking

6 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Shane Miller

So is it the thought that the problem is in gtk (C version) not the gtk (.pp) version? In other words, I should go to www.gtk.org and download gtk+-1.2.1 and glib-1.2.1 and reinstall them?

Shane

>> "Michael A. Hess" 05/12 3:48 PM >>>
Shane Miller wrote 6 lines
OK, here's the problem. I've updated my ppc386 to today's snapshot, I've pulled glib and gtk 1.2.3 and updated fcl (make'd and installed) and I've updated gtk (make and install) and when I converted the lazarus code to 1.2.1 code, it compiles, but can't link.

OK here is what I just did about 15 minutes ago.

1. I updated /fpc/fcl from CVS

2. I deleted my /fpc/gtk directory and checkout new files for /fpc/gtk from CVS. Then I recompiled using the linux snapshot from today.

3. Update my lazarus from CVS. It didn't compile since I assume CVS hasn't been updated with the converted lazarus code.

4. Downloaded the lazarus.zip file from the lazarus web page.

5. Compile lazarus with the latest snapshot.

6. Ran lazarus and it blows up when trying to open a file. Stuff to be expected. :-)

So the only thing different I have from you is that I am using the 1.2 library of gtk and not the 1.2.3.

In any case for all who cares I did all of this using the makefile and new makefile.fpc. It compiled and built everything without having to install anything to different directories and what not.

All I did was type make in each of the appropriate directories. The only catch was the for some reason it attempts to link graphics.o twice. I had to edited link.res to remove that.

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Shane Miller

OK, here's the problem.
I've updated my ppc386 to today's snapshot, I've pulled glib and gtk 1.2.3 and updated fcl (make'd and installed) and I've updated gtk (make and install) and when I converted the lazarus code to 1.2.1 code, it compiles, but can't link. Here's the messages...

/usr/src/fpc-0.99.11/gtk/glib/glib.o: In function `_GLIB$$_G_NODE_APPEND_DATA$PGNODE$POINTER': /usr/src/fpc-0.99.11/gtk/glib/glib.o(.text+0x156): undefined reference to `g_node_new' /usr/src/fpc-0.99.11/gtk/glib/glib.o(.text+0x162): undefined reference to `g_node_insert_before' /usr/src/fpc-0.99.11/gtk/glib/glib.o: In function `_GLIB$$_G_HOOK_APPEND$PGHOOKLIST$PGHOOK': /usr/src/fpc-0.99.11/gtk/glib/glib.o(.text+0x310): undefined reference to `g_hook_insert_before' /usr/src/fpc-0.99.11/gtk/glib/glib.o: In function `_GLIB$$_G_STRSTRIP$PGCHAR': /usr/src/fpc-0.99.11/gtk/glib/glib.o(.text+0x326): undefined reference to `g_strchug' /usr/src/fpc-0.99.11/gtk/glib/glib.o(.text+0x32d): undefined reference to `g_strchomp' /usr/src/fpc-0.99.11/gtk/glib/glib.o: In function `_GLIB$$_G_ARRAY_APPEND_VAL$PGARRAY$LONGINT': /usr/src/fpc-0.99.11/gtk/glib/glib.o(.text+0x34c): undefined reference to `g_array_append_vals' /usr/src/fpc-0.99.11/gtk/glib/glib.o: In function `_GLIB$$_G_ARRAY_PREPEND_VAL$PGARRAY$LONGINT': /usr/src/fpc-0.99.11/gtk/glib/glib.o(.text+0x370): undefined reference to `g_array_prepend_vals' /usr/src/fpc-0.99.11/gtk/glib/glib.o: In function `_GLIB$$_G_ARRAY_INSERT_VAL$PGARRAY$GUINT$LONGINT': /usr/src/fpc-0.99.11/gtk/glib/glib.o(.text+0x397): undefined reference to `g_array_insert_vals' /usr/src/fpc-0.99.11/gtk/glib/glib.o: In function `_GLIB$$_G_DATALIST_ID_SET_DATA$PPGDATA$TGQUARK$POINTER': /usr/src/fpc-0.99.11/gtk/glib/glib.o(.text+0x3b7): undefined reference to `g_datalist_id_set_data_full' /usr/src/fpc-0.99.11/gtk/glib/glib.o: In function `_GLIB$$_G_DATALIST_GET_DATA$PPGDATA$PGCHAR': /usr/src/fpc-0.99.11/gtk/glib/glib.o(.text+0x3e2): undefined reference to `g_quark_try_string' /usr/src/fpc-0.99.11/gtk/glib/glib.o(.text+0x3ec): undefined reference to `g_datalist_id_get_data' /usr/src/fpc-0.99.11/gtk/glib/glib.o: In function `_GLIB$$_G_DATALIST_SET_DATA_FULL$PPGDATA$PGCHAR$GPOINTER$TGDESTROYNOTIFY': /usr/src/fpc-0.99.11/gtk/glib/glib.o(.text+0x40d): undefined reference to `g_quark_from_string' /usr/src/fpc-0.99.11/gtk/glib/glib.o(.text+0x417): undefined reference to `g_datalist_id_set_data_full' /usr/src/fpc-0.99.11/gtk/glib/glib.o: In function `_GLIB$$_G_DATALIST_REMOVE_NO_NOTIFY$PPGDATA$PGCHAR': /usr/src/fpc-0.99.11/gtk/glib/glib.o(.text+0x42b): undefined reference to `g_quark_try_string' /usr/src/fpc-0.99.11/gtk/glib/glib.o(.text+0x435): undefined reference to `g_datalist_id_remove_no_notify' /usr/src/fpc-0.99.11/gtk/glib/glib.o: In function `_GLIB$$_G_DATALIST_REMOVE_DATA$PPGDATA$PGCHAR': /usr/src/fpc-0.99.11/gtk/glib/glib.o(.text+0x461): undefined reference to `g_quark_try_string' /usr/src/fpc-0.99.11/gtk/glib/glib.o: In function `_GLIB$$_G_DATASET_ID_SET_DATA$GCONSTPOINTER$TGQUARK$GCONSTPOINTER':

Anyone know what the prob is?
I'm using the newest EVERYTHING I think......knew I should have waited to convert to 1.2.1 . :-(

Shane Miller

Reply by email

Sergio A. Kessler
to Michael A. Hess: Ohh I wouldn't say that. I don't think you have to do that. I was just telling you my…
...
gdktypes.pp(1400,60) Note: Values in enumeration types have to be ascending
gdkmain.pp(94,90) Error: Identifier not found TGDESTROYNOTIFY
gdkmain.pp(94,90) Error: Type identifier expected
gdkmain.pp(232,111) Error: Identifier not found TGDESTROYNOTIFY
gdkmain.pp(232,111) Error: Type identifier expected
gdkmain.pp(463,23) Error: Identifier not found PGMUTEX
gdkmain.pp(463,30) Error: Error in type definition
gdk.pp(65,1) Fatal: There were 6 errors compiling module, stopping
make: *** [gdk.ppu] Error 1

CVS of a couple of hours ago.

Peter, I know that you don't believe me, but:

gdk]# cat *.pp | grep PGMutex

  gdk_threads_mutex : PGMutex;external gdkdll name 'gdk_threads_mutex';

gtk]# cd ../gtk
gtk]# cat *.pp | grep PGMutex
gtk]#

i.e. PGMutex is used but never declared, the same with TGDestroyNotify

------------------

btw, here is a minor patch to the lazarus makefile, it solve an error if you try to compile lazarus without compiling gtk previously.
Other than that the lazarus makefile look really good (no more XLIBDIR, etc) :)

--- Makefile.orig Wed May 12 12:09:00 1999
+++ Makefile Wed May 12 22:55:36 1999
@@ -21,7 +21,7 @@
DEFAULTFPCDIR=..

# Default unit dirs
-NEEDUNITDIR=../fcl/$(OS_TARGET) ../gtk
+NEEDUNITDIR=../fcl/$(OS_TARGET) ../gtk ../gtk/gdk ../gtk/gtk

# Where need we to place the executables/ppu/objects TARGETDIR=.

Sergio

Reply by email

Peter Vreman
to Shane Miller: So is it the thought that the problem is in gtk (C version) not the gtk (.pp) version? In…
you wrote
So is it the thought that the problem is in gtk (C version) not the gtk (.pp) version? In other words, I should go to www.gtk.org and download gtk+-1.2.1 and glib-1.2.1 and reinstall them?

No, just commit the 1.2.x lazarus code in the CVS and i'll take a look at the problems

Show quoted text 36 lines
>>> "Michael A. Hess" 05/12 3:48 PM >>> Shane Miller wrote: > > OK, here's the problem. > I've updated my ppc386 to today's snapshot, I've pulled glib and gtk > 1.2.3 and updated fcl (make'd and installed) and I've updated gtk > (make and install) and when I converted the lazarus code to 1.2.1 > code, it compiles, but can't link. OK here is what I just did about 15 minutes ago. 1. I updated /fpc/fcl from CVS 2. I deleted my /fpc/gtk directory and checkout new files for /fpc/gtk from CVS. Then I recompiled using the linux snapshot from today. 3. Update my lazarus from CVS. It didn't compile since I assume CVS hasn't been updated with the converted lazarus code. 4. Downloaded the lazarus.zip file from the lazarus web page. 5. Compile lazarus with the latest snapshot. 6. Ran lazarus and it blows up when trying to open a file. Stuff to be expected. :-) So the only thing different I have from you is that I am using the 1.2 library of gtk and not the 1.2.3. In any case for all who cares I did all of this using the makefile and new makefile.fpc. It compiled and built everything without having to install anything to different directories and what not. All I did was type make in each of the appropriate directories. The only catch was the for some reason it attempts to link graphics.o twice. I had to edited link.res to remove that.

The name of the unit is wrong. Graphicss was used, i thought i had fixed that already. This is a compatibility with tp7 to also search for only the first 8 chars of a filename

Reply by email

Michael A. Hess
to Shane Miller: OK, here's the problem. I've updated my ppc386 to today's snapshot, I've pulled glib and…
Shane Miller wrote 6 lines
OK, here's the problem. I've updated my ppc386 to today's snapshot, I've pulled glib and gtk 1.2.3 and updated fcl (make'd and installed) and I've updated gtk (make and install) and when I converted the lazarus code to 1.2.1 code, it compiles, but can't link.

OK here is what I just did about 15 minutes ago.

1. I updated /fpc/fcl from CVS

2. I deleted my /fpc/gtk directory and checkout new files for /fpc/gtk from CVS. Then I recompiled using the linux snapshot from today.

3. Update my lazarus from CVS. It didn't compile since I assume CVS hasn't been updated with the converted lazarus code.

4. Downloaded the lazarus.zip file from the lazarus web page.

5. Compile lazarus with the latest snapshot.

6. Ran lazarus and it blows up when trying to open a file. Stuff to be expected. :-)

So the only thing different I have from you is that I am using the 1.2 library of gtk and not the 1.2.3.

In any case for all who cares I did all of this using the makefile and new makefile.fpc. It compiled and built everything without having to install anything to different directories and what not.

All I did was type make in each of the appropriate directories. The only catch was the for some reason it attempts to link graphics.o twice. I had to edited link.res to remove that.

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

Reply by email

Michael A. Hess
to Shane Miller: So is it the thought that the problem is in gtk (C version) not the gtk (.pp) version? In…
Shane Miller wrote
So is it the thought that the problem is in gtk (C version) not the gtk (.pp) version?

Ohh I wouldn't say that.

In other words, I should go to www.gtk.org and download gtk+-1.2.1 and glib-1.2.1 and reinstall them?

I don't think you have to do that.

I was just telling you my situation so that you would know that it can and does work. The first time I tried it by just trying to update my gtk files from CVS it didn't work. I had to erase my /fpc/gtk directory and to a complete checkout from CVS. Then it worked. So what I am saying is get the new snapshot (which you did already) and do a completely new checkout of gtk and try it again.

As I said it worked for me.

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

Reply by email