Sign in Join

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

Mailing lists / lazarus / 2000-02

[Linking Error]

7 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

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

Shane Miller

Looks like the -lX11 is being created in the Link.res file and that file is used when linking.

Do I have to run some config or something now that I have a new system? It's been so long that I set it up, I've forgotton... Shane

>> 02/21/00 08:44AM >>>

That didn't work. Where is the -lX11 coming from? Is it in a file that I can change and add the entire path to it? Shane

>> 02/20/00 03:37AM >>>

I am using Red Hat and make/Makefiles, but make sure you:

1. Add the path to you X libraries in ppc386.cfg, like -Fl/usr/X11R6/lib

or whichever path Corel Linux uses

2. In Red Hat, there is /etc/ld.so.conf. Add the line with /usr/X11R6/lib

if it is missing. Then type (as root) ldconfig

This might (or maybe not) help the linker to find the correct libs. I assume you have your X system installed :-)

Michal Bukovjan

"Shane Miller" wrote
I've been getting linking errors since converting to Corel Linux. Any help

would be appreciated because I have amde changes and will have to apply the changes to CVS without testing otherwise.

Show quoted text 19 lines
I do a ppc386 lazarus.pp and I get Linking Lazarus /usr/bin/ld: cannot open -lX11: No such file or directory. Where is this -lX11 set? Not in ppc386.cfg Help! Shane _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

____________________________________________________________________ Get your own FREE, personal Netscape WebMail account today at http://webmail.netscape.com.

_________________________________________________________________ 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

Michal Bukovjan

I am using Red Hat and make/Makefiles, but make sure you:

1. Add the path to you X libraries in ppc386.cfg, like -Fl/usr/X11R6/lib

or whichever path Corel Linux uses

2. In Red Hat, there is /etc/ld.so.conf. Add the line with /usr/X11R6/lib

if it is missing. Then type (as root) ldconfig

This might (or maybe not) help the linker to find the correct libs. I assume you have your X system installed :-)

Michal Bukovjan

"Shane Miller" wrote
I've been getting linking errors since converting to Corel Linux. Any help

would be appreciated because I have amde changes and will have to apply the changes to CVS without testing otherwise.

Show quoted text 19 lines
I do a ppc386 lazarus.pp and I get Linking Lazarus /usr/bin/ld: cannot open -lX11: No such file or directory. Where is this -lX11 set? Not in ppc386.cfg Help! Shane _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

____________________________________________________________________ Get your own FREE, personal Netscape WebMail account today at http://webmail.netscape.com.

Reply by email

Shane Miller

I got it to work.
Corel had libX11.so.6.3 but didn't have a link called libX11.so so it wasn't finding it.

I found a bug in Corel's linux while I was doing this. I got a good chuckle out of Cliff from it. Corel had links called libX11.so.6 that pointed to the libX11.so.6.3 object. So I copyed them to the desktop so I could rename them to libX11.so and copy them back. Once done, I wanted to delete them off my desktop so I left-clicked and marked them on my desktop and pressed the DEL key. It said "Are you sure?" I cursed and pressed YES. Well, I noticed that I still had the files and my LIB directory was no where to be found. Turns out that when you click on the desktop it doesn't take focus away from the file manager so when I pressed DEL it deleted the lib directory!

Luckily I got it out of the trash and restored it........lesson learned....

Shane

>> 02/21/00 11:32AM >>>

I just talked to him on the phone he has to create a few simlinks to fix his problem since corel did some weird stuff in the libs. He should be up and running pretty quick now.

Cliff

Earlier message 34 lines
-----Original Message----- From: Sebastian Guenther Sent: Monday, February 21, 2000 10:45 AM To: Subject: Re: [[lazarus] Linking Error] Shane Miller wrote: > > Looks like the -lX11 is being created in the Link.res file and that file is used when linking. X11 is needed for all X programs; I don't know exactly if it is sufficient if the file "libX11.so" is present, or if "libX11.a" (the a.out version for static linking) is necessary, too. If the a.out file is needed, check if you have the X11 development package of your Linux distribution installed. Another thing you could try is to run "ldconfig", this scans all directories listed in /etc/ld.so.conf for libraries. Check if the file libX11.so is present and then check if its path is included in /etc/ld.so.conf. (Run ldconfig after changing this configuration file) - Sebastian _________________________________________________________________ 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

Sebastian Guenther
to Shane Miller: Looks like the -lX11 is being created in the Link.res file and that file is used when…
Shane Miller wrote
Looks like the -lX11 is being created in the Link.res file and that file is used when linking.

X11 is needed for all X programs; I don't know exactly if it is sufficient if the file "libX11.so" is present, or if "libX11.a" (the a.out version for static linking) is necessary, too. If the a.out file is needed, check if you have the X11 development package of your Linux distribution installed.
Another thing you could try is to run "ldconfig", this scans all directories listed in /etc/ld.so.conf for libraries. Check if the file libX11.so is present and then check if its path is included in /etc/ld.so.conf. (Run ldconfig after changing this configuration file)

- Sebastian

Reply by email

Baeseman, Cliff

I just talked to him on the phone he has to create a few simlinks to fix his problem since corel did some weird stuff in the libs. He should be up and running pretty quick now.

Cliff

Earlier message 29 lines
-----Original Message----- From: Sebastian Guenther Sent: Monday, February 21, 2000 10:45 AM To: Subject: Re: [[lazarus] Linking Error] Shane Miller wrote: > > Looks like the -lX11 is being created in the Link.res file and that file is used when linking. X11 is needed for all X programs; I don't know exactly if it is sufficient if the file "libX11.so" is present, or if "libX11.a" (the a.out version for static linking) is necessary, too. If the a.out file is needed, check if you have the X11 development package of your Linux distribution installed. Another thing you could try is to run "ldconfig", this scans all directories listed in /etc/ld.so.conf for libraries. Check if the file libX11.so is present and then check if its path is included in /etc/ld.so.conf. (Run ldconfig after changing this configuration file) - Sebastian _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Shane Miller

That didn't work. Where is the -lX11 coming from? Is it in a file that I can change and add the entire path to it? Shane

>> 02/20/00 03:37AM >>>

I am using Red Hat and make/Makefiles, but make sure you:

1. Add the path to you X libraries in ppc386.cfg, like -Fl/usr/X11R6/lib

or whichever path Corel Linux uses

2. In Red Hat, there is /etc/ld.so.conf. Add the line with /usr/X11R6/lib

if it is missing. Then type (as root) ldconfig

This might (or maybe not) help the linker to find the correct libs. I assume you have your X system installed :-)

Michal Bukovjan

"Shane Miller" wrote
I've been getting linking errors since converting to Corel Linux. Any help

would be appreciated because I have amde changes and will have to apply the changes to CVS without testing otherwise.

Show quoted text 19 lines
I do a ppc386 lazarus.pp and I get Linking Lazarus /usr/bin/ld: cannot open -lX11: No such file or directory. Where is this -lX11 set? Not in ppc386.cfg Help! Shane _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

____________________________________________________________________ Get your own FREE, personal Netscape WebMail account today at http://webmail.netscape.com.

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

Reply by email