Bug 45813 - Sierra AGI resource interpreter engine
Bug#: 45813 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: hodglim@hodglim.com
Component: Games
URL:  http://sarien.sourceforge.net
Summary: Sierra AGI resource interpreter engine
Keywords:  
Status Whiteboard: 
Opened: 2004-03-26 08:43 0000
Description:   Opened: 2004-03-26 08:43 0000
Submitting an ebuild for the sarien-0.7.0 AGI game engine

Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Darren Hodges 2004-03-26 08:45:15 0000 -------
Created an attachment (id=28067) [details]
ebuild

------- Comment #2 From Mr. Bones. 2004-03-27 02:23:27 0000 -------
games-engines/sarien added to CVS.  thanks for the bug report and ebuild.

------- Comment #3 From Darren Hodges 2004-03-29 01:53:30 0000 -------
Thanks for adding the ebuild to the CVS, I seem to be having a problem
installing it however.

When I tried installing this morning, compilation failed with a large list of
"undefined references".

main.o(.text+0x7e): In function `main':
: undefined reference to `init_video'
main.o(.text+0xc5): In function `main':
: undefined reference to `report'
main.o(.text+0xca): In function `main':
: undefined reference to `console_init'
main.o(.text+0xd6): In function `main':
: undefined reference to `report'
main.o(.text+0x121): In function `main':
: undefined reference to `report'

<snip>

dobin: making bin/sarien executable...
install: cannot stat `bin/sarien': No such file or directory


However, switching to the work directory and manually running make created the
binary successfully.

> cd /var/tmp/portage/sarien-0.7.0/work/sarien-0.7.0
> make
> ls bin/

total 172K
-rw-r--r--    1 root     root          171 Sep  2  2001 Makefile
-rwxr-xr-x    1 root     root         157K Mar 29 10:44 sarien*
-rw-r--r--    1 root     root         2.7K Sep  2  2001 sarien.ico
-rwxr-xr-x    1 root     root          379 Sep  2  2001 sarien.info*

I couldn't see how make was being called in your updated ebuild, any ideas on
what could be causing compile to fail?

------- Comment #4 From Mr. Bones. 2004-03-29 02:13:59 0000 -------
Try it with MAKEOPTS="-j1"

------- Comment #5 From Darren Hodges 2004-03-29 03:12:13 0000 -------
Excellent, that fixed the compilation issues. Thank you.

But may I ask why that change was necessary? I have not experienced any problems compiling any other ebuilds.

It would be a pain if all users had to update their make.conf file just for this ebuild.

Thanks for your help!

------- Comment #6 From Mr. Bones. 2004-03-29 19:38:09 0000 -------
The problem is caused by buggy makefiles that don't properly list dependencies
within the build.  I've put a work around into CVS so this shouldn't be a problem
for anyone else.  Thanks for reporting it.