HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • ← Previous Ticket
  • Next Ticket →

Ticket #267 (closed task: fixed)

Opened 6 years ago

Last modified 7 months ago

[allegro] building problems with gcc4

Reported by: michaelvoliveira Owned by: michaelvoliveira
Priority: normal Milestone: LibPak 1.0
Component: media-libs/allegro Version: 1.0
Severity: critical Keywords: allegro bdirectwindow gcc4
Cc:

Description

while I trying to build allegro with gcc4 I face this error:

gcc -DALLEGRO_SRC -DALLEGRO_LIB_BUILD -Wall -Wno-unused -Wno-multichar -Wno-ctor-dtor-privacy -mtune=i586 -O6 -funroll-loops -ffast-math -fomit-frame-pointer -DALLEGRO_NO_ASM -I. -I./include -o obj/beos/alleg/bdwindow.o -c src/beos/bdwindow.cpp
src/beos/bdwindow.cpp: In function 'BITMAP* _be_gfx_bdirectwindow_init(GFX_DRIVER*, int, int, int, int, int)':
src/beos/bdwindow.cpp:416: error: invalid conversion from 'uintptr_t (*)(BITMAP*, int)' to 'void*'
src/beos/bdwindow.cpp:417: error: invalid conversion from 'uintptr_t (*)(BITMAP*, int)' to 'void*'
src/beos/bdwindow.cpp:418: error: invalid conversion from 'void (*)(BITMAP*)' to 'void*'
make: *** [obj/beos/alleg/bdwindow.o] Error 1

Seems that a problem with compiling without asm enabled

bdwindow.cpp

415 #ifdef ALLEGRO_NO_ASM
416    bmp->read_bank = _be_gfx_bwindow_read_write_bank;
417    bmp->write_bank = _be_gfx_bwindow_read_write_bank;
418    _screen_vtable.unwrite_bank = _be_gfx_bwindow_unwrite_bank;
419 #else

Attachments

bdwindow.patch​ (886 bytes) - added by drcouzelis 5 years ago.
bwindow.patch​ (890 bytes) - added by drcouzelis 5 years ago.
bwscreen.patch​ (814 bytes) - added by drcouzelis 5 years ago.
allegro-4.4.1.1.patch​ (2.3 KB) - added by michaelvoliveira 5 years ago.
Created a better patch based on drcouzelis patches

Download all attachments as: .zip

Change History

Changed 5 years ago by drcouzelis

  • attachment bdwindow.patch​ added

Changed 5 years ago by drcouzelis

  • attachment bwindow.patch​ added

Changed 5 years ago by drcouzelis

  • attachment bwscreen.patch​ added

comment:1 Changed 5 years ago by drcouzelis

These patches will allow allegro-4.4.1.1 to compile in Haiku gcc4-hybrid.

By the way, I'm new to submitting patches, new to Haiku, and even more new to Haiku Ports.

comment:2 Changed 5 years ago by drcouzelis

I'm sorry, I forgot to mention: These patches allow Allegro to compile, BUT I have not tested it.

comment:3 Changed 5 years ago by michaelvoliveira

  • Summary changed from allegro: bdwindow.cpp problems building with gcc4 to allegro: bdwindow.cpp problems building with gcc4 - files attached needs review

Changed 5 years ago by michaelvoliveira

  • attachment allegro-4.4.1.1.patch​ added

Created a better patch based on drcouzelis patches

comment:4 Changed 5 years ago by michaelvoliveira

  • Owner changed from scottmc to michaelvoliveira
  • Severity changed from blocker to critical
  • Status changed from new to assigned
  • Summary changed from allegro: bdwindow.cpp problems building with gcc4 - files attached needs review to [allegro] building problems with gcc4 - files attached needs review

comment:5 Changed 5 years ago by scottmc

  • Resolution set to fixed
  • Status changed from assigned to closed

applied in r1025, thanks.

comment:6 Changed 5 years ago by michaelvoliveira

  • Resolution fixed deleted
  • Status changed from closed to reopened

still have problems with gcc4:

launch any app by double clicking is getting the following output

[tcsetpgrp failed in terminal_inferior: Invalid Argument]
[Switching to team /boot/apps/opensnc/opensurge (294) thread system driver (295)]
system_thread (data=0x0)
    at /boot/develop/haikuports/media-libs/allegro/work/allegro-4.4.1.1/src/beos/bsysapi.cpp:131
131           if (!strcmp(term, "dumb")) {
(gdb) bt
#0  system_thread (data=0x0)
    at /boot/develop/haikuports/media-libs/allegro/work/allegro-4.4.1.1/src/beos/bsysapi.cpp:131
#1  0x0049fbc4 in thread_entry () from /boot/system/lib/libroot.so
#2  0x7003ffec in ?? ()
Current language:  auto; currently c++
(gdb)


and play from terminal, the app launch, but the window image is not "updated" (needs to be moving around with mousedown), and is NOT PLAYING any sound as you see below:

http://img694.imageshack.us/img694/1414/screenshot5ii.png

comment:7 Changed 4 years ago by scottmc

  • Summary changed from [allegro] building problems with gcc4 - files attached needs review to [allegro] building problems with gcc4

comment:8 Changed 7 months ago by diver

  • Resolution set to fixed
  • Status changed from reopened to closed

Fixed in  https://bitbucket.org/haikuports/haikuports/commits/d289d81e5a589c69b07159d8f4f5968ea3acbf8a

Note: See TracTickets for help on using tickets.

Download in other formats:

  • Comma-delimited Text
  • Tab-delimited Text
  • RSS Feed

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/