Hello Guys, I am trying to compile syslog_ng on solaris 10 opteron with mixed linking option. I was able to successfully compile glib-2.16.5 statically. in my configure stage of syslog_ng 3.3.4 , I get he below error. configure: error: static GLib libraries not found (a file named libglib-2.0.a), either link GLib dynamically using the --enable-dynamic-linking or install a static GLib libglib-2.0.a is present under /usr/local/lib . When I checked the config.log, I have the following errors. configure:5326: checking lex library configure:5340: gcc -std=gnu99 -o conftest -g -O2 conftest.c >&5 Undefined first referenced symbol in file yywrap /var/tmp//cc2KbW8B.o ld: fatal: Symbol referencing errors. No output written to conftest collect2: ld returned 1 exit status configure:5340: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | | #line 3 "lex.yy.c" | | #define YY_INT_ALIGNED short int | | /* A lexical scanner generat Any inputs on how can i fix this please? Best Regards, Rakesh
Can someone please help me out with the below issue. I am seeing this error even on a solaris 8 machine I am trying to compile. I am using gcc 3.4.6 verion. Can this be an issue with the version of gcc. On both solaris architectures(Sparc/opteron) I get the below errir On Thu, Apr 26, 2012 at 6:44 PM, Rakesh Rajasekharan < rakesh.rajasekharan@gmail.com> wrote:
Hello Guys,
I am trying to compile syslog_ng on solaris 10 opteron with mixed linking option. I was able to successfully compile glib-2.16.5 statically. in my configure stage of syslog_ng 3.3.4 , I get he below error.
configure:5326: checking lex library configure:5340: gcc -std=gnu99 -o conftest -g -O2 conftest.c >&5 Undefined first referenced symbol in file yywrap /var/tmp//cc2KbW8B.o ld: fatal: Symbol referencing errors. No output written to conftest collect2: ld returned 1 exit status I have compiled flex 2.5.4. Please help me fix this. Regards, Rakesh
configure: error: static GLib libraries not found (a file named libglib-2.0.a), either link GLib dynamically using the --enable-dynamic-linking or install a static GLib libglib-2.0.a is present under /usr/local/lib . When I checked the config.log, I have the following errors.
configure:5326: checking lex library configure:5340: gcc -std=gnu99 -o conftest -g -O2 conftest.c >&5 Undefined first referenced symbol in file yywrap /var/tmp//cc2KbW8B.o ld: fatal: Symbol referencing errors. No output written to conftest collect2: ld returned 1 exit status configure:5340: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | | #line 3 "lex.yy.c" | | #define YY_INT_ALIGNED short int | | /* A lexical scanner generat
Any inputs on how can i fix this please?
Best Regards, Rakesh
Rakesh Rajasekharan <rakesh.rajasekharan@gmail.com> writes:
Hello Guys,
I am trying to compile syslog_ng on solaris 10 opteron with mixed linking option. I was able to successfully compile glib-2.16.5 statically. in my configure stage of syslog_ng 3.3.4 , I get he below error.
configure: error: static GLib libraries not found (a file named libglib-2.0.a), either link GLib dynamically using the --enable-dynamic-linking or install a static GLib libglib-2.0.a is present under /usr/local/lib . When I checked the config.log, I have the following errors.
Can you show the full config.log? -- |8]
Hi Gergely, I have put my config.log on paste bin. THis is the link http://pastebin.com/3kFWmVWx . Please let me know incase you are not able to access this. Regards, Rakesh On Fri, Apr 27, 2012 at 6:00 PM, Gergely Nagy <algernon@balabit.hu> wrote:
Rakesh Rajasekharan <rakesh.rajasekharan@gmail.com> writes:
Hello Guys,
I am trying to compile syslog_ng on solaris 10 opteron with mixed linking option. I was able to successfully compile glib-2.16.5 statically. in my configure stage of syslog_ng 3.3.4 , I get he below error.
configure: error: static GLib libraries not found (a file named libglib-2.0.a), either link GLib dynamically using the --enable-dynamic-linking or install a static GLib libglib-2.0.a is present under /usr/local/lib . When I checked the config.log, I have the following errors.
Can you show the full config.log?
-- |8]
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
Rakesh Rajasekharan <rakesh.rajasekharan@gmail.com> writes:
Hi Gergely,
I have put my config.log on paste bin. THis is the link http://pastebin.com/3kFWmVWx . Please let me know incase you are not able to access this.
This appears to be your problem: configure:14629: checking sanity checking Glib headers configure:14650: gcc -std=gnu99 -o conftest -g -O2 -Wall -pthread -D_REENTRANT -D_PTHREADS -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -L/usr/local/lib -lgmodule-2.0 -lgthread-2.0 -lpthread -lthread -lglib-2.0 -lintl -liconv conftest.c >&5 gcc: unrecognized option `-pthread' configure:14650: $? = 0 configure:14650: ./conftest ld.so.1: conftest: fatal: libgmodule-2.0.so.0: open failed: No such file or directory ./configure: line -1855: 5536 Killed ./conftest$ac_exeext configure:14650: $? = 137 configure: program exited with status 137 That is, libgmodule-2.0.so.0 is not found, which makes sense, since you're attempting to link this statically, if I understood correctly. My suspicion is that you will need a shared glib, even in mixed linking mode. -- |8]
participants (2)
-
Gergely Nagy
-
Rakesh Rajasekharan