Re: Building vte fails

2009-07-03 Thread Ryan Schmidt


On Jul 2, 2009, at 12:18, David Evans wrote:

Yes,  you trying to build with gtk2 +no_x11 +quartz and vte does  
not support this.  To build vte you need to use
gtk2 without these variants.  Of course, this will conflict with  
other ports that you have built using gtk2 +no_x11 +quartz.


You could add code to the vte port to print a helpful error message  
if the user tries to do this. See the pango port, which checks for  
proper capabilities of its cairo dependency.


Or does your patch-x-display-missing.diff that you just added  
sufficiently address this?



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Building vte fails

2009-07-03 Thread David Evans
Ryan Schmidt wrote:

 On Jul 2, 2009, at 12:18, David Evans wrote:

 Yes,  you trying to build with gtk2 +no_x11 +quartz and vte does not
 support this.  To build vte you need to use
 gtk2 without these variants.  Of course, this will conflict with
 other ports that you have built using gtk2 +no_x11 +quartz.

 You could add code to the vte port to print a helpful error message if
 the user tries to do this. See the pango port, which checks for proper
 capabilities of its cairo dependency.

 Or does your patch-x-display-missing.diff that you just added
 sufficiently address this?


The patch allows it to build when there is no GTK X11 support available
so no need for anything further.

Looks like the upstream developers have been working progressively
to modify the code to work through GTK only and not assume that an X11
backend is being used.   During development of these modifications
they have used X_DISPLAY_MISSING to enclose the new code so that they
could turn it on for testing.  Now all of these ifdefs have been
removed except in this one file so the code that is enabled by this
patch may be experimental in nature or pre-release but it builds.  I expect
that in a future release this ifdef will disappear entirely.

The particular problem here was the use of the outdated gtk-sharp port. 
The newer gtk-sharp2 port has removed the dependency on vte.

Maybe the place for a warning message is in gtk-sharp recommending the
newer port.
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Building vte fails

2009-07-02 Thread Janosch Peters
Hi list,

I'd like to install gtk-sharp which depends on vte. Unfortunately, vte 
fails to build. Because I found nothing on the net, I assume that it 
has sth to do with my configuration, but I dont know what it could be.

Any ideas are highly appreciated.

cheers,
Janosch

