As I hoped in my previous mail, I finally got it running! Congratulation for your code and a big thank to Adam's "configure" scripts! It was quite straight to get it build although I had to patch one file in pgAdmin3 (see patch attached).
1) The patch attached just add a define concerning INADDR_NONE which is not defined in solaris headers. I think the patch places the 3 lines where they should be but please correct it if it doesn't suite your taste :)
2) All the build were done with gcc 3.3.2
3) I observed "strange" behaviours (wx asserts and things like this) but I was able to connect to a db and to view tables and data in them :). I must say that the wxWin I used was rapidly patched with some failed hunks... I did not want to take too much time with wx as Andreas knows it better than me.
So, would it be possible for us to move to the snapshot I used for this build (http://wxwindows.sourceforge.net/snapshots/wx-cvs-20031207.tar.bz2) ? Andreas, can you take some time for this ?
Is there any chance to get a Solaris box which could host the build ? For the moment, the only thing I could get by broadcasting to my friend is a "SS 5" which I doubt I can install sol 9 on it. I'm waiting for another answer but if you know someone who could provide better, it would be great.
Regards, Raphaël
Raphaël Enrici wrote:
Andreas Pflug wrote:
Dave Page wrote:[ I didn't build it for debian at the moment... I was working on Solaris port. ]
There is a new wxWindows tarball on Snake:
http://snake.pgadmin.org/snapshots/wxwindows/wxWindows-pgAdmin3-20031010
-8.tar.bz2
I had some feedback from wx about this. This problem is corrected in wx cvs head, thus as soon as we upgrade our snapshot we don't need my fix any more. At the moment, I don't see a reason why we should upgrade (Maybe the upcoming solaris port will need this? How is the status?)This version includes Andreas' recent patch to fix the crashing HTML Help under GTK bug.
Hi Andreas, Dave this time it's my turn to sorry to be late :)
so here it is:
I succeeded only today in building wxwin on solaris here are the requirements and the configure line as a reminder for me and other helpers:
The products I used as prereq are these, I compiled them from scratch although some of them may already be in Solaris 9 (listed by build order, all were configured with default ./configure --prefix=XXXX):
tiff-v3.5.7.tar.gz
pkgconfig-0.15.0.tar.gz
glib-2.2.3.tar.gz
pango-1.2.5.tar.gz
atk-1.2.4.tar.bz2
jpegsrc.v6b.tar.gz
libpng-1.2.5.tar
gtk+-2.2.4.tar.bz2
Here is the trick for wxWindows as of 20031207 cvs snapshot (http://wxwindows.sourceforge.net/snapshots/wx-cvs-20031207.tar.bz2) :
.../wxWindows-20031207/configure --enable-permissive
--prefix=XXXXwhatupreferXXXX --disable-largefile --with-gtk
--enable-gtk2 --enable-unicode --enable-debug --disable-shared
--disable-dialupman
I had to disable dialupman because it was giving a cast build error between a wxString and (char *) on line 719 [strstr arg #1] on dialup.c. Hope it's not a requisite for pgAdmin3 build...If it is one, I'll try to overlook how to bypass the problem.
I'm not sure the --enable-permissive is really needed but in doubt we will keep it for the moment...
I'll try a build of pgA3 until the end of the week or the beginning of next week. Do I need to port actual wx patches to get pgA3 to build... If I remember well it's an obligation concerning some pieces of the "notebook" or something like that.
Another thing, I hope people can wait a bit concerning debian wx snapshots (it should be ready until the end of the week), I'd prefer to concentrate my efforts on solaris port actually.
Regards, Raphaël <subliminal>*MULE_INTERNAL* ;p </subliminal>
---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])
--- src/db/pgConn.cpp.orig Wed Dec 3 13:28:54 2003 +++ src/db/pgConn.cpp Tue Dec 9 23:05:23 2003 @@ -24,6 +24,10 @@ #include <arpa/inet.h> #include <netdb.h> #include <netinet/in.h> + // Solaris does not define INADDR_NONE in its includes + #ifndef INADDR_NONE + #define INADDR_NONE (-1) + #endif #endif // App headers
---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])