[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
undefined symbol "main" when compiling libXpm, which depends on ncurses
From: |
Poor Yorick |
Subject: |
undefined symbol "main" when compiling libXpm, which depends on ncurses |
Date: |
Tue, 10 Jun 2008 05:46:38 +0000 |
For the record: compiling ncurses on SunOS 5.9, with gcc-4.2.2 and, it was
necessary to patch ncurses install with a '-shared' flag. Otherwise,
libncurses(w).so.5.6 was linked as an executable with a "main" symbol, causing
a subsequent install of any software package depending on libncurses to fail,
complaining about undefined "main" symbol:
--- aclocal.m4 2006-12-17 11:12:38 -05:00
+++ aclocal.m4.new 2008-06-06 02:08:30 -04:00
@@ -3915,7 +3915,7 @@
EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
fi
CF_SHARED_SONAME
- MK_SHARED_LIB='${CC} -dy -G -h '$cf_shared_soname' -o
address@hidden'
+ MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_shared_soname' -o
address@hidden'
;;
sysv5uw7*|unix_sv*)
# tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
--- configure 2006-12-17 11:33:38.000000000 -0500
+++ configure.new 2008-06-06 09:36:05.000000000 -0400
@@ -5139,7 +5139,7 @@
cf_shared_soname='`basename address@hidden'
fi
- MK_SHARED_LIB='${CC} -dy -G -h '$cf_shared_soname' -o $@'
+ MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_shared_soname' -o
$@'
;;
sysv5uw7*|unix_sv*)
# tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
--
Yorick
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- undefined symbol "main" when compiling libXpm, which depends on ncurses,
Poor Yorick <=