Opened 19 years ago

Closed 17 years ago

Last modified 15 years ago

#3835 closed defect (fixed)

BUG: Lesstif won't build on Tiger

Reported by: tpeters@… Owned by: lomion@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: billy.biggs@…,markd@…
Port:

Description

I have an X11 app. that I try to port to Mac OS X 10.4, and which needs lesstif (or Motif) libs. There is a dport for lesstif which I tried to install. It comes a long way, but crashes at some point. I do have a working X11 environment (XFree). Here is the log of the 2nd attempt, so part is already up-to date; the error on the 1st line I believe is not an error but comes from make return ing a message that nothing is to be done.

---> Building lesstif with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dpo rts/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupd ate_dports_x11_lesstif/work/lesstif-0.94.4" && make all" returned error 2 Command output: make[2]: Nothing to be done for `all'. Making all in include make all-recursive Making all in Motif-2.1 Making all in Xm make[4]: Nothing to be done for `all'. Making all in Mrm make[4]: Nothing to be done for `all'. Making all in uil make[4]: Nothing to be done for `all'. Making all in XmI make[4]: Nothing to be done for `all'. make[4]: Nothing to be done for `all-am'. make[3]: Nothing to be done for `all-am'. Making all in lib Making all in config make[2]: Nothing to be done for `all'. Making all in Xm-2.1 /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../. ./include -I../../include/Motif-2.1 -I../../include/Motif-2.1 -I/usr/X11R6/incl ude -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include -g

-O2 -c -o TextOut.lo TextOut.c gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include/Motif-2.1 -I../../i

nclude/Motif-2.1 -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/X11R6/include/ freetype2 -I/usr/X11R6/include -g -O2 -c TextOut.c -fno-common -DPIC -o .libs/T extOut.o TextOut.c: In function 'FontInit': TextOut.c:369: error: invalid lvalue in assignment TextOut.c:369: error: invalid lvalue in assignment TextOut.c: In function '_XmTextNextX': TextOut.c:937: warning: pointer targets in passing argument 3 of 'XftTextExtents 8' differ in signedness TextOut.c: In function '_XmOut_FontTextWidth': TextOut.c:3343: warning: pointer targets in passing argument 3 of 'XftTextExtent s8' differ in signedness make[2]: * [TextOut.lo] Error 1 make[1]: * [all-recursive] Error 1 make: * [all-recursive] Error 1

