Sign in Join

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

Mailing lists / lazarus / 1999-05

Linker Problem? Has anyone else seen thisproblem!

9 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

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

Cliff Baeseman
to Shane Miller: I am hoping to have a working 1.2.1 version working soon so I'll send it over in a bit.…

thanx buddy /.

Cliff

Earlier message 59 lines
-----Original Message----- From: Shane Miller Sent: Tuesday, May 11, 1999 3:16 PM To: Subject: Re: RE: [lazarus] Linker Problem? Has anyone else seen thisproblem! I am hoping to have a working 1.2.1 version working soon so I'll send it over in a bit. Shane >>> Cliff Baeseman 05/11 2:16 PM >>> I cannot put the new stuff in until this evening and I will then work the install isssues. Shane if you have anything new could you put it in the CVS or send it to me and I will do it. I wish to have some decent working source befor building the RPMS... Cliff -----Original Message----- From: Peter Vreman Sent: Tuesday, May 11, 1999 1:57 PM To: Subject: Re: [lazarus] Linker Problem? Has anyone else seen this problem! > That's a path problem in ppc386.cfg > > Are you sure the -lXi isn't supposed to be -X11 > > If it's X11 then the path should point to /usr/X11R6/lib or something like that Fixed the Makefile. I can't test it because the updated lazarus sources are not in the cvs Peter _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Cliff Baeseman

Has anyone seen this problem occur and how can it be fixed it looks like the linker is looking for a path that is not defined properly?

Someone else's system not mine! I am able to compile under 1.2 no problem....

Cliff

main.pp(102,36) Hint: Parameter not used SENDER
main.pp(108,30) Hint: Parameter not used SENDER
main.pp(121,27) Hint: Parameter not used SENDER
main.pp(128,27) Hint: Parameter not used SENDER
main.pp(138,1) Note: Local variable not used VBOX1
main.pp(138,7) Note: Local variable not used VBOX2
main.pp(139,1) Note: Local variable not used TFCOMPONENT
main.pp(140,1) Note: Local variable not used FCONTEXT
main.pp(424,1) Note: Local variable not used PROJECT
Assembling main
application.pp(74,1) Note: Local variable not used TFORM
Assembling application
Assembling lazarus
Linking lazarus
/usr/bin/ld: cannot open -lXi: No such file or directory
<-----------------is this a path problem

in his ppc386.cfg file
Warning: Error while linking
Closing script ppas.sh
5216 Lines compiled, 2.0 sec
lazarus]#

- "If you kiss me, I'll turn into a beautiful princess."
- "Look, I'm a computer programmer. I don't have time for girls, but a talking frog is very very cool."

Reply by email

Shane Miller

That's a path problem in ppc386.cfg

Are you sure the -lXi isn't supposed to be -X11

If it's X11 then the path should point to /usr/X11R6/lib or something like that

Shane

>> Cliff Baeseman 05/11 12:38 PM >>>

Has anyone seen this problem occur and how can it be fixed it looks like the linker is looking for a path that is not defined properly?

Someone else's system not mine! I am able to compile under 1.2 no problem....

Cliff

main.pp(102,36) Hint: Parameter not used SENDER
main.pp(108,30) Hint: Parameter not used SENDER
main.pp(121,27) Hint: Parameter not used SENDER
main.pp(128,27) Hint: Parameter not used SENDER
main.pp(138,1) Note: Local variable not used VBOX1
main.pp(138,7) Note: Local variable not used VBOX2
main.pp(139,1) Note: Local variable not used TFCOMPONENT
main.pp(140,1) Note: Local variable not used FCONTEXT
main.pp(424,1) Note: Local variable not used PROJECT
Assembling main
application.pp(74,1) Note: Local variable not used TFORM
Assembling application
Assembling lazarus
Linking lazarus
/usr/bin/ld: cannot open -lXi: No such file or directory
<-----------------is this a path problem

in his ppc386.cfg file
Warning: Error while linking
Closing script ppas.sh
5216 Lines compiled, 2.0 sec
lazarus]#

- "If you kiss me, I'll turn into a beautiful princess."
- "Look, I'm a computer programmer. I don't have time for girls, but a talking frog is very very cool."

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Payne Thomas E CNIN

I'm the guy with the problem.

