[opensuse-factory] What should I add to linker?
The error message: 'uncompress' is defined in DSO /usr/lib/gcc/i586-suse-linux/4.6/../../../libz.so so try adding it to the linker command line But adding -lz to the linker does not help. What should I do? -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On 1 September 2011 10:49, Ilya Chernykh <anixxsus@gmail.com> wrote:
The error message:
'uncompress' is defined in DSO /usr/lib/gcc/i586-suse-linux/4.6/../../../libz.so so try adding it to the linker command line
But adding -lz to the linker does not help. What should I do?
With my special superpower (and people is *really* going to be impressed if I'm correct) I'm going to guess the package is f4l from KDE:KDE3. If so, the more useful message is: ... -ltransform-util -lz -ltransform -lqt-mt -lXext -lX11 -lm -lpthread /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: flagStonePort/transform-cxx-bsd/transform/libtransform.a(FSTransform.o): undefined reference to symbol 'uncompress' And what you need to do is put "-lz" *after* "-ltransform". -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Thursday 01 September 2011 13:57:22 Cristian Morales Vega wrote:
'uncompress' is defined in DSO /usr/lib/gcc/i586-suse-linux/4.6/../../../libz.so so try adding it to the linker command line
But adding -lz to the linker does not help. What should I do?
With my special superpower (and people is *really* going to be impressed if I'm correct) I'm going to guess the package is f4l from KDE:KDE3.
Indeed!
If so, the more useful message is:
... -ltransform-util -lz -ltransform -lqt-mt -lXext -lX11 -lm -lpthread /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: flagStonePort/transform-cxx-bsd/transform/libtransform.a(FSTransform.o): undefined reference to symbol 'uncompress'
And what you need to do is put "-lz" *after* "-ltransform".
Why? This looks very strange for me. Unfortunately there seems to be no way to put it there so I did not test your solution yet :\ -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On 1 September 2011 23:39, Ilya Chernykh <anixxsus@gmail.com> wrote:
On Thursday 01 September 2011 13:57:22 Cristian Morales Vega wrote:
-ltransform-util -lz -ltransform -lqt-mt -lXext -lX11 -lm -lpthread /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: flagStonePort/transform-cxx-bsd/transform/libtransform.a(FSTransform.o): undefined reference to symbol 'uncompress'
And what you need to do is put "-lz" *after* "-ltransform".
Why? This looks very strange for me.
Because it's the documented behaviour. From man ld: "The linker will search an archive only once, at the location where it is specified on the command line. If the archive defines a symbol which was undefined in some object which appeared before the archive on the command line, the linker will include the appropriate file(s) from the archive. However, an undefined symbol in an object appearing later on the command line will not cause the linker to search the archive again." The code that uses uncompress() is in libtransform.a (specifically in FSTransform.o) and so libz must be later in the command line. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Friday 02 September 2011 02:55:16 Cristian Morales Vega wrote:
And what you need to do is put "-lz" *after* "-ltransform".
Why? This looks very strange for me.
Because it's the documented behaviour. From man ld:
"The linker will search an archive only once, at the location where it is specified on the command line. If the archive defines a symbol which was undefined in some object which appeared before the archive on the command line, the linker will include the appropriate file(s) from the archive. However, an undefined symbol in an object appearing later on the command line will not cause the linker to search the archive again."
The code that uses uncompress() is in libtransform.a (specifically in FSTransform.o) and so libz must be later in the command line.
I spent all the day on this package and I do not know how to add it before ltransform :-( -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Friday 02 September 2011 03:00:54 you wrote:
On Friday 02 September 2011 02:55:16 Cristian Morales Vega wrote:
And what you need to do is put "-lz" *after* "-ltransform".
Why? This looks very strange for me.
Because it's the documented behaviour. From man ld:
"The linker will search an archive only once, at the location where it is specified on the command line. If the archive defines a symbol which was undefined in some object which appeared before the archive on the command line, the linker will include the appropriate file(s) from the archive. However, an undefined symbol in an object appearing later on the command line will not cause the linker to search the archive again."
The code that uses uncompress() is in libtransform.a (specifically in FSTransform.o) and so libz must be later in the command line.
I spent all the day on this package and I do not know how to add it before ltransform :-(
I.e. I meant *after* -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Fri 02 Sep 2011 03:02:10 Ilya Chernykh wrote:
On Friday 02 September 2011 03:00:54 you wrote:
On Friday 02 September 2011 02:55:16 Cristian Morales Vega wrote:
And what you need to do is put "-lz" *after* "-ltransform".
Why? This looks very strange for me.
Because it's the documented behaviour. From man ld:
"The linker will search an archive only once, at the location where it is specified on the command line. If the archive defines a symbol which was undefined in some object which appeared before the archive on the command line, the linker will include the appropriate file(s) from the archive. However, an undefined symbol in an object appearing later on the command line will not cause the linker to search the archive again."
The code that uses uncompress() is in libtransform.a (specifically in FSTransform.o) and so libz must be later in the command line.
I spent all the day on this package and I do not know how to add it before ltransform :-( I.e. I meant *after*
link to the package? -- Without Questions there are no Answers! _____________________________________________________________________ Alin Marin ELENA Advanced Molecular Simulation Research Laboratory School of Physics, University College Dublin ---- Ardionsamblú Móilíneach Saotharlann Taighde Scoil na Fisice, An Coláiste Ollscoile, Baile Átha Cliath ----------------------------------------------------------------------------------- http://alin.elenaworld.net ______________________________________________________________________
On 2 September 2011 00:02, Ilya Chernykh <anixxsus@gmail.com> wrote:
On Friday 02 September 2011 03:00:54 you wrote:
On Friday 02 September 2011 02:55:16 Cristian Morales Vega wrote:
And what you need to do is put "-lz" *after* "-ltransform".
Why? This looks very strange for me.
Because it's the documented behaviour. From man ld:
"The linker will search an archive only once, at the location where it is specified on the command line. If the archive defines a symbol which was undefined in some object which appeared before the archive on the command line, the linker will include the appropriate file(s) from the archive. However, an undefined symbol in an object appearing later on the command line will not cause the linker to search the archive again."
The code that uses uncompress() is in libtransform.a (specifically in FSTransform.o) and so libz must be later in the command line.
I spent all the day on this package and I do not know how to add it before ltransform :-(
I.e. I meant *after*
SR#80577 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Friday 02 September 2011 03:34:52 Cristian Morales Vega wrote:
I.e. I meant *after*
SR#80577
Oh it was in the next line, I missed it :-) Thank you -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On 09/01/2011 11:49 AM, Ilya Chernykh wrote:
The error message:
'uncompress' is defined in DSO /usr/lib/gcc/i586-suse-linux/4.6/../../../libz.so so try adding it to the linker command line
But adding -lz to the linker does not help. What should I do?
Your command line is perhaps poorly ordered. The order of the libs matters... regards, -- js suse labs -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (4)
-
Alin Marin Elena
-
Cristian Morales Vega
-
Ilya Chernykh
-
Jiri Slaby