Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
44 user(s) are online (27 user(s) are browsing Forums)

Members: 0
Guests: 44

more...

Headlines

 
  Register To Post  

« 1 ... 18 19 20 (21)
Re: Porting to AmigaOS4 thread
Home away from home
Home away from home


See User information
@all

I get (not severe) errors while configuring
Quote:

Checking for SDL... yes
gnome-config: Unknown command
gnome-config failed returncode 10

It seems to come from pkg-config.

Can i somehow silence those or get rid of them completely?

People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
Go to top
Re: Porting to AmigaOS4 thread
Just popping in
Just popping in


See User information
@Raziel

you should have a readme.md or something similar, but try --disable-gnome when invoking the configure scripts the help might be in the actual configure file.

Go to top
Re: Porting to AmigaOS4 thread
Home away from home
Home away from home


See User information
@trgswe

Thanks, will take a look

People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
Go to top
Re: Porting to AmigaOS4 thread
Home away from home
Home away from home


See User information
@all

Question about warnings.

How to fix these or should they even be fixed wrt future compatibility?
Is it something as easy as adding another header?

gcc -O2 -Wall -I. -DSOUND_AHI -DWORDS_BIGENDIAN -o delay.-c delay.c
delay
.cIn function 'amiga_atexit':
delay.c:71:17warning'DeleteIORequest' is deprecated [-Wdeprecated-declarations]
   
71 |                 DeleteIORequest((struct IORequest *) timerio);
      |                 ^~~~~~~~~~~~~~~
In file included from /SDK/include/include_h/proto/exec.h:30,
                 
from delay.c:38:
/
SDK/include/include_h/interfaces/exec.h:148:35notedeclared here
  148 
|         DEPRECATED void APICALL (*DeleteIORequest)(struct ExecIFace *Self,
struct IORequest ioRequest);
      |                                   ^~~~~~~~~~~~~~~
delay.c:72:17warning'DeleteMsgPort' is deprecated [-Wdeprecated-declarations]
   
72 |                 DeleteMsgPort(timerport);
      |                 ^~~~~~~~~~~~~
In file included from /SDK/include/include_h/proto/exec.h:30,
                 
from delay.c:38:
/
SDK/include/include_h/interfaces/exec.h:98:35notedeclared here
   98 
|         DEPRECATED void APICALL (*DeleteMsgPort)(struct ExecIFace *Selfstruct
MsgPort 
port);
      |                                   ^~~~~~~~~~~~~
delay.cIn function 'amiga_inittimer':
delay.c:79:9warning'CreateMsgPort' is deprecated [-Wdeprecated-declarations]
   
79 |         timerport CreateMsgPort();
      |         ^~~~~~~~~
In file included from /SDK/include/include_h/proto/exec.h:30,
                 
from delay.c:38:
/
SDK/include/include_h/interfaces/exec.h:96:47notedeclared here
   96 
|         DEPRECATED struct MsgPort APICALL (*CreateMsgPort)(struct ExecIFace
*Self);
      |                                               ^~~~~~~~~~~~~
delay.c:82:35warning'CreateIORequest' is deprecated [-Wdeprecated-declarations]
   
82 |                 timerio = (struct TimeRequest *) CreateIORequest(timerport,
sizeof(struct TimeRequest));
      |                                   ^~~~~~~~~~~
In file included from /SDK/include/include_h/proto/exec.h:30,
                 
from delay.c:38:
/
SDK/include/include_h/interfaces/exec.h:147:49notedeclared here
  147 
|         DEPRECATED struct IORequest APICALL (*CreateIORequest)(struct
ExecIFace 
*Self, const struct MsgPort ioReplyPortULONG size);
      |                                                 ^~~~~~~~~~~~~~~
delay.c:90:50warningpassing argument 2 of 'IExec->GetInterface' from incompatible
pointer type 
[-Wincompatible-pointer-types]
   
90 |                                 ITimer = (struct TimerIFace *)
GetInterface(TimerBase"main"1NULL);
      |                                                  ^~~~~~~~~~
      |                                                  |
      |                                                  
struct Device *
delay.c:90:50noteexpected 'struct Library *' but argument is of type 'struct Device
*'
delay.c:97:33warning'DeleteIORequest' is deprecated [-Wdeprecated-declarations]
   
97 |                                 DeleteIORequest((struct IORequest *)timerio);
      |                                 ^~~~~~~~~~~~~~~
In file included from /SDK/include/include_h/proto/exec.h:30,
                 
