Luis A Lastras lastrasl at
Thu Nov 12 10:34:51 PST 2009

I think I understand what the problem is. fig2dev does not compile because
it cannot find xpm.h. I do have the xpm package installed, but the .h file
is under


and the script does not look under there. How can I tell port to go there


--->  Building transfig
DEBUG: Executing (transfig)
DEBUG: Assembled command: 'cd
rts_print_transfig/work/transfig.3.2.5" && make all'
making all in ./fig2dev...
rm -f fig2dev.o
/usr/bin/gcc-4.0 -c -Os -Wall -Wpointer-arith -no-cpp-precomp   -I..
-I/opt/local/include    -D__i386__ -D__DARWIN__     \
                            -DNO_ALLOCA -DCSRG_BASED         -DNFSS
ocal/include -I/usr/X11R6/include/X11    fig2dev.c
In file included from fig2dev.c:29:
object.h:20:17: error: xpm.h: No such file or directory
In file included from fig2dev.c:29:
object.h:158: error: syntax error before 'XpmImage'
object.h:158: warning: no semicolon at end of struct or union
object.h:168: error: syntax error before '}' token
object.h:169: warning: type defaults to 'int' in declaration of 'F_pic'
object.h:169: warning: data definition has no type or storage class
fig2dev.c:375: warning: return type defaults to 'int'
make[1]: *** [fig2dev.o] Error 1

Luis A Lastras
Research Staff Member, Memory Systems Department
22-144 IBM TJ Watson Research Center
Yorktown Heights, NY, 10598
(914) 945 3613, T/L 862 3613

  From:       Ryan Schmidt <ryandesign at>                                                                                         
  To:         Luis A Lastras/Watson/IBM at IBMUS                                                                                                
  Cc:         macports-users at                                                                                            
  Date:       11/12/2009 11:59 AM                                                                                                            
  Subject:    Re: transfig/fig2dev                                                                                                           

On Nov 12, 2009, at 10:46, Luis A Lastras wrote:

> All I get are the manuals:
> $ port contents transfig
> Port transfig contains:
> /opt/local/bin/transfig
> /opt/local/share/man/man1/fig2dev.1.gz
> /opt/local/share/man/man1/fig2ps2tex.1.gz
> /opt/local/share/man/man1/pic2tpic.1.gz
> /opt/local/share/man/man1/transfig.1.gz

Ok, I agree, that looks wrong. :) Try uninstalling transfig and
installing it again, this time with the debug switch.

sudo port uninstall transfig
sudo port clean transfig
sudo port -d install transfig 2>&1 | tee ~/Desktop/transfig.txt

If it still doesn't install right, file a ticket in the issue tracker
and attach your debug output (the file transfig.txt on your desktop)
to the ticket, and I can compare it with the output on my system.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecblank.gif
Type: image/gif
Size: 45 bytes
Desc: not available
URL: <>

More information about the macports-users mailing list