[AD] [ alleg-Bugs-1978539 ] Will not install on Solaris - multiple issues

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Bugs item #1978539, was opened at 2008-05-30 01:59
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=1978539&group_id=5665

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: hajma (tropikhajma2)
Assigned to: Nobody/Anonymous (nobody)
Summary: Will not install on Solaris - multiple issues

Initial Comment:
the version 4.3.10 will will not install on Solaris 10 5/08. 

1. 
After
./configure
./gmake
./gmake install
I get a message :

# gmake install
...
gmake -C addons/loadpng/ install
gmake[1]: Entering directory `/all/allegro-4.3.10/addons/loadpng'
install -d -m 755 `../../allegro-config --prefix`/include
directory /usr/local/include created
install -m 644 loadpng.h `../../allegro-config --prefix`/include
install: loadpng.h was not found anywhere!
gmake[1]: *** [install-headers] Error 2
gmake[1]: Leaving directory `/all/allegro-4.3.10/addons/loadpng'
gmake: *** [loadpng_install] Error 2
bash-3.00#


This is due to old implementation of the "install" command on Solaris.

It can be "fixed" by using the /usr/ucb/install instead, e.g. by changing the PATH.

It would be good to have that mentioned in the readme.

2.
After solving this, allegro still does not install, I'm getting:

bash-3.00# gmake install
...
/bin/sh ./misc/mkdirs.sh /usr/local/lib
Installing lib/unix/liballeg-4.3.10.so to /usr/local/lib
/bin/sh: syntax error at line 1: `;' unexpected
gmake: *** [install-lib] Error 2
bash-3.00#

I've figured out that it is caused by the line

@if test -n "$(ALLEGRO_MODULE_TARGETS)"; then \
          $(mkinstalldirs) $(DESTDIR)$(moduledir); \
          for m in $(ALLEGRO_MODULE_TARGETS); do \
           echo Installing $$m to $(DESTDIR)$(moduledir); \
           $(INSTALL_PROGRAM) $$m $(DESTDIR)$(moduledir)/; \
          done; \
          $(INSTALL_DATA) modules.lst $(DESTDIR)$(moduledir)/; \
        fi

in install-lib part of makefile, when ALLEGRO_MODULE_TARGETS is empty.


3.
after dome investigation:
the ALLEGRO_MODULE_TARGETS is empty, because the test for --export-dynamic switch in Solaris ld fails. So I had to in "configure" comment-out all the lines

LDFLAGS="Wl,--export-dynamic $LDFLAGS"

all went fine after that. According to http://www.digitalmars.com/d/archives/c++/command-line/382.html the export-dynamic is performed by default with the Solaris ld.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=1978539&group_id=5665




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/