from delay.c:38:
/
SDK/include/include_h/interfaces/exec.h:148:35notedeclared here
  148 
|         DEPRECATED void APICALL (*DeleteIORequest)(struct ExecIFace *Self,
struct IORequest ioRequest);
      |                                   ^~~~~~~~~~~~~~~
delay.c:98:33warning'DeleteMsgPort' is deprecated [-Wdeprecated-declarations]
   
98 |                                 DeleteMsgPort(timerport);
      |                                 ^~~~~~~~~~~~~
In file included from /SDK/include/include_h/proto/exec.h:30,
                 
from delay.c:38:
/
SDK/include/include_h/interfaces/exec.h:98:35notedeclared here
   98 
|         DEPRECATED void APICALL (*DeleteMsgPort)(struct ExecIFace *Selfstruct
MsgPort 
port);
      |                                   ^~~~~~~~~~~~~
delay.c:101:25warning'DeleteMsgPort' is deprecated [-Wdeprecated-declarations]
  
101 |                         DeleteMsgPort(timerport);
      |                         ^~~~~~~~~~~~~
In file included from /SDK/include/include_h/proto/exec.h:30,
                 
from delay.c:38:
/
SDK/include/include_h/interfaces/exec.h:98:35notedeclared here
   98 
|         DEPRECATED void APICALL (*DeleteMsgPort)(struct ExecIFace *Selfstruct
MsgPort 
port);
      |                                   ^~~~~~~~~~~~~


Thank you

People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
Go to top
Re: Porting to AmigaOS4 thread
Just popping in
Just popping in


See User information
@Raziel

In your case, you have to migrate the code to use the now official method to create an IORequest

timerio IExec->AllocSysObjectTags(ASOT_IOREQUEST,
  
ASOIOR_Sizesizeof(struct IORequest),
  
TAG_DONE);


and for freeing (deleting)

IExec->FreeSysObject(ASOT_LIST,(APTR)timerio );


For MsgPprt it's the same pattern, like ASOT_PORT.

The issue with the TimerIFace, i have no currently no clue

Go to top
Re: Porting to AmigaOS4 thread
Home away from home
Home away from home


See User information
@MigthyMax

argh, ok, so nothing i could do...thank you for checking

People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
Go to top
Re: Porting to AmigaOS4 thread
Just can't stay away
Just can't stay away


See User information
@Raziel

It seems to me that you need to cast TimerBase like:

ITimer = (struct TimerIFace *)GetInterface((struct Library *)TimerBase, "main", 1, NULL);

Go to top
Re: Porting to AmigaOS4 thread
Just popping in
Just popping in


See User information
@Raziel

Quote:
> In your case, you have to migrate the code to use the now official method to create an IORequest

argh, ok, so nothing i could do...thank you for checking

If you want to get rid of all the warnings, just use "-Wno-deprecated-declarations".

Go to top
Re: Porting to AmigaOS4 thread
Just popping in
Just popping in


See User information
@Capehill

Quote:
It seems to me that you need to cast TimerBase like:

ITimer = (struct TimerIFace *)GetInterface((struct Library *)TimerBase, "main", 1, NULL);

Better to make TimerBase a library pointer, instead of a device pointer; that way no casting is required. It's also cleaner that way, since the purpose of obtaining the TimerBase from the device is to be able to treat it like a library.


Edited by msteed on 2022/9/29 3:44:48
Go to top
Re: Porting to AmigaOS4 thread
Home away from home
Home away from home


See User information
@all

Did anyone test 1.4.2 of libFLAC on os4depot?