I would like a copy of a working ppc386.cfg. I tried to use ./samplecfg but it seems I did not get it right.

I also and the link.res files. Are they generated during the build from the ppc386.cfg file?

The -lXi appears in link.res as shown below.

ppas.sh listing
-------------------------------------------
#!/bin/bash
DoExitAsm ()
{ echo "An error occurred while assembling $1"; exit 1; } DoExitLink ()
{ echo "An error occurred while linking $1"; exit 1; } echo Linking lazarus
/usr/bin/ld -dynamic-linker=/lib/ld-linux.so.2 -s -o lazarus link.res if [ $? != 0 ]; then DoExitLink lazarus; fi
--------------------------------------------
link.res listing
--------------------------------------------
SEARCH_DIR(/lib)
SEARCH_DIR(/usr/lib)
SEARCH_DIR(/usr/lib/X11)
SEARCH_DIR(/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/) SEARCH_DIR(/usr/lib/fpc/0.99.11/rtl/)
SEARCH_DIR(/usr/lib/fpc/0.99.11/units/)
INPUT(
/usr/lib/fpc/0.99.11/rtl/cprt21.o
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/crtbegin.o /usr/lib/crti.o
/usr/lib/fpc/0.99.11/units/classes.o
/usr/lib/fpc/0.99.11/rtl/strings.o
/usr/lib/fpc/0.99.11/rtl/linux.o
/usr/lib/fpc/0.99.11/rtl/sysutils.o
/usr/lib/fpc/0.99.11/units/gtk.o
/usr/lib/fpc/0.99.11/units/gdk.o
/usr/lib/fpc/0.99.11/rtl/objpas.o
/usr/lib/fpc/0.99.11/units/glib.o
/usr/lib/fpc/0.99.11/rtl/syslinux.o
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/crtend.o /usr/lib/crtn.o
-lXi <----------------------------------------------------------here -lXext
-lX11
-lm
-lgtk
-lgdk
-lglib
-lc
)
GROUP(
libproject.a
libspin.a
libmenus.a
libbuttons.a
libcompiler.a
libglobal.a
libcomctrls.a
libgraphics.a
libstdcontrols.a
libdialogs.a
libeditor.a
libmain.a
libcontrols.a
libforms.a
libapplication.a
liblazarus.a
)
----------------------------------------------

Tom Payne

Show quoted text 23 lines
-----Original Message----- From: Peter Vreman Sent: Tuesday, May 11, 1999 1:57 PM To: Subject: Re: [lazarus] Linker Problem? Has anyone else seen this problem! > That's a path problem in ppc386.cfg > > Are you sure the -lXi isn't supposed to be -X11 > > If it's X11 then the path should point to /usr/X11R6/lib or something like that Fixed the Makefile. I can't test it because the updated lazarus sources are not in the cvs Peter _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Cliff Baeseman
to Peter Vreman: Fixed the Makefile. I can't test it because the updated lazarus sources are not in the cvs

I cannot put the new stuff in until this evening and I will then work the install isssues.

Shane if you have anything new could you put it in the CVS or send it to me and I will do it.

I wish to have some decent working source befor building the RPMS...

Cliff

Earlier message 24 lines
-----Original Message----- From: Peter Vreman Sent: Tuesday, May 11, 1999 1:57 PM To: Subject: Re: [lazarus] Linker Problem? Has anyone else seen this problem! > That's a path problem in ppc386.cfg > > Are you sure the -lXi isn't supposed to be -X11 > > If it's X11 then the path should point to /usr/X11R6/lib or something like that Fixed the Makefile. I can't test it because the updated lazarus sources are not in the cvs Peter _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Peter Vreman
to Payne Thomas E CNIN: I'm the guy with the problem. I would like a copy of a working ppc386.cfg. I tried to…
Show quoted text 7 lines
I'm the guy with the problem. I would like a copy of a working ppc386.cfg. I tried to use ./samplecfg but it seems I did not get it right. I also and the link.res files. Are they generated during the build from the ppc386.cfg file?

They are generated by the compiler

The -lXi appears in link.res as shown below.

You need to have a new makefile.fpc and the latest lazarus sources which use the new makefile.fpc

