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.
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.
/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?
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").
If there are some configure gurus out there, please help. I can't figure out why this piece of configure script fails to find zlib
Quote:
checking for zlib... no configure: error: Unable to find zlib.
All of the pkg-config lines that are found in the script work fine using them in a shell... It also doesn't matter if i skip pkg-config and directly point to zlib with envvars
Help, please?
pkg_failed=no
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
printf %s "checking for zlib... " >&6; }
if test -n "$ZLIB_CFLAGS"; then
pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
($PKG_CONFIG --exists --print-errors "zlib") 2>&5
ac_status=$?
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
else
pkg_failed=untried
fi
if test -n "$ZLIB_LIBS"; then
pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
($PKG_CONFIG --exists --print-errors "zlib") 2>&5
ac_status=$?
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
else
pkg_failed=untried
fi
if test $pkg_failed = yes; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
_pkg_short_errors_supported=yes
else
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
else
ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$ZLIB_PKG_ERRORS" >&5
Are you running this on the AmigaOne machine? I presume you are. Are you running "./configure" through SH?
I would have expected that if you set the CFLAGS and LIB variables then PKGCONFIG would not be needed.
You can hack that configure script and add something like
set -x
Above the first line that you posted above (do not add it at the top. Just the line _before_ the first line you posted. This will print out each line that is being executed by the interpreter with expansion of variables.
Quite difficult to help without some reproducible steps; i.e. can you tell me which project this is or provide it and then I can attempt to reproduce.
If liberty means anything at all, it means the right to tell people what they do not want to hear. George Orwell.
The funny thing is that another project picks up zlib just fine, so im guessing that specific configure messes up the pathes or has them wrongly hardcoded.