[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-bug: [ geda-Bugs-2456486 ] 1.4.2 does not build with LDFLAGS="-Wl, --no-undefined"



Bugs item #2456486, was opened at 2008-12-21 20:01
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=818426&aid=2456486&group_id=161080

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libgeda
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Funda Wang  (fundawang)
Assigned to: Nobody/Anonymous (nobody)
Summary: 1.4.2 does not build with LDFLAGS="-Wl,--no-undefined"

Initial Comment:
when building libgeda 1.4.2 with LDFLAGS="-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro", it fails and threw out following errors:
/bin/sh ../libtool --silent --tag=CC   --mode=link gcc -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -version-info 33:1:0  -pthread -lguile -lltdl -L/usr/lib64 -Wl,--as-needed -Wl,--no-undefined -lgmp -lcrypt -lm -lltdl -lglib-2.0    -lgdk_pixbuf-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -o libgeda.la -rpath /usr/lib64 a_basic.lo f_basic.lo f_print.lo g_basic.lo g_rc.lo g_register.lo g_smob.lo gdk-pixbuf-hacks.lo geda_list.lo i_vars.lo libgeda.lo m_basic.lo o_arc_basic.lo o_attrib.lo o_basic.lo o_box_basic.lo o_bus_basic.lo o_circle_basic.lo o_complex_basic.lo o_embed.lo o_line_basic.lo o_list.lo o_net_basic.lo o_picture.lo o_pin_basic.lo o_selection.lo o_text_basic.lo s_attrib.lo s_basic.lo s_clib.lo s_color.lo s_conn.lo s_cue.lo s_encoding.lo s_hierarchy.lo s_log.lo s_menu.lo s_page.lo s_papersizes.lo s_slib.lo s_stretch.lo s_textbuffer.lo s_tile.lo s_toplevel.lo s_undo.lo u_basic.lo
.libs/o_arc_basic.o: In function `o_arc_add':
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/o_arc_basic.c:109: undefined reference to `arc_draw_func'
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/o_arc_basic.c:110: undefined reference to `select_func'
.libs/o_box_basic.o: In function `o_box_add':
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/o_box_basic.c:109: undefined reference to `box_draw_func'
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/o_box_basic.c:110: undefined reference to `select_func'
.libs/o_bus_basic.o: In function `o_bus_add':
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/o_bus_basic.c:78: undefined reference to `bus_draw_func'
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/o_bus_basic.c:79: undefined reference to `select_func'
.libs/o_circle_basic.o: In function `o_circle_add':
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/o_circle_basic.c:92: undefined reference to `circle_draw_func'
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/o_circle_basic.c:93: undefined reference to `select_func'
.libs/o_complex_basic.o: In function `o_complex_add_embedded':
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/o_complex_basic.c:640: undefined reference to `complex_draw_func'
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/o_complex_basic.c:644: undefined reference to `select_func'
.libs/o_complex_basic.o: In function `o_complex_add':
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/o_complex_basic.c:362: undefined reference to `complex_draw_func'
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/o_complex_basic.c:365: undefined reference to `select_func'
.libs/o_line_basic.o: In function `o_line_add':
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/o_line_basic.c:90: undefined reference to `line_draw_func'
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/o_line_basic.c:91: undefined reference to `select_func'
.libs/o_net_basic.o: In function `o_net_add':
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/o_net_basic.c:89: undefined reference to `net_draw_func'
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/o_net_basic.c:90: undefined reference to `select_func'
.libs/o_picture.o: In function `o_picture_add':
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/o_picture.c:366: undefined reference to `picture_draw_func'
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/o_picture.c:367: undefined reference to `select_func'
.libs/o_pin_basic.o: In function `o_pin_add':
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/o_pin_basic.c:73: undefined reference to `pin_draw_func'
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/o_pin_basic.c:74: undefined reference to `select_func'
.libs/o_text_basic.o: In function `o_text_add':
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/o_text_basic.c:918: undefined reference to `text_draw_func'
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/o_text_basic.c:919: undefined reference to `select_func'
.libs/s_log.o: In function `s_log_read':
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/s_log.c:137: undefined reference to `do_logging'
.libs/s_log.o: In function `s_log_close':
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/s_log.c:100: undefined reference to `do_logging'
.libs/s_log.o: In function `s_log_init':
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/s_log.c:72: undefined reference to `do_logging'
.libs/s_log.o: In function `s_log_handler':
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/s_log.c:176: undefined reference to `do_logging'
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/s_log.c:191: undefined reference to `x_log_update_func'
.libs/s_page.o: In function `s_page_new':
/home/fwang/rpm/BUILD/libgeda-1.4.2/src/s_page.c:123: undefined reference to `load_newer_backup_func'
collect2: ld returned 1 exit status

The reason might be that you've messed up LDFLAGS and LIBADD/LDADD in configure.ac and Makefile.am

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=818426&aid=2456486&group_id=161080


_______________________________________________
geda-bug mailing list
geda-bug@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-bug