Show quoted text 95 lines
ppas.sh listing ------------------------------------------- #!/bin/bash DoExitAsm () { echo "An error occurred while assembling $1"; exit 1; } DoExitLink () { echo "An error occurred while linking $1"; exit 1; } echo Linking lazarus /usr/bin/ld -dynamic-linker=/lib/ld-linux.so.2 -s -o lazarus link.res if [ $? != 0 ]; then DoExitLink lazarus; fi -------------------------------------------- link.res listing -------------------------------------------- SEARCH_DIR(/lib) SEARCH_DIR(/usr/lib) SEARCH_DIR(/usr/lib/X11) SEARCH_DIR(/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/) SEARCH_DIR(/usr/lib/fpc/0.99.11/rtl/) SEARCH_DIR(/usr/lib/fpc/0.99.11/units/) INPUT( /usr/lib/fpc/0.99.11/rtl/cprt21.o /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/crtbegin.o /usr/lib/crti.o /usr/lib/fpc/0.99.11/units/classes.o /usr/lib/fpc/0.99.11/rtl/strings.o /usr/lib/fpc/0.99.11/rtl/linux.o /usr/lib/fpc/0.99.11/rtl/sysutils.o /usr/lib/fpc/0.99.11/units/gtk.o /usr/lib/fpc/0.99.11/units/gdk.o /usr/lib/fpc/0.99.11/rtl/objpas.o /usr/lib/fpc/0.99.11/units/glib.o /usr/lib/fpc/0.99.11/rtl/syslinux.o /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/crtend.o /usr/lib/crtn.o -lXi <----------------------------------------------------------here -lXext -lX11 -lm -lgtk -lgdk -lglib -lc ) GROUP( libproject.a libspin.a libmenus.a libbuttons.a libcompiler.a libglobal.a libcomctrls.a libgraphics.a libstdcontrols.a libdialogs.a libeditor.a libmain.a libcontrols.a libforms.a libapplication.a liblazarus.a ) ---------------------------------------------- Tom Payne > -----Original Message----- > From: Peter Vreman > Sent: Tuesday, May 11, 1999 1:57 PM > To: > Subject: Re: [lazarus] Linker Problem? Has anyone else seen this > problem! > > > That's a path problem in ppc386.cfg > > > > Are you sure the -lXi isn't supposed to be -X11 > > > > If it's X11 then the path should point to /usr/X11R6/lib or something > like that > Fixed the Makefile. I can't test it because the updated lazarus sources > are not in the cvs > > > Peter > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Michael A. Hess
to Cliff Baeseman: Has anyone seen this problem occur and how can it be fixed it looks like the linker is…
Cliff Baeseman wrote
Has anyone seen this problem occur and how can it be fixed it looks like the linker is looking for a path that is not defined properly?

This is what that patch to the makefile was for. The person needs to set the XLIBDIR in the makefile assuming you have added the patch I sent.

You set the following variable to point to where your X11 libraries are located. IF the GTK libraries are not located with the X11 libraries you need to set the GTKLIBDIR as well.

XLIBDIR = /usr/X11/lib

However I just check CVS and you didn't add it yet. You need to add the lines.

++++++++++++++++++++++++

ifdef XLIBDIR
override NEEDLIBDIR := $(NEEDLIBDIR) $(XLIBDIR)
endif

ifdef GTKLIBDIR
override NEEDLIBDIR := $(NEEDLIBDIR) $(GTKLIBDIR)
endif

++++++++++++++++++++++++

I put them right after the line

EXEOBJECTS=lazarus

This assumes that the problem is that the X11 directory is the problem.

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

Reply by email

Shane Miller

I am hoping to have a working 1.2.1 version working soon so I'll send it over in a bit.

Shane

>> Cliff Baeseman 05/11 2:16 PM >>>

I cannot put the new stuff in until this evening and I will then work the install isssues.

Shane if you have anything new could you put it in the CVS or send it to me and I will do it.

I wish to have some decent working source befor building the RPMS...

Cliff

Earlier message 29 lines
-----Original Message----- From: Peter Vreman Sent: Tuesday, May 11, 1999 1:57 PM To: Subject: Re: [lazarus] Linker Problem? Has anyone else seen this problem! > That's a path problem in ppc386.cfg > > Are you sure the -lXi isn't supposed to be -X11 > > If it's X11 then the path should point to /usr/X11R6/lib or something like that Fixed the Makefile. I can't test it because the updated lazarus sources are not in the cvs Peter _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email