can u add tclsql to emerge. http://www.parand.com/tcl-sql/ it hasnt been updated in a while and there is a bug in the source that prevents it from being compiled in the present version of GCC I fixed these problems for myself if you want the fixes just email me thank you eweg@optonline.net
please do
I can't see that any ebuild, nor patches have been attached to this bug. If you have to the time, please attach an ebuild and any patches you had to apply to the upstream sources to this bug, and reopen it.
Sorry. I don't have the capacity to deal with tcl and tk stuff anymore.
Jake, If you attach an ebuild here or at least your fixes to make it compile. I will gladly review the ebuild/patches and work on getting it included into Portage. -Doug
Created attachment 36977 [details] Ebuild. Created an ebuild. Tested; works. Will Buckner (Wcc)
Will, ebuild does not work as expected. sql.cc: In function `int Sql_Init(Tcl_Interp*)': sql.cc:228: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)' make: *** [obj/sql.o] Error 1
Hmm, didn't get that here. 538 taf ~ # ebuild /usr/portage/dev-tcltk/tcl-sql/tcl-sql-20000114.ebuild install >>> md5 src_uri ;-) tcl-sql-20000114.tgz >>> Checking tcl-sql-20000114.tgz's mtime... >>> /usr/portage/dev-tcltk/tcl-sql/tcl-sql-20000114.ebuild has been updated; recreating WORKDIR... >>> Unpacking source... >>> Unpacking tcl-sql-20000114.tgz to /var/tmp/portage/tcl-sql-20000114/work >>> Source unpacked. g++ -c -I/usr/local/include -I/usr/include/mysql -I/usr/local/mysql/include -fPIC -Wall -o obj/sql-mysql.o sql-mysql.cc g++ -c -I/usr/local/include -I/usr/include/mysql -I/usr/local/mysql/include -fPIC -Wall -o obj/sql.o sql.cc g++ -c -I/usr/local/include -I/usr/include/mysql -I/usr/local/mysql/include -fPIC -Wall -o obj/sql-manager.o sql-manager.cc g++ obj/sql-mysql.o obj/sql.o obj/sql-manager.o -L/usr/lib/mysql -L/usr/local/mysql/lib -L/usr/lib -lmysqlclient -shared -lgcc -o sql.so >>> Install tcl-sql-20000114 into /var/tmp/portage/tcl-sql-20000114/image/ category dev-tcltk man: prepallstrip: strip: strip: usr/lib/tcl-sql/libtcl-sql.so >>> Completed installing into /var/tmp/portage/tcl-sql-20000114/image/ --- Tcl version? I will do some more testing. I do not possibly see how line 228 of sql.cc could be generating that error, though. Hmm.
In fact, line 228 is blank.
I'm running tcl-8.4.6. Line 228 contains a NULL function pointer way off to the right of the screen as part of a function call, but I didn't get a chance to find where the overload is declared. It didn't look like it was declared by tcl-sql so it appears its declared by tcl but then there wouldn't be this conflict so I basically need to look into it more.
Same version I'm running, but no errors here. Very odd. If you look at the error, the prototypes don't even remotely match. I don't see what could be causing the error.
Created attachment 37007 [details, diff] fix-const.patch a simple patch to fix the compile error: sql.cc:228: error: invalid conversion from...
yeah.. that patch is kind of wrong. That patch is to remove the fixes that are needed to make this compile and it gets the sources back to their original state. Had to reverse the patch but it compiles. Commiting it because if you look at the C... logically... that patch is needed.
Created attachment 37057 [details, diff] Complete patch Well, if we have to apply a patch anyway, we can go ahead and move all the changes to a patch and remove the 'sedMagic' (TM) from src_compile(). (Attached new patch.. changes in the ebuild should be trivial).
Thank you. Reworked and used. :)