---  Building vte
Error: Target org.macports.build returned: shell command  cd /opt/
local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_
vte/work/vte-0.20.5  make all  returned error 2
Command output: vtebg.c: At top level:
vtebg.c:107: warning: declaration of 'atom' shadows a global 
declaration
vtebg.c:83: warning: shadowed declaration is here
vtebg.c:109: error: syntax error before 'XID'
vtebg.c:110: warning: function declaration isn't a prototype
vtebg.c: In function '_vte_property_get_pixmaps':
vtebg.c:110: warning: old-style function definition
vtebg.c:111: error: 'window' undeclared (first use in this function)
vtebg.c:111: error: (Each undeclared identifier is reported only once
vtebg.c:111: error: for each function it appears in.)
vtebg.c:114: error: 'type' undeclared (first use in this function)
vtebg.c:114: error: 'size' undeclared (first use in this function)
vtebg.c:115: error: 'pixmaps' undeclared (first use in this function)
vtebg.c: In function 'vte_bg_root_pixmap':
vtebg.c:124: error: 'XID' undeclared (first use in this function)
vtebg.c:124: error: 'pixmaps' undeclared (first use in this function)
vtebg.c:129: error: dereferencing pointer to incomplete type
vtebg.c:129: error: dereferencing pointer to incomplete type
vtebg.c:135: error: dereferencing pointer to incomplete type
vtebg.c: In function 'vte_bg_root_filter':
vtebg.c:166: error: 'XEvent' undeclared (first use in this function)
vtebg.c:166: error: 'xevent' undeclared (first use in this function)
vtebg.c:166: error: syntax error before ')' token
vtebg.c:171: error: 'PropertyNotify' undeclared (first use in this 
function)
vtebg.c:173: error: dereferencing pointer to incomplete type
vtebg.c:174: error: dereferencing pointer to incomplete type
make[3]: *** [libvte_la-vtebg.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Building vte fails

2009-07-02 Thread David Evans

Janosch Peters wrote:

Hi list,

I'd like to install gtk-sharp which depends on vte. Unfortunately, vte 
fails to build. Because I found nothing on the net, I assume that it 
has sth to do with my configuration, but I dont know what it could be.


Any ideas are highly appreciated.

cheers,
Janosch

---  Building vte
Error: Target org.macports.build returned: shell command  cd /opt/
local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_
vte/work/vte-0.20.5  make all  returned error 2
Command output: vtebg.c: At top level:
vtebg.c:107: warning: declaration of 'atom' shadows a global 
declaration

vtebg.c:83: warning: shadowed declaration is here
vtebg.c:109: error: syntax error before 'XID'
vtebg.c:110: warning: function declaration isn't a prototype
vtebg.c: In function '_vte_property_get_pixmaps':
vtebg.c:110: warning: old-style function definition
vtebg.c:111: error: 'window' undeclared (first use in this function)
vtebg.c:111: error: (Each undeclared identifier is reported only once
vtebg.c:111: error: for each function it appears in.)
vtebg.c:114: error: 'type' undeclared (first use in this function)
vtebg.c:114: error: 'size' undeclared (first use in this function)
vtebg.c:115: error: 'pixmaps' undeclared (first use in this function)
vtebg.c: In function 'vte_bg_root_pixmap':
vtebg.c:124: error: 'XID' undeclared (first use in this function)
vtebg.c:124: error: 'pixmaps' undeclared (first use in this function)
vtebg.c:129: error: dereferencing pointer to incomplete type
vtebg.c:129: error: dereferencing pointer to incomplete type
vtebg.c:135: error: dereferencing pointer to incomplete type
vtebg.c: In function 'vte_bg_root_filter':
vtebg.c:166: error: 'XEvent' undeclared (first use in this function)
vtebg.c:166: error: 'xevent' undeclared (first use in this function)
vtebg.c:166: error: syntax error before ')' token
vtebg.c:171: error: 'PropertyNotify' undeclared (first use in this 
function)

vtebg.c:173: error: dereferencing pointer to incomplete type
vtebg.c:174: error: dereferencing pointer to incomplete type
make[3]: *** [libvte_la-vtebg.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

  

Janosch --

After seeing your email, I rebuilt vte here and did not encounter any 
problems so I need more information to diagnose what the

problem is.

First of all, make doubly certain that your ports are up to date by 
doing the following:


sudo port clean vte
sudo port selfupdate
sudo port upgrade outdated

then try and build vte again using debug mode

sudo port -d build vte

and if it fails again open a ticket against vte on track 
(http://trac.macports.org) including the full debug output

and specifying the following information about your system

Mac OS X version
Hardware (intel/ppc)
XCode Version installed

and we can go from there

at first glimpse it looks like an X11 related problem but need the 
detail to tell for sure


Dave
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Building vte fails

2009-07-02 Thread Janosch Peters
On 07-02-2009, David Evans dev...@macports.org wrote:
 and if it fails again open a ticket against vte on track
 (http://trac.macports.org) including the full debug output
 and specifying the following information about your system

Done. Ticket is #20139. Its looking for a file called gdkx.h, which is 
not on my disk. Im pretty sure that it is the cause.

cheers,
Janosch

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Building vte fails

2009-07-02 Thread David Evans

Janosch Peters wrote:

On 07-02-2009, David Evans dev...@macports.org wrote:
  

and if it fails again open a ticket against vte on track
(http://trac.macports.org) including the full debug output
and specifying the following information about your system



Done. Ticket is #20139. Its looking for a file called gdkx.h, which is 
not on my disk. Im pretty sure that it is the cause.


cheers,
Janosch

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

  
Yes,  you trying to build with gtk2 +no_x11 +quartz and vte does not 
support this.  To build vte you need to use
gtk2 without these variants.  Of course, this will conflict with other 
ports that you have built using gtk2 +no_x11 +quartz.


It's really not practical to try and mix x11 and quartz ports in the 
same build environment because of this. 

I recommend installing a second instance of macports so that you have 
one build environment for the default x11 ports

and a second for the +no_x11 +quartz variety.

See the MacPorts quide for instructions on how to do this.

 http://guide.macports.org/#installing.macports.source.multiple
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Building vte fails

2009-07-02 Thread David Evans

Janosch Peters wrote:

Hi list,

I'd like to install gtk-sharp which depends on vte. Unfortunately, vte 
fails to build. Because I found nothing on the net, I assume that it 
has sth to do with my configuration, but I dont know what it could be.


Any ideas are highly appreciated.

cheers,
Janosch

  


Janosch --

I just realized that you are trying to install gtk-sharp which is an 
older version of this port. (1.0.10).  gtk-sharp2 is a newer version 
(2.12.9) which
doesn't require vte at all.  Maybe this is what you need.  Sorry for not 
noticing the difference sooner.


Dave
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users