Since installing this release i get
/SDK/local/newlib/lib/libFLAC.a(stream_encoder.o): In function `process_subframe_.isra.14':
stream_encoder.c:(.text+0x54d4): undefined reference to 
`__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(stream_encoder.o): In function `write_bitbuffer_'
:
stream_encoder.c:(.text+0x5cd0): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(stream_encoder.o): In function 
`init_stream_internal_':
stream_encoder.c:(.text+0x6e34): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(stream_encoder.o): In function `process_frame_':
stream_encoder.c:(.text+0x826c): undefined reference to 
`__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(stream_encoder.o): In function `FLAC__stream_encoder_finish'
:
stream_encoder.c:(.text+0x90bc): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(stream_encoder.o):(.got2+0x9c): undefined reference to 
`__stack_chk_guard'
/SDK/local/newlib/lib/libFLAC.a(stream_encoder_framing.o): In function `FLAC__frame_add_header'
:
stream_encoder_framing.c:(.text+0x1284): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(stream_encoder_framing.o):(.got2+0xb4): undefined reference to 
`__stack_chk_guard'
/SDK/local/newlib/lib/libFLAC.a(ogg_encoder_aspect.o): In function `FLAC__ogg_encoder_aspect_write_callback_wrapper'
:
ogg_encoder_aspect.c:(.text+0x444): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(ogg_encoder_aspect.o):(.got2+0x4): undefined reference to 
`__stack_chk_guard'
/SDK/local/newlib/lib/libFLAC.a(ogg_helper.o): In function `simple_ogg_page__get_at'
:
ogg_helper.c:(.text+0x5b0): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(ogg_helper.o):(.got2+0x0): undefined reference to 
`__stack_chk_guard'
/SDK/local/newlib/lib/libFLAC.a(lpc.o): In function `FLAC__lpc_compute_lp_coefficients'
:
lpc.c:(.text+0x20c0): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(lpc.o): In function 
`FLAC__lpc_quantize_coefficients':
lpc.c:(.text+0x2654): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(lpc.o):(.got2+0x8): undefined reference to `__stack_chk_guard'
/SDK/local/newlib/lib/libFLAC.a(stream_decoder.o): In function 
`file_length_callback_':
stream_decoder.c:(.text+0x214): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(stream_decoder.o): In function `read_residual_partitioned_rice_':
stream_decoder.c:(.text+0x790): undefined reference to 
`__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(stream_decoder.o): In function `write_audio_frame_to_client_'
:
stream_decoder.c:(.text+0xa30): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(stream_decoder.o): In function 
`find_metadata_':
stream_decoder.c:(.text+0xf0c): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(stream_decoder.o): In function `read_frame_':
stream_decoder.c:(.text+0x32ac): undefined reference to 
`__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(stream_decoder.o):stream_decoder.c:(.text+0x5560): more undefined references to `__stack_chk_fail' 
follow
/SDK/local/newlib/lib/libFLAC.a(stream_decoder.o):(.got2+0x4): undefined reference to `__stack_chk_guard'
/SDK/local/newlib/lib/libFLAC.a(ogg_decoder_aspect.o): In function 
`FLAC__ogg_decoder_aspect_read_callback_wrapper':
ogg_decoder_aspect.c:(.text+0x504): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(ogg_decoder_aspect.o):(.got2+0x0): undefined reference to `__stack_chk_guard'
/SDK/local/newlib/lib/libFLAC.a(bitreader.o): In function 
`bitreader_read_from_client_':
bitreader.c:(.text+0x29c): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(bitreader.o): In function `FLAC__bitreader_read_raw_uint32.part.1':
bitreader.c:(.text+0x750): undefined reference to 
`__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(bitreader.o): In function `FLAC__bitreader_read_raw_int32'
:
bitreader.c:(.text+0x1344): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(bitreader.o): In function 
`FLAC__bitreader_read_raw_uint64':
bitreader.c:(.text+0x14ec): undefined reference to `__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(bitreader.o): In function `FLAC__bitreader_read_raw_int64':
bitreader.c:(.text+0x16cc): undefined reference to 
`__stack_chk_fail'
/SDK/local/newlib/lib/libFLAC.a(bitreader.o):bitreader.c:(.text+0x18e4): more undefined references to `__stack_chk_fail' 
follow
/SDK/local/newlib/lib/libFLAC.a(bitreader.o):(.got2+0x0): undefined reference to `__stack_chk_guard'

and i don't know why?

Did the new release somehow skip something?
and where can i get the former release (1.3.2?) to roll back?

Thank you

People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
Go to top
Re: Porting to AmigaOS4 thread
Just can't stay away
Just can't stay away


See User information
@Raziel

Have you downloaded the re-uploaded version? Because there was a problem with the one Fredrik uploaded originally.

Libflac 1.4.2 works for me perfectly.

The Rear Window blog

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
Go to top
Re: Porting to AmigaOS4 thread
Just can't stay away
Just can't stay away


See User information
@Raziel

Add -lssp to get rid of those undefined references.

To test I just compiled and linked the FLAC C decode file example code using the gcc 8.4.0 from SDK 54.16 and it worked without any errors (libs used for linking were "-lFLAC -logg -lssp").

Go to top
Re: Porting to AmigaOS4 thread
Home away from home
Home away from home


See User information
@trixie

Yes, i did, i actually was late to the party and got the fixed one (just re-dl-ed to be absolutely sure)

@salass00

What does the switch do?

People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
Go to top

  Register To Post
« 1 ... 18 19 20 (21)

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project