[opensuse-packaging] Call to a function is ambiguous
Hi, people! I have a following error when building a package: application_ob.cpp:103:41: error: call of overloaded 'FormatFromExt(QString&)' is ambiguous application_ob.cpp:103:41: note: candidates are: /usr/include/openbabel-2.0/openbabel/obconversion.h:81:24: note: static OpenBabel::OBFormat* OpenBabel::OBConversion::FormatFromExt(const char*) /usr/include/openbabel-2.0/openbabel/obconversion.h:84:24: note: static OpenBabel::OBFormat* OpenBabel::OBConversion::FormatFromExt(std::string) Does anybody know how to fix it? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
El 05/07/11 00:25, Ilya Chernykh escribió:
Hi, people! I have a following error when building a package:
application_ob.cpp:103:41: error: call of overloaded 'FormatFromExt(QString&)' is ambiguous application_ob.cpp:103:41: note: candidates are: /usr/include/openbabel-2.0/openbabel/obconversion.h:81:24: note: static OpenBabel::OBFormat* OpenBabel::OBConversion::FormatFromExt(const char*) /usr/include/openbabel-2.0/openbabel/obconversion.h:84:24: note: static OpenBabel::OBFormat* OpenBabel::OBConversion::FormatFromExt(std::string)
Does anybody know how to fix it?
File a bug report upstream, -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Tuesday 05 July 2011 08:47:09 Cristian Rodríguez wrote:
application_ob.cpp:103:41: error: call of overloaded 'FormatFromExt(QString&)' is ambiguous application_ob.cpp:103:41: note: candidates are: /usr/include/openbabel-2.0/openbabel/obconversion.h:81:24: note: static OpenBabel::OBFormat* OpenBabel::OBConversion::FormatFromExt(const char*) /usr/include/openbabel-2.0/openbabel/obconversion.h:84:24: note: static OpenBabel::OBFormat* OpenBabel::OBConversion::FormatFromExt(std::string)
Does anybody know how to fix it?
File a bug report upstream,
Actually this affects several packages in Factory. I want to know how to fix it. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
El 05/07/11 00:55, Ilya Chernykh escribió:
On Tuesday 05 July 2011 08:47:09 Cristian Rodríguez wrote:
application_ob.cpp:103:41: error: call of overloaded 'FormatFromExt(QString&)' is ambiguous application_ob.cpp:103:41: note: candidates are: /usr/include/openbabel-2.0/openbabel/obconversion.h:81:24: note: static OpenBabel::OBFormat* OpenBabel::OBConversion::FormatFromExt(const char*) /usr/include/openbabel-2.0/openbabel/obconversion.h:84:24: note: static OpenBabel::OBFormat* OpenBabel::OBConversion::FormatFromExt(std::string)
Does anybody know how to fix it?
File a bug report upstream,
Actually this affects several packages in Factory. I want to know how to fix it.
http://en.wikibooks.org/wiki/GCC_Debugging/g%2B%2B/Errors/call_of_overloaded... The solution is context-specific and depends on what the application is trying to do. This bug is revealed in factory because the compiler has probably improved error checking and rejects the code as invalid now. That's why I asked you to fill a bug report in upstream, that knows what is the correct path to take. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Tuesday 05 July 2011 09:06:50 Cristian Rodríguez wrote:
http://en.wikibooks.org/wiki/GCC_Debugging/g%2B%2B/Errors/call_of_overloaded...
The solution is context-specific and depends on what the application is trying to do.
This bug is revealed in factory because the compiler has probably improved error checking and rejects the code as invalid now.
No, this is not due to compiler change: it appeared much after the compiler update. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Tuesday 05 July 2011 09:06:50 Cristian Rodríguez wrote:
The solution is context-specific and depends on what the application is trying to do.
This bug is revealed in factory because the compiler has probably improved error checking and rejects the code as invalid now.
That's why I asked you to fill a bug report in upstream, that knows what is the correct path to take.
I wonder why the same package builds in one repository: https://build.opensuse.org/package/show?package=xdrawchem&project=Education but fails in the other: https://build.opensuse.org/package/show?package=xdrawchem&project=KDE%3AKDE3 without any change? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
El 05/07/11 01:47, Ilya Chernykh escribió:
On Tuesday 05 July 2011 09:06:50 Cristian Rodríguez wrote:
The solution is context-specific and depends on what the application is trying to do.
This bug is revealed in factory because the compiler has probably improved error checking and rejects the code as invalid now.
That's why I asked you to fill a bug report in upstream, that knows what is the correct path to take.
I wonder why the same package builds in one repository: https://build.opensuse.org/package/show?package=xdrawchem&project=Education
but fails in the other: https://build.opensuse.org/package/show?package=xdrawchem&project=KDE%3AKDE3
without any change?
It is failed on both, opensuse_factory -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Tuesday 05 July 2011 10:07:38 Cristian Rodríguez wrote:
without any change?
It is failed on both, opensuse_factory
No, in Education builds well: https://build.opensuse.org/package/show?package=xdrawchem&project=Education -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Tue, Jul 05, 2011 at 08:25:31AM +0400, Ilya Chernykh wrote:
Hi, people! I have a following error when building a package:
application_ob.cpp:103:41: error: call of overloaded 'FormatFromExt(QString&)' is ambiguous application_ob.cpp:103:41: note: candidates are: /usr/include/openbabel-2.0/openbabel/obconversion.h:81:24: note: static OpenBabel::OBFormat* OpenBabel::OBConversion::FormatFromExt(const char*) /usr/include/openbabel-2.0/openbabel/obconversion.h:84:24: note: static OpenBabel::OBFormat* OpenBabel::OBConversion::FormatFromExt(std::string)
Does anybody know how to fix it?
Well, reading the error message you pass in a QString reference, but the code has const char* and std::string to offer. It might already know it can convert QString to one of those, but can't chose which. This could be caused by a newer QT version for instance or a newer openbabel version. You can explicitly convert the passed string to a const char* for instance to ease the compilers work. Ciao, Marcus -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Tuesday 05 July 2011, Ilya Chernykh wrote:
application_ob.cpp:103:41: error: call of overloaded 'FormatFromExt(QString&)' is ambiguous application_ob.cpp:103:41: note: candidates are:
add QString::fromLatin1() Greetings, Dirk -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Thursday 07 July 2011 01:09:40 Dirk Müller wrote:
application_ob.cpp:103:41: error: call of overloaded 'FormatFromExt(QString&)' is ambiguous application_ob.cpp:103:41: note: candidates are:
add QString::fromLatin1()
Where and how?... Sorry I do not know how to do it... -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (4)
-
Cristian Rodríguez
-
Dirk Müller
-
Ilya Chernykh
-
Marcus Meissner