Thread: pgadmin3 + wxwidgets-cvs (v2.6) ; dies in 'install-exec-hook"
hi all, starting with wxwidgets-cvs (v2.6+), debug = OFF configure & make of pgadmin3-cvs complete w/o error. tho, 'sudo make install' still needs to be preceded with: % chmod a+x /usr/ports/pgadmin3-cvs2/pkg/mac/complete-bundle.sh or a change in the makefile, per my earlier post. after THAT change, 'make install' now fails at: ... make install-exec-hook /usr/ports/pgadmin3-cvs2/config/install-sh -c -m 644 PkgInfo /usr/ports/pgadmin3-cvs2/pgAdmin3.app/PkgInfo /usr/ports/pgadmin3-cvs2/config/install-sh -c -m 644 Info.plist /usr/ports/pgadmin3-cvs2/pgAdmin3.app/Contents/Info.plist /usr/ports/pgadmin3-cvs2/config/install-sh -c -m 644 "pgadmin3.icns" "/usr/ports/pgadmin3-cvs2/pgAdmin3.app/Contents/Resources/pgAdmin3.icns" $(/usr/local/wxWidgets-cvs/bin/wx-config --rezflags | sed 's/-t[[:space:]]*APPL//') \ "/usr/ports/pgadmin3-cvs2/pgAdmin3.app/Contents/Resources/pgAdmin3.rsrc" -useDF /System/Library/Frameworks/Carbon.framework/Headers/Carbon.r:43: ### /Developer/Tools/Rez - SysError 0 during open of "/usr/local/wxWidgets-cvs/lib/libwx_macu-2.6.0.r". Fatal Error! /System/Library/Frameworks/Carbon.framework/Headers/Carbon.r:43: ### /Developer/Tools/Rez - Fatal Error, can't recover. /usr/local/wxWidgets-cvs/lib/libwx_macu-2.6.0.r: ### /Developer/Tools/Rez - Since errors occurred, /usr/ports/pgadmin3-cvs2/pgAdmin3.app/Contents/Resources/pgAdmin3.rsrc's resource fork was not written. make[4]: *** [install-exec-hook] Error 3 make[3]: *** [install-exec-am] Error 2 make[2]: *** [install-am] Error 2 make[1]: *** [install-recursive] Error 1 make: *** [install-recursive] Error 1 looking in: /usr/local/wxWidgets-cvs/lib % ls -a . libwx_macu_qa-2.6.a .. libwx_macu_stc-2.6.a cd libwx_macu_xrc-2.6.a libwx_base_carbonu-2.6.a libwx_macud_adv-2.6.a libwx_base_carbonu_net-2.6.a libwx_macud_core-2.6.a libwx_base_carbonu_xml-2.6.a libwx_macud_gl-2.6.a libwx_base_carbonud-2.6.a libwx_macud_html-2.6.a libwx_base_carbonud_net-2.6.a libwx_macud_media-2.6.a libwx_base_carbonud_xml-2.6.a libwx_macud_ogl-2.6.a libwx_macu_adv-2.6.a libwx_macud_qa-2.6.a libwx_macu_core-2.6.a libwx_macud_stc-2.6.a libwx_macu_gl-2.6.a libwx_macud_xrc-2.6.a libwx_macu_html-2.6.a libwxregexu-2.6.a libwx_macu_media-2.6.a libwxregexud-2.6.a libwx_macu_ogl-2.6.a wx the problem seems to be that the pgadmin3 make install is expecting (a) a file that's NOT there (/usr/local/wxWidgets-cvs/lib/libwx_macu-2.6.0.r), AND (b) has a 3-digit version # rather than the other files in the dir, which are 2-digit. but, i dunno where the problem stems from as yet ... the "SysError 0 during open" is not very enlightening. quick glances at ./pkg/mac/Makefile.in & ./pkg/mac/complete-bundle.sh aren't immediately clear (to me) as the source of the problem. if not immediately obvious to y'all, i'll rebuild all with debug-ON and see what ktrace'll do 4 me .... cheers, richard
OpenMacNews wrote: > hi all, > > starting with wxwidgets-cvs (v2.6+), debug = OFF > > configure & make of pgadmin3-cvs complete w/o error. > > tho, 'sudo make install' still needs to be preceded with: > > % chmod a+x /usr/ports/pgadmin3-cvs2/pkg/mac/complete-bundle.sh > > or a change in the makefile, per my earlier post. > > after THAT change, 'make install' now fails at: Hm ... strange... in the process of setting up a nighty build-daemon for pgadmin on osx, I used a fresh checkout of pgadmin3, and, apart from chmod 755 complete-bundle.sh I had to change nothing, and it worked... > ... > make install-exec-hook > /usr/ports/pgadmin3-cvs2/config/install-sh -c -m 644 PkgInfo > /usr/ports/pgadmin3-cvs2/pgAdmin3.app/PkgInfo > /usr/ports/pgadmin3-cvs2/config/install-sh -c -m 644 Info.plist > /usr/ports/pgadmin3-cvs2/pgAdmin3.app/Contents/Info.plist > /usr/ports/pgadmin3-cvs2/config/install-sh -c -m 644 "pgadmin3.icns" > "/usr/ports/pgadmin3-cvs2/pgAdmin3.app/Contents/Resources/pgAdmin3.icns" > $(/usr/local/wxWidgets-cvs/bin/wx-config --rezflags | sed > 's/-t[[:space:]]*APPL//') \ > > "/usr/ports/pgadmin3-cvs2/pgAdmin3.app/Contents/Resources/pgAdmin3.rsrc" > -useDF > /System/Library/Frameworks/Carbon.framework/Headers/Carbon.r:43: ### > /Developer/Tools/Rez - SysError 0 during open of > "/usr/local/wxWidgets-cvs/lib/libwx_macu-2.6.0.r". > Fatal Error! > /System/Library/Frameworks/Carbon.framework/Headers/Carbon.r:43: ### > /Developer/Tools/Rez - Fatal Error, can't recover. > /usr/local/wxWidgets-cvs/lib/libwx_macu-2.6.0.r: ### > /Developer/Tools/Rez - Since errors occurred, > /usr/ports/pgadmin3-cvs2/pgAdmin3.app/Contents/Resources/pgAdmin3.rsrc's > resource fork was not written. > make[4]: *** [install-exec-hook] Error 3 > make[3]: *** [install-exec-am] Error 2 > make[2]: *** [install-am] Error 2 > make[1]: *** [install-recursive] Error 1 > make: *** [install-recursive] Error 1 > looking in: > > /usr/local/wxWidgets-cvs/lib % ls -a > . libwx_macu_qa-2.6.a > .. libwx_macu_stc-2.6.a > cd libwx_macu_xrc-2.6.a > libwx_base_carbonu-2.6.a libwx_macud_adv-2.6.a > libwx_base_carbonu_net-2.6.a libwx_macud_core-2.6.a > libwx_base_carbonu_xml-2.6.a libwx_macud_gl-2.6.a > libwx_base_carbonud-2.6.a libwx_macud_html-2.6.a > libwx_base_carbonud_net-2.6.a libwx_macud_media-2.6.a > libwx_base_carbonud_xml-2.6.a libwx_macud_ogl-2.6.a > libwx_macu_adv-2.6.a libwx_macud_qa-2.6.a > libwx_macu_core-2.6.a libwx_macud_stc-2.6.a > libwx_macu_gl-2.6.a libwx_macud_xrc-2.6.a > libwx_macu_html-2.6.a libwxregexu-2.6.a > libwx_macu_media-2.6.a libwxregexud-2.6.a > libwx_macu_ogl-2.6.a wx For me (with wx-cvs) . libwx_macu_core-2.6.a libwxexpat-2.6.a .. libwx_macu_gl-2.6.a libwxjpeg-2.6.a libwx_base_carbonu-2.6.a libwx_macu_html-2.6.a libwxpng-2.6.a libwx_base_carbonu_net-2.6.a libwx_macu_media-2.6.a libwxregexu-2.6.a libwx_base_carbonu_xml-2.6.a libwx_macu_ogl-2.6.a libwxtiff-2.6.a libwx_macu-2.6.0.r libwx_macu_qa-2.6.a wx libwx_macu-2.6.0.rsrc libwx_macu_stc-2.6.a libwx_macu_adv-2.6.a libwx_macu_xrc-2.6.a > but, i dunno where the problem stems from as yet ... the "SysError 0 > during open" is not very enlightening. I guess it's the not-human-readable version of "File not found" ;-)) > quick glances at ./pkg/mac/Makefile.in & ./pkg/mac/complete-bundle.sh > aren't immediately clear (to me) as the source of the problem. Hm... the location of the resource-file is not guessed by pgadmin, it's provided by wx (more specifically, by wx-config) Could you post the output of wx-config --rezflags ? Greetings, Florian Pflug
Attachment
hi florian, >> % chmod a+x /usr/ports/pgadmin3-cvs2/pkg/mac/complete-bundle.sh >> >> or a change in the makefile, per my earlier post. >> > I used a fresh checkout of pgadmin3, and, apart from > chmod 755 complete-bundle.sh > I had to change nothing, and it worked... ok, i'm confused then too. how exactly do _you_ execute a script if its perms do not include the execute flag? what happens if you simply attempt to invoke the script directly at cmd-line? if you invoke it as an arg to "sh" (sh complete-bundle.sh), then sure ... but directly (./complete-bundle.sh)? what ARE your complete-bundle.sh's perms in a virgin DL? again, mine are: -rw-r--r-- 1 devuser admin 1306 Apr 12 00:36 pkg/mac/complete-bundle.sh >> ... >> make install-exec-hook >> /usr/ports/pgadmin3-cvs2/config/install-sh -c -m 644 PkgInfo >> /usr/ports/pgadmin3-cvs2/pgAdmin3.app/PkgInfo >> /usr/ports/pgadmin3-cvs2/config/install-sh -c -m 644 Info.plist >> /usr/ports/pgadmin3-cvs2/pgAdmin3.app/Contents/Info.plist >> /usr/ports/pgadmin3-cvs2/config/install-sh -c -m 644 "pgadmin3.icns" >> "/usr/ports/pgadmin3-cvs2/pgAdmin3.app/Contents/Resources/pgAdmin3.icns" >> $(/usr/local/wxWidgets-cvs/bin/wx-config --rezflags | sed >> 's/-t[[:space:]]*APPL//') \ >> >> "/usr/ports/pgadmin3-cvs2/pgAdmin3.app/Contents/Resources/pgAdmin3.rsrc" >> -useDF >> /System/Library/Frameworks/Carbon.framework/Headers/Carbon.r:43: ### >> /Developer/Tools/Rez - SysError 0 during open of >> "/usr/local/wxWidgets-cvs/lib/libwx_macu-2.6.0.r". >> Fatal Error! >> /System/Library/Frameworks/Carbon.framework/Headers/Carbon.r:43: ### >> /Developer/Tools/Rez - Fatal Error, can't recover. >> /usr/local/wxWidgets-cvs/lib/libwx_macu-2.6.0.r: ### >> /Developer/Tools/Rez - Since errors occurred, >> /usr/ports/pgadmin3-cvs2/pgAdmin3.app/Contents/Resources/pgAdmin3.rsrc's >> resource fork was not written. >> make[4]: *** [install-exec-hook] Error 3 >> make[3]: *** [install-exec-am] Error 2 >> make[2]: *** [install-am] Error 2 >> make[1]: *** [install-recursive] Error 1 >> make: *** [install-recursive] Error 1 > >> looking in: >> >> /usr/local/wxWidgets-cvs/lib % ls -a >> . libwx_macu_qa-2.6.a >> .. libwx_macu_stc-2.6.a >> cd libwx_macu_xrc-2.6.a >> libwx_base_carbonu-2.6.a libwx_macud_adv-2.6.a >> libwx_base_carbonu_net-2.6.a libwx_macud_core-2.6.a >> libwx_base_carbonu_xml-2.6.a libwx_macud_gl-2.6.a >> libwx_base_carbonud-2.6.a libwx_macud_html-2.6.a >> libwx_base_carbonud_net-2.6.a libwx_macud_media-2.6.a >> libwx_base_carbonud_xml-2.6.a libwx_macud_ogl-2.6.a >> libwx_macu_adv-2.6.a libwx_macud_qa-2.6.a >> libwx_macu_core-2.6.a libwx_macud_stc-2.6.a >> libwx_macu_gl-2.6.a libwx_macud_xrc-2.6.a >> libwx_macu_html-2.6.a libwxregexu-2.6.a >> libwx_macu_media-2.6.a libwxregexud-2.6.a >> libwx_macu_ogl-2.6.a wx > For me (with wx-cvs) > . libwx_macu_core-2.6.a > libwxexpat-2.6.a > .. libwx_macu_gl-2.6.a > libwxjpeg-2.6.a > libwx_base_carbonu-2.6.a libwx_macu_html-2.6.a libwxpng-2.6.a > libwx_base_carbonu_net-2.6.a libwx_macu_media-2.6.a > libwxregexu-2.6.a > libwx_base_carbonu_xml-2.6.a libwx_macu_ogl-2.6.a > libwxtiff-2.6.a > libwx_macu-2.6.0.r libwx_macu_qa-2.6.a wx > libwx_macu-2.6.0.rsrc libwx_macu_stc-2.6.a > libwx_macu_adv-2.6.a libwx_macu_xrc-2.6.a > >> but, i dunno where the problem stems from as yet ... the "SysError 0 >> during open" is not very enlightening. > I guess it's the not-human-readable version of "File not found" ;-)) well, given your ls, i'd gather! =) strange -- i can't imagine what's different abt our 2 systems ... > Could you post the output of wx-config --rezflags ? here's the output from BOTH wxwidgets-cvs and wxwidgets-255 % /usr/local/wxWidgets-cvs/bin/wx-config --rezflags /Developer/Tools/Rez -d __DARWIN__ -t APPL Carbon.r /usr/local/wxWidgets-cvs/lib/libwx_macud-2.6.0.r -o % /usr/local/wxWidgets-255/bin/wx-config --rezflags /Developer/Tools/Rez -d __DARWIN__ -t APPL Carbon.r /usr/local/wxWidgets-255/lib/libwx_macu-2.5.5.r -o richard
OpenMacNews wrote: > hi florian, >> I used a fresh checkout of pgadmin3, and, apart from >> chmod 755 complete-bundle.sh >> I had to change nothing, and it worked... > > > ok, i'm confused then too. how exactly do _you_ execute a script if its > perms do not include the execute flag? what happens if you simply > attempt to invoke the script directly at cmd-line? > > if you invoke it as an arg to "sh" (sh complete-bundle.sh), then sure > ... but directly (./complete-bundle.sh)? > > what ARE your complete-bundle.sh's perms in a virgin DL? > > again, mine are: > > -rw-r--r-- 1 devuser admin 1306 Apr 12 00:36 pkg/mac/complete-bundle.sh I _had_ to change the permissions of complete-bundle.sh - thats what I mean with "apart from chmod 755 complete-bundle.sh, I had to change nothing". Maybe my limited knowledge of the english language caused confusion here, so I'll rephrase "I used a fresh checkout of pgadmin3, and, apart from chmod 755 complete-bundle.sh I had to change nothing and it worked": What I wanted to say way: I did a fresh checkout Then I modified the permissions of complete-bundle.sh Without _any_ further modifications I did sh ./bootstrap ./configure <my configure args> make make install This worked, and produced a valid .app (It crashes when opening a dialog, but that is a wx problem I guess) > strange -- i can't imagine what's different abt our 2 systems ... > >> Could you post the output of wx-config --rezflags ? > > here's the output from BOTH wxwidgets-cvs and wxwidgets-255 > > % /usr/local/wxWidgets-cvs/bin/wx-config --rezflags > /Developer/Tools/Rez -d __DARWIN__ -t APPL Carbon.r > /usr/local/wxWidgets-cvs/lib/libwx_macud-2.6.0.r -o > > % /usr/local/wxWidgets-255/bin/wx-config --rezflags > /Developer/Tools/Rez -d __DARWIN__ -t APPL Carbon.r > /usr/local/wxWidgets-255/lib/libwx_macu-2.5.5.r -o Does the file /usr/local/wxWidgets-255/lib/libwx_macu-2.5.5.r exist on your system? If so, I'd say that your build of wx cvs is in some way broken - maybe you should report that to the wx mailinglist. greetings, Florian Pflug
Attachment
hi, >>> I used a fresh checkout of pgadmin3, and, apart from > Maybe my limited knowledge of the english language caused confusion here, > so I'll rephrase "I used a fresh checkout of pgadmin3, and, apart from > chmod 755 complete-bundle.sh I had to change nothing and it worked": > > What I wanted to say way: > I did a fresh checkout > Then I modified the permissions of complete-bundle.sh > Without _any_ further modifications I did > sh ./bootstrap > ./configure <my configure args> > make > make install > > This worked, and produced a valid .app (It crashes when opening a dialog, but > that is a wx problem I guess) sorry. it's NOT your english ... it's my morning :-S you were perfectly clear/correct =) >> % /usr/local/wxWidgets-cvs/bin/wx-config --rezflags >> /Developer/Tools/Rez -d __DARWIN__ -t APPL Carbon.r >> /usr/local/wxWidgets-cvs/lib/libwx_macud-2.6.0.r -o >> >> % /usr/local/wxWidgets-255/bin/wx-config --rezflags >> /Developer/Tools/Rez -d __DARWIN__ -t APPL Carbon.r >> /usr/local/wxWidgets-255/lib/libwx_macu-2.5.5.r -o > Does the file /usr/local/wxWidgets-255/lib/libwx_macu-2.5.5.r > exist on your system? If so, I'd say that your build > of wx cvs is in some way broken - maybe you should > report that to the wx mailinglist. yes it does exist. % ls -ald /usr/local/wxWidgets-255/lib/libwx_macu-2.5.5.r -rw-r--r-- 1 devuser wheel 3205 Apr 14 11:53 /usr/local/wxWidgets-255/lib/libwx_macu-2.5.5.r good point. > maybe you should > report that to the wx mailinglist. will do. thx, richard