#1832: Build error
--------------------------+-------------------------------------------------
Reporter: JustinWyllie | Type: bug
Status: new | Priority: normal
Milestone: | Component: none
Version: 2.6.0 | Severity: medium
Keywords: | Lang:
Patch: | Platform: linux
--------------------------+-------------------------------------------------
Comment(by JustinWyllie):
This returns nothing.
But nm libparrot.so returns a whole lot of symbols. So. It looks like
this symbol 'Parrot_confess' is missing. There is definitely only one
libparrot.so in my system and that is in
/home/justvps1/parrot-2.8.0/blib/lib. libparrot.so is a symlink to
libparrot.so.2.8.0 in that directory.
So. With my very basic knowledge of C when the compiler/linker built the
object file it did not find a header file definition for that function and
the others it can't find? Or something like that?
But I see what looks like a definition for Parrot_confess in
/home/justvps1/parrot-2.8.0/include/parrot/exceptions.h
Just to recap (I tried again from the start so the paths are not exactly
the same as in my first post) the command which produces the error is:
gcc -o miniparrot src/main.o src/null_config.o \
-Wl,-rpath=/home/justvps1/parrot-2.8.0/blib/lib
-L/home/justvps1/parrot-2.8.0/blib/lib -lparrot -lresolv -lnsl -ldl -lm
-lcrypt -lutil -lpthread -lrt -lgmp -L/usr/local/lib -Wl,-E
and the error is:
src/main.o: In function `is_all_digits':
/home/justvps1/parrot-2.8.0/src/main.c:183: undefined reference to
`Parrot_confess'
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1832#comment:9>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets