error: 'longjmp' aliased to undefined symbol '_longjmp'

Skip to first unread message

Giorgos Margaritis

unread,
Mar 22, 2012, 10:31:04 AM3/22/12
to hyperta...@googlegroups.com
Hi all,

I got the error: 'longjmp' aliased to undefined symbol '_longjmp', while compiling 
code with ./bin/src-utils/htbuild --install dev_env.

 gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../include/tdep-x86 -I. -D_GNU_SOURCE -DNDEBUG -g -O2 -fexceptions -Wall -Wsign-compare -MT setjmp/longjmp.lo -MD -MP -MF setjmp/.deps/longjmp.Tpo -c setjmp/longjmp.c  -fPIC -DPIC -o setjmp/.libs/longjmp.o
/usr/include/bits/setjmp2.h:26:13: error: 'longjmp' aliased to undefined symbol '_longjmp'

Any ideas?
Thanks!

Giorgos Margaritis

unread,
Mar 22, 2012, 11:59:18 AM3/22/12
to hyperta...@googlegroups.com
The problem occurs when trying to compile libunwind-0.99-beta. I'm running Ubuntu 11.04 with gcc 4.5.2.

I found out that using gcc flag '-U_FORTIFY_SOURCE' in htbuild-dir/libunwind-0.99-beta/src/Makefile worked. So this is probably a libunwind compilation issue, right? I then had to modify bin/src-utils/htbuild so it doesn't re-download and compile libunwind. Any idea how to do this automatically?

(also, http://hypertable.org/pub/thrift-0.2.0-incubating.tar.gz in bin/src-utils/htbuild seems to be broken link.)

Doug Judd

unread,
Mar 22, 2012, 12:48:42 PM3/22/12
to hyperta...@googlegroups.com
Hi Giorgios,

The htbuild script is out-of-date and we haven't been maintaining it (we should probably remove it).  Typically we get the dependencies setup on a machine once, and then forget about it.  You shouldn't have to run htbuild often.  For more up-to-date scripts to get the dependencies set up, take a look bin/src-utils/build-setup-*.sh  Those are slightly out of date too, here are the updated links to the packages:


- Doug

--
You received this message because you are subscribed to the Google Groups "Hypertable Development" group.
To post to this group, send email to hyperta...@googlegroups.com.
To unsubscribe from this group, send email to hypertable-de...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hypertable-dev?hl=en.

Giorgos Margaritis

unread,
Mar 22, 2012, 1:04:05 PM3/22/12
to hyperta...@googlegroups.com
Hi Doug,

you should then consider fixing README.md, since it suggests using htbuild 
(and probably has other outdated info?). Thanks again!
--
Giorgos Margaritis
Ph.D. student
Systems Research Group
Dept. of Computer Science
University of Ioannina
Greece
Reply all
Reply to author
Forward
0 new messages