# cd /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_lesstif/work/ lesstif-0.94.4 # ls -l total 4664 -rw-rw-r-- 1 root admin 489 Mar 31 21:19 AUTHORS -rw-rw-r-- 1 root admin 13269 Mar 31 21:46 BUG-REPORTING -rwxrwxr-x 1 root admin 17982 Mar 31 21:19 COPYING -rwxrwxr-x 1 root admin 25265 Mar 31 21:19 COPYING.LIB -rw-rw-r-- 1 root admin 1090 Mar 31 21:19 CREDITS -rw-rw-r-- 1 root admin 89018 Mar 31 21:19 ChangeLog -rw-rw-r-- 1 root admin 75 Mar 31 21:19 FAQ -rw-rw-r-- 1 root admin 31550 Mar 31 21:44 INSTALL.txt -rw-r--r-- 1 root admin 26517 Jul 2 22:46 Makefile -rw-rw-r-- 1 root admin 3463 Mar 31 21:19 Makefile.am -rw-rw-r-- 1 root admin 27262 Mar 31 21:45 Makefile.in -rw-rw-r-- 1 root admin 2057 Mar 31 21:19 NEWS -rw-rw-r-- 1 root admin 180 Mar 31 21:19 README -rw-rw-r-- 1 root admin 90292 Mar 31 21:19 ReleaseNotes.html -rw-rw-r-- 1 root admin 98449 Mar 31 21:46 ReleaseNotes.txt -rw-rw-r-- 1 root admin 2314 Mar 31 21:19 ac_debug.m4 -rw-rw-r-- 1 root admin 1302 Mar 31 21:19 ac_have_libxp.m4 -rw-rw-r-- 1 root admin 17850 Mar 31 21:19 acinclude.m4 -rw-rw-r-- 1 root admin 247835 Mar 31 21:44 aclocal.m4 drwxrwxrwx 7 root admin 238 Jul 2 22:46 autopackage drwxrwxrwx 7 root admin 238 Jul 2 22:47 clients -rwxr-xr-x 1 root admin 3703 Mar 31 21:45 compile -rwxr-xr-x 1 root admin 43610 Mar 31 21:45 config.guess -rw-r--r-- 1 root admin 90851 Jul 2 22:47 config.log -rwxr-xr-x 1 root admin 56690 Jul 2 22:46 config.status -rwxr-xr-x 1 root admin 31495 Mar 31 21:45 config.sub -rwxrwxr-x 1 root admin 968437 Mar 31 21:44 configure -rwxrwxr-x 1 root admin 15504 Mar 31 21:19 configure.in drwxrwxrwx 17 root admin 578 Jul 2 22:47 doc drwxrwxrwx 9 root admin 306 Jul 2 22:47 include -rwxr-xr-x 1 root admin 9233 Mar 31 21:44 install-sh drwxrwxrwx 10 root admin 340 Jul 2 22:47 lib -rwxr-xr-x 1 root admin 206308 Jul 2 22:46 libtool -rw-r--r-- 1 root admin 185213 Mar 31 21:45 ltmain.sh -rwxr-xr-x 1 root admin 10872 Mar 31 21:44 missing drwxrwxrwx 22 root admin 748 Jul 2 22:48 scripts drwxrwxrwx 25 root admin 850 Jul 2 22:47 test

Attachments (1)

Portfile.diff (1.0 KB) - added by markd@… 17 years ago.

Download all attachments as: .zip

Change History (13)

comment:1 Changed 19 years ago by blb@…

Owner: changed from darwinports-bugs@… to lomion@…

Assigning to maintainer.

comment:2 Changed 18 years ago by dports@…

I too could not get lesstif to build on Tiger 10.4.2 / gcc 4 (tried 3.3 too) / Xcode 2.1 a couple of days ago. I tried repeatedly. Then just now I tried reinstalling with gcc 4.0 and it installed just fine. I have changed nothing on my PowerBook so I have no idea why it worked for me now.

comment:3 Changed 18 years ago by mww@…

Summary: Lesstif won't build on TigerBUG: Lesstif won't build on Tiger

comment:4 Changed 18 years ago by billy.biggs@…

Cc: billy.biggs@… added

comment:5 Changed 18 years ago by billy.biggs@…

I think it's a bug in the lesstif code. With USE_XFT enabled, Out_FontHeight is a macro with an inline if, so the expansion becomes something like this:

int main () {

int a = 0, b, c; (a ? b : c) = 5;

}

For me this gives:

main.c: In function ‘main’: main.c:3: error: invalid lvalue in assignment

I'm not sure where the upstream is so if someone could forward this on. I also had to add a -lfontconfig to get libXm to link on Tiger.

comment:6 Changed 18 years ago by ben@…

blocked: 5342

comment:7 Changed 18 years ago by rpz@…

I was able to build this port by avoiding the USE_XPF macro by adding the configure argument

--without-freetype-includes

This is by no means a fix, but still allows you to build the port.

comment:8 Changed 17 years ago by pipping@…

Milestone: Available Ports

comment:9 Changed 17 years ago by pipping@…

Milestone: Available PortsPort Bugs

comment:10 Changed 17 years ago by markd@…

Here is a patch that updates to 0.95 and uses --without-freetype-includes because it is still needed with the new version.

Changed 17 years ago by markd@…

Attachment: Portfile.diff added

comment:11 Changed 17 years ago by markd@…

Cc: markd@… added
Resolution: fixed
Status: newclosed

Committed and update to the latest version and added -without-freetype-includes. Thanks.

comment:12 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.