bugGNU Smalltalk - Bugs: bug #65139, GNU smalltalk:"multiple...

 
 

bug #65139: GNU smalltalk:"multiple definition of" errors when building from source

Submitter:  xsven
Submitted:  Mon 08 Jan 2024 01:11:34 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 10 Jan 2024 01:52:06 PM UTC, comment #1: 

I have added the "extern" keyword before the type definitions

libgst/genbc-impl.c:910
libgst/genbc-impl.c:913
libgst/genbc-impl.c:915

This has fixed the linking and the building in general. Furthermore  only a single test has failed

117: DebugTools FAILED (testsuite.at:155)

The problem with the manual fix is that YACC auto-generates the file libgst/genbc-impl.c. Maybe one of the .y files has an issue.




xsven
Mon 08 Jan 2024 01:11:34 PM UTC, original submission:  

I am trying to install GNU Smalltalk in a WSL Linux with CentOS 9 Stream.

I have tried the rpm package gnu-smalltalk-3.2.91-1.x86_64: gst is working fine. gst-browser core dumps.

I have tried the latest release candidate https://alpha.gnu.org/gnu/smalltalk/smalltalk-3.2.91.tar.xz: gst and gst-browser is working but tests "make check" are failing. I do not trust the installation.

Now I have downloaded the sources (Git commit #f6eb72fa) and at build time I am getting

/usr/bin/ld: genbc-impl.o:/home/sven.willenbuecher/Downloads/smalltalk-git/libgst/genbc-impl.c:910: multiple definition of `yychar'; genbc-decl.o:/home/sven.willenbuecher/Downloads/smalltalk-git/libgst/genbc-decl.c:1013: first defined here
/usr/bin/ld: genbc-impl.o:/home/sven.willenbuecher/Downloads/smalltalk-git/libgst/genbc-impl.c:913: multiple definition of `yylval'; genbc-decl.o:/home/sven.willenbuecher/Downloads/smalltalk-git/libgst/genbc-decl.c:1016: first defined here
/usr/bin/ld: genbc-impl.o:/home/sven.willenbuecher/Downloads/smalltalk-git/libgst/genbc-impl.c:915: multiple definition of `yynerrs'; genbc-decl.o:/home/sven.willenbuecher/Downloads/smalltalk-git/libgst/genbc-decl.c:1018: first defined here
collect2: error: ld returned 1 exit status
make[3]: * [Makefile:667: genbc] Error 1
make[3]: Leaving directory '/home/sven.willenbuecher/Downloads/smalltalk-git/libgst'
make[2]: * [Makefile:1099: match.stamp] Error 2
make[2]: Leaving directory '/home/sven.willenbuecher/Downloads/smalltalk-git/libgst'
make[1]: * [Makefile:1067: all-recursive] Error 1
make[1]: Leaving directory '/home/sven.willenbuecher/Downloads/smalltalk-git'
make: * [Makefile:681: all] Error 2

Would appreciate any help to overcome this.

xsven

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by xsven (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code