FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Redhat > Fedora Packaging

 
 
LinkBack Thread Tools
 
Old 11-17-2008, 03:18 PM
Gregory Hosler
 
Default f11 build error

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

not sure if this is the correct fedora mailing list or not to bring this up on...

I came across a build error on X64, in F-11

I have been seeing this exact bug report my other distso users that have been building my
package on other distro x64 platforms, and so far I do not know what the solution might be.

When i do a libtool build on a library, I am seeing the following:

/bin/sh ../libtool --tag=CC --mode=link gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
- -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
- -Wno-pointer-sign -funsigned-char -shared -fpic -fPIC -o libgyachi.so gytreeview.o
gy_config.o gyachi_lib.o parsecfg.o theme_support.o sound_plugin.o plugins.o -lgtk-x11-2.0
- -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo
- -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lltdl
- -lX11 -lpthread
libtool: link: gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
- -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wno-pointer-sign
- -funsigned-char -fpic -fPIC -o libgyachi.so gytreeview.o gy_config.o gyachi_lib.o
parsecfg.o theme_support.o sound_plugin.o plugins.o -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
- -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype
- -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lltdl -lX11 -lpthread
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status

ld is not treating this as a shared library, rather it is treating this as a main program.

Anyone else see this ?

any ideas as to what i'm doing wrong, or what I might do to fix this ?

For what it's worth, this exact package, and this exact libtool line builds correctly on
F-10 and ALL other earlier revs (F-9, F-8, F-7, F-6, etc. etc...) on X64 (and other
platforms...)

If this is not the right mailing list to bring this up on, please point me at a more
proper list!



All the best,

- -Greg

- --
+---------------------------------------------------------------------+

Please also check the log file at "/dev/null" for additional information.
(from /var/log/Xorg.setup.log)

| Greg Hosler ghosler@redhat.com |
+---------------------------------------------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFJIYs/404fl/0CV/QRAqRCAKCw2hw4PTPirHnfJz9NcPFy3faiCACgsR8Z
gBLp0kciNEYhcd+QuJLiGHU=
=QNrm
-----END PGP SIGNATURE-----

--
Fedora-packaging mailing list
Fedora-packaging@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-packaging
 
Old 11-17-2008, 03:21 PM
Bill Nottingham
 
Default f11 build error

Gregory Hosler (ghosler@redhat.com) said:
> not sure if this is the correct fedora mailing list or not to bring this up on...

fedora-devel-list may be better, CC'ing it.

> I came across a build error on X64, in F-11
>
> I have been seeing this exact bug report my other distso users that have been building my
> package on other distro x64 platforms, and so far I do not know what the solution might be.
>
> When i do a libtool build on a library, I am seeing the following:
>
> /bin/sh ../libtool --tag=CC --mode=link gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
> - -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
> - -Wno-pointer-sign -funsigned-char -shared -fpic -fPIC -o libgyachi.so gytreeview.o
> gy_config.o gyachi_lib.o parsecfg.o theme_support.o sound_plugin.o plugins.o -lgtk-x11-2.0
> - -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo
> - -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lltdl
> - -lX11 -lpthread
> libtool: link: gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> - -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wno-pointer-sign
> - -funsigned-char -fpic -fPIC -o libgyachi.so gytreeview.o gy_config.o gyachi_lib.o
> parsecfg.o theme_support.o sound_plugin.o plugins.o -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
> - -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype
> - -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lltdl -lX11 -lpthread
> /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../lib64/crt1.o: In function `_start':
> (.text+0x20): undefined reference to `main'
> collect2: ld returned 1 exit status
>
> ld is not treating this as a shared library, rather it is treating this as a main program.

The F-11 tree has libtool-2.2.6, instead of libtool-1.5 as in Fedora 10 and
earlier. I suspect that's what's tripping you up.

There were people who had done mass rebuilds with the new libtool - they might
be able to point out common problems are and what the fixes are.

Bill

--
Fedora-packaging mailing list
Fedora-packaging@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-packaging
 
Old 11-17-2008, 03:21 PM
Bill Nottingham
 
Default f11 build error

Gregory Hosler (ghosler@redhat.com) said:
> not sure if this is the correct fedora mailing list or not to bring this up on...

fedora-devel-list may be better, CC'ing it.

> I came across a build error on X64, in F-11
>
> I have been seeing this exact bug report my other distso users that have been building my
> package on other distro x64 platforms, and so far I do not know what the solution might be.
>
> When i do a libtool build on a library, I am seeing the following:
>
> /bin/sh ../libtool --tag=CC --mode=link gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
> - -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
> - -Wno-pointer-sign -funsigned-char -shared -fpic -fPIC -o libgyachi.so gytreeview.o
> gy_config.o gyachi_lib.o parsecfg.o theme_support.o sound_plugin.o plugins.o -lgtk-x11-2.0
> - -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo
> - -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lltdl
> - -lX11 -lpthread
> libtool: link: gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> - -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wno-pointer-sign
> - -funsigned-char -fpic -fPIC -o libgyachi.so gytreeview.o gy_config.o gyachi_lib.o
> parsecfg.o theme_support.o sound_plugin.o plugins.o -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
> - -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype
> - -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lltdl -lX11 -lpthread
> /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../lib64/crt1.o: In function `_start':
> (.text+0x20): undefined reference to `main'
> collect2: ld returned 1 exit status
>
> ld is not treating this as a shared library, rather it is treating this as a main program.

The F-11 tree has libtool-2.2.6, instead of libtool-1.5 as in Fedora 10 and
earlier. I suspect that's what's tripping you up.

There were people who had done mass rebuilds with the new libtool - they might
be able to point out common problems are and what the fixes are.

Bill

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 

Thread Tools




All times are GMT. The time now is 08:18 AM.

VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org