bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ada shared libs issue.


From: Thomas Dickey
Subject: Re: Ada shared libs issue.
Date: Sat, 4 Jul 2020 15:16:00 -0400
User-agent: NeoMutt/20170113 (1.7.2)

On Sat, Jul 04, 2020 at 07:04:18PM +0200, Pascal wrote:
> Hello,
> 
> My configuration: GNAT Community 2020 on macOS Catalina.
> 
> I've an error with shared lib:
> % ./configure CC='gcc -g -O0' --enable-pc-files --with-ada-sharedlib 
> --enable-symlinks --prefix=$instxada
> % make
...
> Build Libraries
>    [gprlib]       AdaCurses.lexch
>    [link library] libAdaCurses.dylib
> Undefined symbols for architecture x86_64:
>   "_current_item", referenced from:
>       _terminal_interface__curses__menus__current in 
> terminal_interface-curses-menus.o
>   "_free_item", referenced from:
>       _terminal_interface__curses__menus__delete in 
> terminal_interface-curses-menus.o
>   "_free_menu", referenced from:
>       _terminal_interface__curses__menus__delete__2 in 
> terminal_interface-curses-menus.o
>   "_has_mouse", referenced from:
>       _terminal_interface__curses__mouse__has_mouse in 
> terminal_interface-curses-mouse.o
>      (maybe you meant: _terminal_interface__curses__mouse__has_mouse)
> ...
>  "_top_row", referenced from:
>       _terminal_interface__curses__menus__top_row in 
> terminal_interface-curses-menus.o
>      (maybe you meant: _terminal_interface__curses__menus__top_row, 
> _terminal_interface__curses__menus__set_top_row )
>   "_unpost_menu", referenced from:
>       _terminal_interface__curses__menus__post in 
> terminal_interface-curses-menus.o
> ld: symbol(s) not found for architecture x86_64
> collect2: error: ld returned 1 exit status
> gprlib: /usr/local/adacore/2020/bin/gcc execution error
> gprbuild: could not build library for project adacurses
> make[2]: *** [../lib/libAdaCurses.so.1] Error 5
> 
> What is missing?

just guessing: making shared libraries work requires setting up a search-path
for the linker.

I haven't looked at the 2020 version yet (I do have 2018 and 2019),
but can investigate to see if it's recent breakage or simply something
I didn't get around to trying.

(Offhand, I recall that libtool's never been taught to work with Ada,
but since that's not in your example, it's just a for-example...).

-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]